mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-31 00:35:05 +00:00
Add base class for DockWidgets
This commit is contained in:
parent
ff348e0f1a
commit
8e542d40fe
@ -97,7 +97,8 @@ HEADERS += \
|
|||||||
widgets/dashboard.h \
|
widgets/dashboard.h \
|
||||||
dialogs/xrefsdialog.h \
|
dialogs/xrefsdialog.h \
|
||||||
hexhighlighter.h \
|
hexhighlighter.h \
|
||||||
widgets/sectionsdock.h
|
widgets/sectionsdock.h \
|
||||||
|
widgets/dockwidget.h
|
||||||
|
|
||||||
FORMS += \
|
FORMS += \
|
||||||
mainwindow.ui \
|
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