cutter/src/widgets/sectionswidget.h

46 lines
947 B
C
Raw Normal View History

#ifndef SECTIONSWIDGET_H
#define SECTIONSWIDGET_H
#include <QWidget>
#include <QSplitter>
#include <QTreeWidget>
class MainWindow;
QT_BEGIN_NAMESPACE
class QAbstractItemModel;
class QAbstractItemView;
class QItemSelectionModel;
QT_END_NAMESPACE
namespace Ui {
class SectionsWidget;
}
class SectionsWidget : public QSplitter
{
Q_OBJECT
public:
explicit SectionsWidget(MainWindow *main, QWidget *parent = 0);
void fillSections(int row, const QString &str, const QString &str2,
const QString &str3, const QString &str4);
void adjustColumns();
QTreeWidget *tree;
private slots:
private:
//void setupModel();
void setupViews();
//QAbstractItemModel *model;
QAbstractItemView *pieChart;
QItemSelectionModel *selectionModel;
MainWindow *main;
bool eventFilter(QObject *obj, QEvent *event);
};
#endif // SECTIONSWIDGET_H