mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-13 16:18:30 +00:00
Add base class for DockWidgets
This commit is contained in:
parent
ff348e0f1a
commit
8e542d40fe
@ -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
18
src/widgets/dockwidget.h
Normal 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
|
Loading…
Reference in New Issue
Block a user