diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-03-30 09:43:07 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-03-30 15:04:12 +0000 |
commit | 4fd5273f6144f25d675c733e83c3137ee3921aef (patch) | |
tree | 6a3410a8b0b7a0dd3e5bbbc39623577cfdef927e /examples/vulkan/hellovulkanwidget/hellovulkanwidget.h | |
parent | 2cc1ff3bc2a247ada8fb62f37613d763fb664cf0 (diff) |
hellovulkanwidget example: Add a widget showing debug output
Add a tab widget for vulkan info and debug log.
Change-Id: I0428bb5b6f847d0e94d62e846d34e4cb69eda5b6
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'examples/vulkan/hellovulkanwidget/hellovulkanwidget.h')
-rw-r--r-- | examples/vulkan/hellovulkanwidget/hellovulkanwidget.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/vulkan/hellovulkanwidget/hellovulkanwidget.h b/examples/vulkan/hellovulkanwidget/hellovulkanwidget.h index b1f4824006..e70d331ae8 100644 --- a/examples/vulkan/hellovulkanwidget/hellovulkanwidget.h +++ b/examples/vulkan/hellovulkanwidget/hellovulkanwidget.h @@ -54,7 +54,8 @@ class VulkanWindow; QT_BEGIN_NAMESPACE -class QTextEdit; +class QTabWidget; +class QPlainTextEdit; class QLCDNumber; QT_END_NAMESPACE @@ -63,7 +64,7 @@ class MainWindow : public QWidget Q_OBJECT public: - MainWindow(VulkanWindow *w); + explicit MainWindow(VulkanWindow *w, QPlainTextEdit *logWidget); public slots: void onVulkanInfoReceived(const QString &text); @@ -72,7 +73,8 @@ public slots: private: VulkanWindow *m_window; - QTextEdit *m_info; + QTabWidget *m_infoTab; + QPlainTextEdit *m_info; QLCDNumber *m_number; }; |