cutter/src/widgets/SectionsWidget.h

41 lines
724 B
C
Raw Normal View History

#ifndef SECTIONSWIDGET_H
#define SECTIONSWIDGET_H
#include <QSplitter>
class MainWindow;
class QTreeWidget;
class QAbstractItemModel;
class QAbstractItemView;
class QItemSelectionModel;
struct SectionDescription;
2017-04-09 19:55:06 +00:00
namespace Ui
{
class SectionsWidget;
}
class SectionsWidget : public QSplitter
{
Q_OBJECT
public:
explicit SectionsWidget(MainWindow *main, QWidget *parent = 0);
private slots:
void refreshSections();
private:
QAbstractItemView *pieChart;
QItemSelectionModel *selectionModel;
MainWindow *main;
QTreeWidget *tree;
void setupViews();
void fillSections(int row, const SectionDescription &section);
};
#endif // SECTIONSWIDGET_H