Fixed a bug, where the customviews were not so customizable on Linux.
[quassel.git] / src / client / treemodel.h
index 27360ba..6346d4f 100644 (file)
@@ -47,6 +47,8 @@ public:
   int childCount() const;
   int columnCount() const;
   virtual QVariant data(int column, int role) const;
+  virtual Qt::ItemFlags flags() const;
+  virtual void setFlags(Qt::ItemFlags);
   int row() const;
   TreeItem *parent();
     
@@ -55,6 +57,7 @@ protected:
   QHash<uint, TreeItem *> childHash; // uint to be compatible to qHash functions
   TreeItem *parentItem;
   QList<QVariant> itemData;
+  Qt::ItemFlags _flags;
 };
 
 
@@ -82,7 +85,7 @@ public:
 protected:
   bool removeRow(int row, const QModelIndex &parent = QModelIndex());
   bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex());
-
+  
   TreeItem *rootItem;
 };