diff options
author | Jamie Mansfield <jmansfield@cadixdev.org> | 2021-10-17 20:14:16 +0100 |
---|---|---|
committer | Jamie Mansfield <jmansfield@cadixdev.org> | 2021-10-17 20:14:16 +0100 |
commit | b93997501d3c18832d0511abaf1514e73494bf56 (patch) | |
tree | b4c20991d424348f772576dd41fe1ed3611f2d4a /launcher/pages | |
parent | 1869dd0de3bf490abb0fe789236dd6f6909ecf8d (diff) | |
download | PrismLauncher-b93997501d3c18832d0511abaf1514e73494bf56.tar.gz PrismLauncher-b93997501d3c18832d0511abaf1514e73494bf56.tar.bz2 PrismLauncher-b93997501d3c18832d0511abaf1514e73494bf56.zip |
NOISSUE Use Qt's clear button for modpacks.ch page
This replaces our 'Reset' button.
Diffstat (limited to 'launcher/pages')
-rw-r--r-- | launcher/pages/modplatform/ftb/FtbPage.cpp | 6 | ||||
-rw-r--r-- | launcher/pages/modplatform/ftb/FtbPage.h | 1 | ||||
-rw-r--r-- | launcher/pages/modplatform/ftb/FtbPage.ui | 9 |
3 files changed, 2 insertions, 14 deletions
diff --git a/launcher/pages/modplatform/ftb/FtbPage.cpp b/launcher/pages/modplatform/ftb/FtbPage.cpp index aca93cfe..bafcfac9 100644 --- a/launcher/pages/modplatform/ftb/FtbPage.cpp +++ b/launcher/pages/modplatform/ftb/FtbPage.cpp @@ -33,7 +33,6 @@ FtbPage::FtbPage(NewInstanceDialog* dialog, QWidget *parent) ui->sortByBox->setCurrentText(filterModel->translateCurrentSorting()); connect(ui->searchEdit, &QLineEdit::textChanged, this, &FtbPage::triggerSearch); - connect(ui->resetButton, &QPushButton::clicked, this, &FtbPage::resetSearch); connect(ui->sortByBox, &QComboBox::currentTextChanged, this, &FtbPage::onSortingSelectionChanged); connect(ui->packView->selectionModel(), &QItemSelectionModel::currentChanged, this, &FtbPage::onSelectionChanged); connect(ui->versionSelectionBox, &QComboBox::currentTextChanged, this, &FtbPage::onVersionSelectionChanged); @@ -105,11 +104,6 @@ void FtbPage::triggerSearch() filterModel->setSearchTerm(ui->searchEdit->text()); } -void FtbPage::resetSearch() -{ - ui->searchEdit->setText(""); -} - void FtbPage::onSortingSelectionChanged(QString data) { auto toSet = filterModel->getAvailableSortings().value(data); diff --git a/launcher/pages/modplatform/ftb/FtbPage.h b/launcher/pages/modplatform/ftb/FtbPage.h index 0dfac1a4..25b531fb 100644 --- a/launcher/pages/modplatform/ftb/FtbPage.h +++ b/launcher/pages/modplatform/ftb/FtbPage.h @@ -65,7 +65,6 @@ private: private slots: void triggerSearch(); - void resetSearch(); void onSortingSelectionChanged(QString data); void onSelectionChanged(QModelIndex first, QModelIndex second); diff --git a/launcher/pages/modplatform/ftb/FtbPage.ui b/launcher/pages/modplatform/ftb/FtbPage.ui index dc800497..e9c783e3 100644 --- a/launcher/pages/modplatform/ftb/FtbPage.ui +++ b/launcher/pages/modplatform/ftb/FtbPage.ui @@ -36,12 +36,8 @@ <property name="placeholderText"> <string>Search and filter ...</string> </property> - </widget> - </item> - <item row="0" column="1"> - <widget class="QPushButton" name="resetButton"> - <property name="text"> - <string>Reset</string> + <property name="clearButtonEnabled"> + <bool>true</bool> </property> </widget> </item> @@ -76,7 +72,6 @@ </widget> <tabstops> <tabstop>searchEdit</tabstop> - <tabstop>resetButton</tabstop> <tabstop>versionSelectionBox</tabstop> </tabstops> <resources/> |