equal
deleted
inserted
replaced
48 class QAction; |
48 class QAction; |
49 class QMenu; |
49 class QMenu; |
50 class QTextEdit; |
50 class QTextEdit; |
51 QT_END_NAMESPACE |
51 QT_END_NAMESPACE |
52 |
52 |
|
53 //! [class definition with macro] |
53 class MainWindow : public QMainWindow |
54 class MainWindow : public QMainWindow |
54 { |
55 { |
55 Q_OBJECT |
56 Q_OBJECT |
56 |
57 |
57 public: |
58 public: |
58 MainWindow(); |
59 MainWindow(); |
|
60 //! [class definition with macro] |
59 MainWindow(const QString &fileName); |
61 MainWindow(const QString &fileName); |
60 |
62 |
61 protected: |
63 protected: |
62 void closeEvent(QCloseEvent *event); |
64 void closeEvent(QCloseEvent *event); |
63 |
65 |