diff options
author | Alessandro Portale <aportale@trolltech.com> | 2009-05-29 14:23:06 (GMT) |
---|---|---|
committer | Alessandro Portale <aportale@trolltech.com> | 2009-05-29 14:23:06 (GMT) |
commit | 8506cc8ce89c23fbfe27f9fb4d4e0cd7c90e9b24 (patch) | |
tree | 2575bfca7a3e81cd52da1039ace40a822f29ea47 /src/gui/widgets/qmainwindow.cpp | |
parent | 3ce13251dd954ae28179b0663c6498055dbb7681 (diff) | |
download | Qt-8506cc8ce89c23fbfe27f9fb4d4e0cd7c90e9b24.zip Qt-8506cc8ce89c23fbfe27f9fb4d4e0cd7c90e9b24.tar.gz Qt-8506cc8ce89c23fbfe27f9fb4d4e0cd7c90e9b24.tar.bz2 |
Making hasSoftKeyStack() const. +coding conventions.
Diffstat (limited to 'src/gui/widgets/qmainwindow.cpp')
-rw-r--r-- | src/gui/widgets/qmainwindow.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/gui/widgets/qmainwindow.cpp b/src/gui/widgets/qmainwindow.cpp index 618023e..6843d4e 100644 --- a/src/gui/widgets/qmainwindow.cpp +++ b/src/gui/widgets/qmainwindow.cpp @@ -67,7 +67,7 @@ QT_END_NAMESPACE #endif #ifndef QT_NO_SOFTKEYSTACK -#include <QSoftKeyStack.h> +#include <qsoftkeystack.h> #endif QT_BEGIN_NAMESPACE @@ -85,7 +85,7 @@ public: , hasOldCursor(false) , cursorAdjusted(false) #endif #ifndef QT_NO_SOFTKEYSTACK - , softKeyStack(0) + , softKeyStack(0) #endif { } QMainWindowLayout *layout; @@ -108,7 +108,7 @@ public: #endif #ifndef QT_NO_SOFTKEYSTACK - QSoftKeyStack* softKeyStack; + QSoftKeyStack *softKeyStack; #endif }; @@ -565,12 +565,10 @@ void QMainWindow::setSoftKeyStack(QSoftKeyStack *softKeyStack) \sa softKeyStack() */ -bool QMainWindow::hasSoftKeyStack() +bool QMainWindow::hasSoftKeyStack() const { - Q_D(QMainWindow); - if (d->softKeyStack ) - return true; - return false; + Q_D(const QMainWindow); + return d->softKeyStack != 0; } #endif // QT_NO_SOFTKEYSTACK |