summaryrefslogtreecommitdiffstats
path: root/examples/widgets/mainwindows/mdi/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/mainwindows/mdi/mainwindow.h')
-rw-r--r--examples/widgets/mainwindows/mdi/mainwindow.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/widgets/mainwindows/mdi/mainwindow.h b/examples/widgets/mainwindows/mdi/mainwindow.h
index c2d50728b8..ef86c68602 100644
--- a/examples/widgets/mainwindows/mdi/mainwindow.h
+++ b/examples/widgets/mainwindows/mdi/mainwindow.h
@@ -59,8 +59,10 @@ class MainWindow : public QMainWindow
public:
MainWindow();
+ bool openFile(const QString &fileName);
+
protected:
- void closeEvent(QCloseEvent *event);
+ void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
private slots:
void newFile();