From 684ae5f7fecf005b4086e512332028eea737fa64 Mon Sep 17 00:00:00 2001 From: Joni Poikelin Date: Thu, 7 Apr 2016 08:02:52 +0300 Subject: 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 --- examples/widgets/mainwindows/application/mainwindow.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/widgets/mainwindows/application/mainwindow.h') 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(); -- cgit v1.2.3