summaryrefslogtreecommitdiffstats
path: root/libmultimc
diff options
context:
space:
mode:
Diffstat (limited to 'libmultimc')
-rw-r--r--libmultimc/include/instversionlist.h12
-rw-r--r--libmultimc/src/instversionlist.cpp18
-rw-r--r--libmultimc/src/minecraftversion.cpp2
3 files changed, 14 insertions, 18 deletions
diff --git a/libmultimc/include/instversionlist.h b/libmultimc/include/instversionlist.h
index e28bd96f..61b459d7 100644
--- a/libmultimc/include/instversionlist.h
+++ b/libmultimc/include/instversionlist.h
@@ -46,6 +46,18 @@ public:
VersionPointerRole = 0x34B1CB48
};
+ enum VListColumns
+ {
+ // First column - Name
+ NameColumn = 0,
+
+ // Second column - Type
+ TypeColumn,
+
+ // Third column - Timestamp
+ TimeColumn
+ };
+
explicit InstVersionList(QObject *parent = 0);
/*!
diff --git a/libmultimc/src/instversionlist.cpp b/libmultimc/src/instversionlist.cpp
index 7d1bfdb7..fa05efdd 100644
--- a/libmultimc/src/instversionlist.cpp
+++ b/libmultimc/src/instversionlist.cpp
@@ -39,22 +39,6 @@ const InstVersion *InstVersionList::getLatestStable()
return at(0);
}
-// Column Enum
-enum VListColumns
-{
- // First column - Name
- NameColumn = 0,
-
- // Second column - Type
- TypeColumn,
-
- // Third column - Timestamp
- TimeColumn,
-
- // Column count
- ColCount
-};
-
QVariant InstVersionList::data(const QModelIndex &index, int role) const
{
if (!index.isValid())
@@ -141,5 +125,5 @@ int InstVersionList::rowCount(const QModelIndex &parent) const
int InstVersionList::columnCount(const QModelIndex &parent) const
{
- return ColCount;
+ return 2;
}
diff --git a/libmultimc/src/minecraftversion.cpp b/libmultimc/src/minecraftversion.cpp
index 896c2e18..2e8b4a9b 100644
--- a/libmultimc/src/minecraftversion.cpp
+++ b/libmultimc/src/minecraftversion.cpp
@@ -63,7 +63,7 @@ QString MinecraftVersion::typeName() const
switch (versionType())
{
case OldSnapshot:
- return "Old Snapshot";
+ return "Snapshot";
case Stable:
return "Stable";