mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 22:05:25 +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
33 lines
439 B
C++
33 lines
439 B
C++
#ifndef DASHBOARD_H
|
|
#define DASHBOARD_H
|
|
|
|
#include "dockwidget.h"
|
|
|
|
class MainWindow;
|
|
|
|
namespace Ui
|
|
{
|
|
class Dashboard;
|
|
}
|
|
|
|
class Dashboard : public DockWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Dashboard(MainWindow *main, QWidget *parent = 0);
|
|
~Dashboard();
|
|
|
|
void setup() override;
|
|
|
|
void refresh() override;
|
|
|
|
private:
|
|
void updateContents();
|
|
|
|
Ui::Dashboard *ui;
|
|
MainWindow *main;
|
|
};
|
|
|
|
#endif // DASHBOARD_H
|