examples/mainwindows/sdi/mainwindow.h
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    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