mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 03:46:11 +00:00
6f2607fc3c
- DockWidgets inherit from base class and implement the interface - Move setup/refresh code from MainWindow to widgets - Remove unused/uneeded members - Use helper functions - Fix compiler/cppcheck warnings - Cleanup headers
38 lines
608 B
C++
38 lines
608 B
C++
#ifndef RELOCSWIDGET_H
|
|
#define RELOCSWIDGET_H
|
|
|
|
#include "dashboard.h"
|
|
|
|
class MainWindow;
|
|
class QTreeWidgetItem;
|
|
|
|
namespace Ui
|
|
{
|
|
class RelocsWidget;
|
|
}
|
|
|
|
class RelocsWidget : public DockWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit RelocsWidget(MainWindow *main, QWidget *parent = 0);
|
|
~RelocsWidget();
|
|
|
|
void setup() override;
|
|
|
|
void refresh() override;
|
|
|
|
private slots:
|
|
void on_relocsTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
|
|
|
|
private:
|
|
Ui::RelocsWidget *ui;
|
|
MainWindow *main;
|
|
|
|
void fillTreeWidget();
|
|
void setScrollMode();
|
|
};
|
|
|
|
#endif // RELOCSWIDGET_H
|