summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/qdialog.cpp
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2010-03-03 14:15:22 (GMT)
committerJanne Anttila <janne.anttila@digia.com>2010-03-05 07:20:48 (GMT)
commit92c42901344ae654d8bc102e566d47d735cb3954 (patch)
tree978a8a4ea8ec33b2cdcf6aff7a0ed3bf37ff1244 /src/gui/dialogs/qdialog.cpp
parent5d7aaf0a63b01b2fbdd952b0e37442cce62456a9 (diff)
downloadQt-92c42901344ae654d8bc102e566d47d735cb3954.zip
Qt-92c42901344ae654d8bc102e566d47d735cb3954.tar.gz
Qt-92c42901344ae654d8bc102e566d47d735cb3954.tar.bz2
Tab to space fixes to qdilaog.cpp
Reviewed-By: TrustMe
Diffstat (limited to 'src/gui/dialogs/qdialog.cpp')
-rw-r--r--src/gui/dialogs/qdialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/dialogs/qdialog.cpp b/src/gui/dialogs/qdialog.cpp
index 9ff2ad8..d86d63e 100644
--- a/src/gui/dialogs/qdialog.cpp
+++ b/src/gui/dialogs/qdialog.cpp
@@ -807,11 +807,11 @@ void QDialog::setVisible(bool visible)
void QDialog::showEvent(QShowEvent *event)
{
if (!event->spontaneous() && !testAttribute(Qt::WA_Moved)) {
- Qt::WindowStates state = windowState();
+ Qt::WindowStates state = windowState();
adjustPosition(parentWidget());
setAttribute(Qt::WA_Moved, false); // not really an explicit position
- if (state != windowState())
- setWindowState(state);
+ if (state != windowState())
+ setWindowState(state);
}
}