diff options
Diffstat (limited to 'logic/OneSixVersion.h')
-rw-r--r-- | logic/OneSixVersion.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/logic/OneSixVersion.h b/logic/OneSixVersion.h index 8f01f82d..6a6a5b4b 100644 --- a/logic/OneSixVersion.h +++ b/logic/OneSixVersion.h @@ -2,9 +2,15 @@ #include <QtCore> class OneSixLibrary; -class OneSixVersion +class OneSixVersion : public QAbstractListModel { public: + virtual QVariant data ( const QModelIndex& index, int role = Qt::DisplayRole ) const; + virtual int rowCount ( const QModelIndex& parent = QModelIndex() ) const; + virtual QVariant headerData ( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const; + virtual int columnCount ( const QModelIndex& parent ) const; + virtual Qt::ItemFlags flags(const QModelIndex& index) const; +public: /// the ID - determines which jar to use! ACTUALLY IMPORTANT! QString id; /// Last updated time - as a string @@ -58,6 +64,7 @@ public: // QList<Rule> rules; public: + OneSixVersion() { minimumLauncherVersion = 0xDEADBEEF; @@ -65,4 +72,4 @@ public: QList<QSharedPointer<OneSixLibrary> > getActiveNormalLibs(); QList<QSharedPointer<OneSixLibrary> > getActiveNativeLibs(); -};
\ No newline at end of file +}; |