equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the examples of the Qt Toolkit. |
7 ** This file is part of the examples of the Qt Toolkit. |
8 ** |
8 ** |
55 void addSoftKeys(); |
55 void addSoftKeys(); |
56 void exitApplication(); |
56 void exitApplication(); |
57 void okPressed(); |
57 void okPressed(); |
58 void cancelPressed(); |
58 void cancelPressed(); |
59 void setCustomSoftKeys(); |
59 void setCustomSoftKeys(); |
|
60 void setMode(); |
60 public: |
61 public: |
61 MainWindow(QWidget *parent = 0); |
62 MainWindow(QWidget *parent = 0); |
62 ~MainWindow(); |
63 ~MainWindow(); |
63 private: |
64 private: |
64 QGridLayout *layout; |
65 QGridLayout *layout; |
65 QWidget *central; |
66 QWidget *central; |
66 QTextEdit* textEditor; |
67 QTextEdit *textEditor; |
67 QLabel *infoLabel; |
68 QLabel *infoLabel; |
68 QPushButton* toggleButton; |
69 QPushButton *toggleButton; |
69 QPushButton* pushButton; |
70 QPushButton *pushButton; |
70 QMenu* fileMenu; |
71 QPushButton *modeButton; |
71 QAction* addSoftKeysAct; |
72 QLabel *modeLabel; |
72 QAction* exit; |
73 QMenu *fileMenu; |
73 QAction* ok; |
74 QAction *addSoftKeysAct; |
74 QAction* cancel; |
75 QAction *exit; |
|
76 QAction *ok; |
|
77 QAction *cancel; |
75 }; |
78 }; |
76 |
79 |
77 //! [0] |
80 //! [0] |
78 class SoftKey : public QWidget |
81 class SoftKey : public QWidget |
79 { |
82 { |