diff --git a/oscar/profileselector.cpp b/oscar/profileselector.cpp index c23ec2c4..a6f5f92b 100644 --- a/oscar/profileselector.cpp +++ b/oscar/profileselector.cpp @@ -278,6 +278,12 @@ void ProfileSelector::on_profileFilter_textChanged(const QString &arg1) proxy->setFilterRegExp(regExp); } +// Clear filter list +void ProfileSelector::on_resetFilterButton_clicked() +{ + ui->profileFilter->clear(); +} + void ProfileSelector::on_buttonOpenProfile_clicked() { if (ui->profileView->currentIndex().isValid()) { diff --git a/oscar/profileselector.h b/oscar/profileselector.h index 3d6d8ecc..54663a96 100644 --- a/oscar/profileselector.h +++ b/oscar/profileselector.h @@ -57,6 +57,8 @@ private slots: void on_selectionChanged(const QModelIndex ¤t, const QModelIndex &previous); + void on_resetFilterButton_clicked(); + private: QString getProfileDiskInfo(Profile *profile); QString formatSize(qint64 size); diff --git a/oscar/profileselector.ui b/oscar/profileselector.ui index 1bb612ff..92749736 100644 --- a/oscar/profileselector.ui +++ b/oscar/profileselector.ui @@ -32,6 +32,25 @@ + + Reset filter to see all profiles + + + QToolButton { + background: transparent; + border-radius: 8px; + border: 2px solid transparent; +} + +QToolButton:hover { + border: 2px solid #456789; +} + +QToolButton:pressed { + border: 2px solid #456789; + background-color: #89abcd; +} + ...