aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/dialogs/VersionSelectDialog.h
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-08-04 19:42:36 +0200
committerGitHub <noreply@github.com>2023-08-04 19:42:36 +0200
commitae793f6cf11658c9abc5111e82d5ba7b3e6af127 (patch)
treeed41f30e2c0f02e4be1d42324b3f05fbab75b2cd /launcher/ui/dialogs/VersionSelectDialog.h
parent50c7d39e082f0a7dbd977401e16d5adf534d9770 (diff)
parent1d638e018ac40fbfb35dd117f9a948c0cf35eadd (diff)
downloadPrismLauncher-ae793f6cf11658c9abc5111e82d5ba7b3e6af127.tar.gz
PrismLauncher-ae793f6cf11658c9abc5111e82d5ba7b3e6af127.tar.bz2
PrismLauncher-ae793f6cf11658c9abc5111e82d5ba7b3e6af127.zip
Merge pull request #1459 from Scrumplex/format
Diffstat (limited to 'launcher/ui/dialogs/VersionSelectDialog.h')
-rw-r--r--launcher/ui/dialogs/VersionSelectDialog.h37
1 files changed, 17 insertions, 20 deletions
diff --git a/launcher/ui/dialogs/VersionSelectDialog.h b/launcher/ui/dialogs/VersionSelectDialog.h
index 18a50cdb..701020fa 100644
--- a/launcher/ui/dialogs/VersionSelectDialog.h
+++ b/launcher/ui/dialogs/VersionSelectDialog.h
@@ -18,7 +18,6 @@
#include <QDialog>
#include <QSortFilterProxyModel>
-
#include "BaseVersionList.h"
class QVBoxLayout;
@@ -27,52 +26,50 @@ class QDialogButtonBox;
class VersionSelectWidget;
class QPushButton;
-namespace Ui
-{
+namespace Ui {
class VersionSelectDialog;
}
class VersionProxyModel;
-class VersionSelectDialog : public QDialog
-{
+class VersionSelectDialog : public QDialog {
Q_OBJECT
-public:
- explicit VersionSelectDialog(BaseVersionList *vlist, QString title, QWidget *parent = 0, bool cancelable = true);
- virtual ~VersionSelectDialog() {};
+ public:
+ explicit VersionSelectDialog(BaseVersionList* vlist, QString title, QWidget* parent = 0, bool cancelable = true);
+ virtual ~VersionSelectDialog(){};
int exec() override;
BaseVersion::Ptr selectedVersion() const;
- void setCurrentVersion(const QString & version);
+ void setCurrentVersion(const QString& version);
void setFuzzyFilter(BaseVersionList::ModelRoles role, QString filter);
void setExactFilter(BaseVersionList::ModelRoles role, QString filter);
void setEmptyString(QString emptyString);
void setEmptyErrorString(QString emptyErrorString);
void setResizeOn(int column);
-private slots:
+ private slots:
void on_refreshButton_clicked();
-private:
+ private:
void retranslate();
void selectRecommended();
-private:
+ private:
QString m_currentVersion;
- VersionSelectWidget *m_versionWidget = nullptr;
- QVBoxLayout *m_verticalLayout = nullptr;
- QHBoxLayout *m_horizontalLayout = nullptr;
- QPushButton *m_refreshButton = nullptr;
- QDialogButtonBox *m_buttonBox = nullptr;
+ VersionSelectWidget* m_versionWidget = nullptr;
+ QVBoxLayout* m_verticalLayout = nullptr;
+ QHBoxLayout* m_horizontalLayout = nullptr;
+ QPushButton* m_refreshButton = nullptr;
+ QDialogButtonBox* m_buttonBox = nullptr;
- BaseVersionList *m_vlist = nullptr;
+ BaseVersionList* m_vlist = nullptr;
- VersionProxyModel *m_proxyModel = nullptr;
+ VersionProxyModel* m_proxyModel = nullptr;
int resizeOnColumn = -1;
- Task * loadTask = nullptr;
+ Task* loadTask = nullptr;
};