mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Update refresh button on Profile selector page. Code to implement this feature was apparently never written.
This commit is contained in:
parent
8234247a8d
commit
f1e4face7f
@ -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()) {
|
||||
|
@ -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);
|
||||
|
@ -32,6 +32,25 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="resetFilterButton">
|
||||
<property name="toolTip">
|
||||
<string>Reset filter to see all profiles</string>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">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;
|
||||
}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
|
Loading…
Reference in New Issue
Block a user