summaryrefslogtreecommitdiffstats
path: root/examples/widgets/mainwindows/application/mainwindow.h
diff options
context:
space:
mode:
authorJoni Poikelin <joni.poikelin@theqtcompany.com>2016-04-07 08:02:52 +0300
committerJoni Poikelin <joni.poikelin@theqtcompany.com>2016-04-07 08:39:37 +0000
commit684ae5f7fecf005b4086e512332028eea737fa64 (patch)
treee4d5620d989136a235c2bc1001af1057f1c0a1cc /examples/widgets/mainwindows/application/mainwindow.h
parent7d1e6ca1998f6fd26795b1f9e408ccd7c7c0b558 (diff)
Fix compiling examples with -no-sm
There is access to session manager functions which are not present when building with -no-sm. Change-Id: I1c92b4a70f7adb56816877930fb9f55b04ff8940 Reviewed-by: Andy Shaw <andy.shaw@theqtcompany.com>
Diffstat (limited to 'examples/widgets/mainwindows/application/mainwindow.h')
-rw-r--r--examples/widgets/mainwindows/application/mainwindow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/widgets/mainwindows/application/mainwindow.h b/examples/widgets/mainwindows/application/mainwindow.h
index 9712604125..690e8ebc32 100644
--- a/examples/widgets/mainwindows/application/mainwindow.h
+++ b/examples/widgets/mainwindows/application/mainwindow.h
@@ -70,7 +70,9 @@ private slots:
bool saveAs();
void about();
void documentWasModified();
+#ifndef QT_NO_SESSIONMANAGER
void commitData(QSessionManager &);
+#endif
private:
void createActions();