cutter/src/widgets/dashboard.h
ballessay 6f2607fc3c Use DockWidget base class
- 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
2017-04-26 22:59:03 +02:00

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