aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2016-02-10 21:09:09 +0100
committerAndy Nichols <andy.nichols@theqtcompany.com>2016-02-11 08:25:29 +0000
commit632a77b9cf719e69dc122d44a9bb9b17db81f4e3 (patch)
tree1be858013daa5885870f58e6c5b470b35f5acaf7
parentbf5b4dee850c9c52757e6feecdd2c74009ef3e82 (diff)
Fix example compilation with no-widgets
Change-Id: I87bb9eedb872999dcb55cbe38b349cbbe2d1bc64 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
-rw-r--r--examples/examples.pro11
1 files changed, 7 insertions, 4 deletions
diff --git a/examples/examples.pro b/examples/examples.pro
index 98b36ab..aa36739 100644
--- a/examples/examples.pro
+++ b/examples/examples.pro
@@ -3,8 +3,11 @@ TEMPLATE = subdirs
SUBDIRS += simple
qtHaveModule(quick) {
- SUBDIRS += quickGamepad \
- keyNavigation \
- configureButtons \
- mouseItem
+ SUBDIRS += configureButtons
+
+ qtHaveModule(widgets) {
+ SUBDIRS += quickGamepad \
+ keyNavigation \
+ mouseItem
+ }
}
lor:#000000">; class QErrorMessage; QT_END_NAMESPACE class DialogOptionsWidget; class Dialog : public QWidget { Q_OBJECT public: Dialog(QWidget *parent = nullptr); private slots: void setInteger(); void setDouble(); void setItem(); void setText(); void setMultiLineText(); void setColor(); void setFont(); void setExistingDirectory(); void setOpenFileName(); void setOpenFileNames(); void setSaveFileName(); void criticalMessage(); void informationMessage(); void questionMessage(); void warningMessage(); void errorMessage(); private: QLabel *integerLabel; QLabel *doubleLabel; QLabel *itemLabel; QLabel *textLabel; QLabel *multiLineTextLabel; QLabel *colorLabel; QLabel *fontLabel; QLabel *directoryLabel; QLabel *openFileNameLabel; QLabel *openFileNamesLabel; QLabel *saveFileNameLabel; QLabel *criticalLabel; QLabel *informationLabel; QLabel *questionLabel; QLabel *warningLabel; QErrorMessage *errorMessageDialog; DialogOptionsWidget *fileDialogOptionsWidget; DialogOptionsWidget *colorDialogOptionsWidget; DialogOptionsWidget *fontDialogOptionsWidget; QString openFilesPath; }; #endif