summaryrefslogtreecommitdiff
path: root/src/plugins/qtsupport/exampleslistmodel.h
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2014-02-03 15:56:57 +0100
committerKai Koehne <kai.koehne@digia.com>2014-02-07 10:44:59 +0100
commit542444c9265f5a50e5e53966fb3ef0257d8bac0d (patch)
tree4b48ce05980f23403f3fdbf57743c6990319c1b1 /src/plugins/qtsupport/exampleslistmodel.h
parent6182841c13a3e67672d78f738ae75772012d7a08 (diff)
downloadqt-creator-542444c9265f5a50e5e53966fb3ef0257d8bac0d.tar.gz
Move QtVersionsModel declaration into header
Change-Id: Ic61139ef5e8819bb0ae2ba67cfff6b5adc55c14d Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/qtsupport/exampleslistmodel.h')
-rw-r--r--src/plugins/qtsupport/exampleslistmodel.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/plugins/qtsupport/exampleslistmodel.h b/src/plugins/qtsupport/exampleslistmodel.h
index 1061440b16..9ae31efb12 100644
--- a/src/plugins/qtsupport/exampleslistmodel.h
+++ b/src/plugins/qtsupport/exampleslistmodel.h
@@ -32,13 +32,28 @@
#include <QAbstractListModel>
#include <QSortFilterProxyModel>
+#include <QStandardItemModel>
#include <QStringList>
#include <QXmlStreamReader>
namespace QtSupport {
namespace Internal {
-class QtVersionsModel;
+class QtVersionsModel : public QStandardItemModel
+{
+ Q_OBJECT
+
+public:
+ QtVersionsModel(QObject *parent);
+
+ int findHighestQtVersion();
+ void setupQtVersions();
+ int indexForUniqueId(int uniqueId);
+
+public slots:
+ QVariant get(int i);
+ QVariant getId(int i);
+};
enum ExampleRoles
{