From 8e542d40fe14c28ff960038e2f45ee50c061033b Mon Sep 17 00:00:00 2001 From: ballessay Date: Thu, 13 Apr 2017 17:05:33 +0200 Subject: [PATCH] Add base class for DockWidgets --- src/iaito.pro | 3 ++- src/widgets/dockwidget.h | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 src/widgets/dockwidget.h diff --git a/src/iaito.pro b/src/iaito.pro index 14e8f81d..26640508 100644 --- a/src/iaito.pro +++ b/src/iaito.pro @@ -97,7 +97,8 @@ HEADERS += \ widgets/dashboard.h \ dialogs/xrefsdialog.h \ hexhighlighter.h \ - widgets/sectionsdock.h + widgets/sectionsdock.h \ + widgets/dockwidget.h FORMS += \ mainwindow.ui \ diff --git a/src/widgets/dockwidget.h b/src/widgets/dockwidget.h new file mode 100644 index 00000000..9bdbeeda --- /dev/null +++ b/src/widgets/dockwidget.h @@ -0,0 +1,18 @@ +#ifndef DOCKWIDGET_H +#define DOCKWIDGET_H + +#include + +class DockWidget : public QDockWidget +{ +public: + explicit DockWidget(QWidget *parent = nullptr) : + QDockWidget(parent) {} + virtual ~DockWidget() {} + + virtual void setup() = 0; + + virtual void refresh() = 0; +}; + +#endif // DOCKWIDGET_H