summaryrefslogtreecommitdiffstats
path: root/examples/dialogs
diff options
context:
space:
mode:
authorKavindra Devi Palaraja <kavindra.palaraja@nokia.com>2009-04-16 14:39:10 (GMT)
committerKavindra Devi Palaraja <kavindra.palaraja@nokia.com>2009-04-16 14:41:50 (GMT)
commit08dff2935af2d71f2fe76182079da636c1bb6f5b (patch)
tree46785ed800bb493c1a879fb241da11516e4b2f90 /examples/dialogs
parentc057ec04ce9b636e3fd0a1c0e0f3647f8a51fbaa (diff)
downloadQt-08dff2935af2d71f2fe76182079da636c1bb6f5b.zip
Qt-08dff2935af2d71f2fe76182079da636c1bb6f5b.tar.gz
Qt-08dff2935af2d71f2fe76182079da636c1bb6f5b.tar.bz2
Doc - Some minor cleanups in the documentation of QInputDialog. Also
marked getInt() as since Qt 4.5 and finally modified the StandardDialogs example to reflect the fact that getInteger() is deprecated. Task-number: 251288 Reviewed-by: nrc <qt-info@nokia.com> BT: Yes
Diffstat (limited to 'examples/dialogs')
-rw-r--r--examples/dialogs/standarddialogs/dialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/dialogs/standarddialogs/dialog.cpp b/examples/dialogs/standarddialogs/dialog.cpp
index 0fe1f7e..1f7c5ef 100644
--- a/examples/dialogs/standarddialogs/dialog.cpp
+++ b/examples/dialogs/standarddialogs/dialog.cpp
@@ -59,7 +59,7 @@ Dialog::Dialog(QWidget *parent)
integerLabel = new QLabel;
integerLabel->setFrameStyle(frameStyle);
QPushButton *integerButton =
- new QPushButton(tr("QInputDialog::get&Integer()"));
+ new QPushButton(tr("QInputDialog::get&Int()"));
doubleLabel = new QLabel;
doubleLabel->setFrameStyle(frameStyle);
@@ -198,8 +198,8 @@ void Dialog::setInteger()
{
//! [0]
bool ok;
- int i = QInputDialog::getInteger(this, tr("QInputDialog::getInteger()"),
- tr("Percentage:"), 25, 0, 100, 1, &ok);
+ int i = QInputDialog::getInt(this, tr("QInputDialog::getInteger()"),
+ tr("Percentage:"), 25, 0, 100, 1, &ok);
if (ok)
integerLabel->setText(tr("%1%").arg(i));
//! [0]