mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-03 03:46:58 +03:00
NOISSUE when there is a version added already, preselect it in the version select dialog
This commit is contained in:
parent
57accb1cbb
commit
ef2cbe16e6
7 changed files with 73 additions and 3 deletions
|
|
@ -40,13 +40,14 @@ public:
|
|||
bool hasVersions() const;
|
||||
BaseVersionPtr selectedVersion() const;
|
||||
void selectRecommended();
|
||||
void selectCurrent();
|
||||
|
||||
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);
|
||||
void setUseLatest(const bool useLatest);
|
||||
|
||||
signals:
|
||||
void selectedVersionChanged(BaseVersionPtr version);
|
||||
|
|
@ -64,6 +65,7 @@ private:
|
|||
void preselect();
|
||||
|
||||
private:
|
||||
QString m_currentVersion;
|
||||
BaseVersionList *m_vlist = nullptr;
|
||||
VersionProxyModel *m_proxyModel = nullptr;
|
||||
int resizeOnColumn = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue