Add base class for DockWidgets

This commit is contained in:
ballessay 2017-04-13 17:05:33 +02:00 committed by C. Balles
parent ff348e0f1a
commit 8e542d40fe
2 changed files with 20 additions and 1 deletions

View File

@ -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 \

18
src/widgets/dockwidget.h Normal file
View File

@ -0,0 +1,18 @@
#ifndef DOCKWIDGET_H
#define DOCKWIDGET_H
#include <QDockWidget>
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