X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Ftreemodel.h;h=92bf76767b9495e14ed9be1dc475266d55379172;hb=91e27ef1628b352e1f905b5811cb036442e68242;hp=574dc6a532ebf663cad4d69f91bf995c6b40fd45;hpb=04315f46a16fc3627218377071e008b6b9744992;p=quassel.git diff --git a/src/client/treemodel.h b/src/client/treemodel.h index 574dc6a5..92bf7676 100644 --- a/src/client/treemodel.h +++ b/src/client/treemodel.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -126,21 +126,15 @@ class PropertyMapItem : public AbstractTreeItem Q_OBJECT public: - PropertyMapItem(const QStringList &propertyOrder, AbstractTreeItem *parent = 0); PropertyMapItem(AbstractTreeItem *parent = 0); - virtual ~PropertyMapItem(); + virtual QStringList propertyOrder() const = 0; virtual QVariant data(int column, int role) const; virtual bool setData(int column, const QVariant &value, int role); virtual QString toolTip(int column) const { Q_UNUSED(column) return QString(); } virtual int columnCount() const; - - void appendProperty(const QString &property); - -private: - QStringList _propertyOrder; }; @@ -160,6 +154,8 @@ public: TreeModel(const QList &, QObject *parent = 0); virtual ~TreeModel(); + AbstractTreeItem *root() const; + virtual QVariant data(const QModelIndex &index, int role) const; virtual bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole);