~jocave/checkbox/hybrid-amd-gpu-mods

« back to all changes in this revision

Viewing changes to checkbox-old/qt/frontend/treemodel.h

  • Committer: Tarmac
  • Author(s): Brendan Donegan
  • Date: 2013-06-03 11:12:58 UTC
  • mfrom: (2154.2.1 bug1185759)
  • Revision ID: tarmac-20130603111258-1b3m5ydvkf1accts
"[r=zkrynicki][bug=1185759][author=brendan-donegan] automatic merge by tarmac"

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef TREEMODEL_H
 
2
#define TREEMODEL_H
 
3
 
 
4
#include <QStandardItemModel>
 
5
#include <QErrorMessage>
 
6
 
 
7
class TreeModel : public QStandardItemModel
 
8
{
 
9
public:
 
10
    TreeModel();
 
11
    void warn();
 
12
    bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole);
 
13
    void setInteraction(bool value);
 
14
    void selectAll(bool select = true);
 
15
    void changeAllChildren(QStandardItem *item, const QVariant &value, int role);
 
16
    void enableAllChildren(bool enable, QStandardItem *item);
 
17
    bool allInStatus(Qt::CheckState wanted_status);
 
18
    QErrorMessage *m_messageBox;
 
19
    QString deselect_warning;
 
20
};
 
21
 
 
22
#endif // TREEMODEL_H