diff options
author | Michele Calgaro <[email protected]> | 2019-05-27 00:31:56 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2019-05-27 00:31:56 +0900 |
commit | a2fa7ca9838e204ec41c39fcb80ee82ec93d084f (patch) | |
tree | 667608ea9bc8d1e4827077c1321ad6fa02bf8cc3 /src/widgets/qdialogbuttons.cpp | |
parent | 2c29133f7ee2a270da8d8504345390a1d60e80fa (diff) | |
download | qt3-a2fa7ca9838e204ec41c39fcb80ee82ec93d084f.tar.gz qt3-a2fa7ca9838e204ec41c39fcb80ee82ec93d084f.zip |
Adjusted to latest QVariant::QVariant(bool) function.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/widgets/qdialogbuttons.cpp')
-rw-r--r-- | src/widgets/qdialogbuttons.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets/qdialogbuttons.cpp b/src/widgets/qdialogbuttons.cpp index 39f6d67..07e09cf 100644 --- a/src/widgets/qdialogbuttons.cpp +++ b/src/widgets/qdialogbuttons.cpp @@ -185,12 +185,12 @@ QDialogButtons::setDefaultButton(Button button) if(d->def != button) { #ifndef QT_NO_PROPERTIES if(d->buttons.contains(d->def)) - d->buttons[d->def]->setProperty("default", QVariant(FALSE,0)); + d->buttons[d->def]->setProperty("default", QVariant(false)); #endif d->def = button; #ifndef QT_NO_PROPERTIES if(d->buttons.contains(d->def)) - d->buttons[d->def]->setProperty("default", QVariant(FALSE,0)); + d->buttons[d->def]->setProperty("default", QVariant(false)); #endif } } @@ -413,7 +413,7 @@ QDialogButtons::layoutButtons() if(b == d->def) { w->setFocus(); #ifndef QT_NO_PROPERTIES - w->setProperty("default", QVariant(TRUE,0)); + w->setProperty("default", QVariant(true)); #endif } w->setEnabled(d->enabled & b); |