aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/widgets
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-04-15 22:36:02 +0200
committerGitHub <noreply@github.com>2022-04-15 22:36:02 +0200
commitef76bd355ae86c1399eed068f3397dfb601b8b4b (patch)
treecc44a0593aeae10176b2f9aa812641c6f8fabf36 /launcher/ui/widgets
parent8c98cc94581bf91ad0cc60ffaa67f9852050c066 (diff)
parent3e64935844f5ad1e772eab763a7f02260c25dcc1 (diff)
downloadPrismLauncher-ef76bd355ae86c1399eed068f3397dfb601b8b4b.tar.gz
PrismLauncher-ef76bd355ae86c1399eed068f3397dfb601b8b4b.tar.bz2
PrismLauncher-ef76bd355ae86c1399eed068f3397dfb601b8b4b.zip
Merge pull request #398 from kthchew/feature/ml-instance-creation
Diffstat (limited to 'launcher/ui/widgets')
-rw-r--r--launcher/ui/widgets/VersionSelectWidget.cpp6
-rw-r--r--launcher/ui/widgets/VersionSelectWidget.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/launcher/ui/widgets/VersionSelectWidget.cpp b/launcher/ui/widgets/VersionSelectWidget.cpp
index 1209f118..cc4fc6a2 100644
--- a/launcher/ui/widgets/VersionSelectWidget.cpp
+++ b/launcher/ui/widgets/VersionSelectWidget.cpp
@@ -4,7 +4,6 @@
#include <QVBoxLayout>
#include <QHeaderView>
-#include "VersionListView.h"
#include "VersionProxyModel.h"
#include "ui/dialogs/CustomMessageBox.h"
@@ -57,6 +56,11 @@ void VersionSelectWidget::setEmptyErrorString(QString emptyErrorString)
listView->setEmptyErrorString(emptyErrorString);
}
+void VersionSelectWidget::setEmptyMode(VersionListView::EmptyMode mode)
+{
+ listView->setEmptyMode(mode);
+}
+
VersionSelectWidget::~VersionSelectWidget()
{
}
diff --git a/launcher/ui/widgets/VersionSelectWidget.h b/launcher/ui/widgets/VersionSelectWidget.h
index 0a649408..f56daa8a 100644
--- a/launcher/ui/widgets/VersionSelectWidget.h
+++ b/launcher/ui/widgets/VersionSelectWidget.h
@@ -18,6 +18,7 @@
#include <QWidget>
#include <QSortFilterProxyModel>
#include "BaseVersionList.h"
+#include "VersionListView.h"
class VersionProxyModel;
class VersionListView;
@@ -49,6 +50,7 @@ public:
void setFilter(BaseVersionList::ModelRoles role, Filter *filter);
void setEmptyString(QString emptyString);
void setEmptyErrorString(QString emptyErrorString);
+ void setEmptyMode(VersionListView::EmptyMode mode);
void setResizeOn(int column);
signals: