diff options
author | Markku Luukkainen <markku.luukkainen@digia.com> | 2009-06-15 12:41:16 (GMT) |
---|---|---|
committer | Markku Luukkainen <markku.luukkainen@digia.com> | 2009-06-15 12:41:16 (GMT) |
commit | 2b630bd12b9e944707d8e52c1135e88750323ed0 (patch) | |
tree | ae611fe6538da24112d2047519674e1b7e0eba34 /examples/widgets/softkeys/softkeys.h | |
parent | 5b418dd900b9455dadfeeda23e5478fb575f5e3f (diff) | |
download | Qt-2b630bd12b9e944707d8e52c1135e88750323ed0.zip Qt-2b630bd12b9e944707d8e52c1135e88750323ed0.tar.gz Qt-2b630bd12b9e944707d8e52c1135e88750323ed0.tar.bz2 |
Updated softkey example to be more complete
Diffstat (limited to 'examples/widgets/softkeys/softkeys.h')
-rw-r--r-- | examples/widgets/softkeys/softkeys.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/examples/widgets/softkeys/softkeys.h b/examples/widgets/softkeys/softkeys.h index 11db419..bd75473 100644 --- a/examples/widgets/softkeys/softkeys.h +++ b/examples/widgets/softkeys/softkeys.h @@ -48,24 +48,27 @@ class MainWindow : public QMainWindow { Q_OBJECT public: - + private slots: + void fillTextEditor(); + void clearTextEditor(); void openDialog(); void addSoftKeys(); - void clearSoftKeys(); + void exitApplication(); void okPressed(); void cancelPressed(); public: - MainWindow(QWidget *parent = 0); + MainWindow(QWidget *parent = 0); ~MainWindow(); private: QVBoxLayout *layout; QWidget *central; + QTextEdit* textEditor; QLabel *infoLabel; + QPushButton* pushButton; QMenu* fileMenu; - QAction* openDialogAct; QAction* addSoftKeysAct; - QAction* clearSoftKeysAct; + QAction* exit; QAction* ok; QAction* cancel; }; |