diff options
author | wm4 <wm4@nowhere> | 2014-10-08 13:20:35 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-08 13:34:06 +0200 |
commit | ab5d58c3d9ea908667b1d1715660911e878f20d6 (patch) | |
tree | 968d9985fdf4862ed2ab20e9f645ec403442c50a /DOCS/client_api_examples/qtexample.h | |
parent | f73778ad82685bd15c40e20b9983ce460d9c3226 (diff) | |
download | mpv-ab5d58c3d9ea908667b1d1715660911e878f20d6.tar.bz2 mpv-ab5d58c3d9ea908667b1d1715660911e878f20d6.tar.xz |
DOCS/client_api_examples: qtexample: add a log window
For the purpose of demonstration.
Also make the windows larger. I'm not exactly sure how Qt determines
the default window sizes, but here they are a bit tiny, so force them
larger.
Diffstat (limited to 'DOCS/client_api_examples/qtexample.h')
-rw-r--r-- | DOCS/client_api_examples/qtexample.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/DOCS/client_api_examples/qtexample.h b/DOCS/client_api_examples/qtexample.h index b5b6fe7fb2..8d5ef41143 100644 --- a/DOCS/client_api_examples/qtexample.h +++ b/DOCS/client_api_examples/qtexample.h @@ -5,6 +5,8 @@ #include <mpv/client.h> +class QTextEdit; + class MainWindow : public QMainWindow { Q_OBJECT @@ -22,6 +24,7 @@ private slots: private: QWidget *mpv_container; mpv_handle *mpv; + QTextEdit *log; void create_player(); void handle_mpv_event(mpv_event *event); |