Remove the extra clear button from the icecast filter bar
This commit is contained in:
parent
d5321475cd
commit
156f4a51c5
@ -33,10 +33,8 @@ IcecastFilterWidget::IcecastFilterWidget(QWidget *parent)
|
||||
sort_mode_mapper_(new QSignalMapper(this))
|
||||
{
|
||||
ui_->setupUi(this);
|
||||
connect(ui_->clear, SIGNAL(clicked()), SLOT(ClearFilter()));
|
||||
|
||||
// Icons
|
||||
ui_->clear->setIcon(IconLoader::Load("edit-clear-locationbar-ltr"));
|
||||
ui_->options->setIcon(IconLoader::Load("configure"));
|
||||
|
||||
// Options actions
|
||||
@ -97,11 +95,6 @@ void IcecastFilterWidget::SetIcecastModel(IcecastModel* model) {
|
||||
}
|
||||
}
|
||||
|
||||
void IcecastFilterWidget::ClearFilter() {
|
||||
filter_->clear();
|
||||
filter_->set_focus();
|
||||
}
|
||||
|
||||
void IcecastFilterWidget::SortModeChanged(int mode) {
|
||||
model_->SetSortMode(IcecastModel::SortMode(mode));
|
||||
|
||||
|
@ -40,7 +40,6 @@ public:
|
||||
void SetIcecastModel(IcecastModel* model);
|
||||
|
||||
private slots:
|
||||
void ClearFilter();
|
||||
void SortModeChanged(int mode);
|
||||
|
||||
private:
|
||||
|
@ -7,7 +7,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>513</width>
|
||||
<height>25</height>
|
||||
<height>27</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@ -20,19 +20,6 @@
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QToolButton" name="clear">
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>16</width>
|
||||
<height>16</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="autoRaise">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="LineEdit" name="filter">
|
||||
<property name="hint" stdset="0">
|
||||
|
Loading…
x
Reference in New Issue
Block a user