summaryrefslogtreecommitdiffstats
path: root/examples/webenginewidgets/markdowneditor/mainwindow.h
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@theqtcompany.com>2016-03-17 13:36:07 +0100
committerKai Koehne <kai.koehne@theqtcompany.com>2016-03-18 14:46:04 +0000
commit6d5b9ba008bba20f1c0a1642af5f5b7182f3e890 (patch)
treee351ef52c3888dca7be3cbe382edc613e4f13e5e /examples/webenginewidgets/markdowneditor/mainwindow.h
parenta4175559acdef0f22203ce31486df626cee9d6fc (diff)
Make MarkDownEditor example more usable
- Use a fixed width font for the editor. - Accept .md file as command line argument. Change-Id: I97e3bb930569240e195ecc21ed4ce3d9acd3ff66 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Diffstat (limited to 'examples/webenginewidgets/markdowneditor/mainwindow.h')
-rw-r--r--examples/webenginewidgets/markdowneditor/mainwindow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/webenginewidgets/markdowneditor/mainwindow.h b/examples/webenginewidgets/markdowneditor/mainwindow.h
index 596b5c504..fc04f6beb 100644
--- a/examples/webenginewidgets/markdowneditor/mainwindow.h
+++ b/examples/webenginewidgets/markdowneditor/mainwindow.h
@@ -59,6 +59,8 @@ public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
+ void openFile(const QString &path);
+
private slots:
void onFileNew();
void onFileOpen();