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))
|
sort_mode_mapper_(new QSignalMapper(this))
|
||||||
{
|
{
|
||||||
ui_->setupUi(this);
|
ui_->setupUi(this);
|
||||||
connect(ui_->clear, SIGNAL(clicked()), SLOT(ClearFilter()));
|
|
||||||
|
|
||||||
// Icons
|
// Icons
|
||||||
ui_->clear->setIcon(IconLoader::Load("edit-clear-locationbar-ltr"));
|
|
||||||
ui_->options->setIcon(IconLoader::Load("configure"));
|
ui_->options->setIcon(IconLoader::Load("configure"));
|
||||||
|
|
||||||
// Options actions
|
// Options actions
|
||||||
@ -97,11 +95,6 @@ void IcecastFilterWidget::SetIcecastModel(IcecastModel* model) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void IcecastFilterWidget::ClearFilter() {
|
|
||||||
filter_->clear();
|
|
||||||
filter_->set_focus();
|
|
||||||
}
|
|
||||||
|
|
||||||
void IcecastFilterWidget::SortModeChanged(int mode) {
|
void IcecastFilterWidget::SortModeChanged(int mode) {
|
||||||
model_->SetSortMode(IcecastModel::SortMode(mode));
|
model_->SetSortMode(IcecastModel::SortMode(mode));
|
||||||
|
|
||||||
|
@ -40,7 +40,6 @@ public:
|
|||||||
void SetIcecastModel(IcecastModel* model);
|
void SetIcecastModel(IcecastModel* model);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void ClearFilter();
|
|
||||||
void SortModeChanged(int mode);
|
void SortModeChanged(int mode);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>513</width>
|
<width>513</width>
|
||||||
<height>25</height>
|
<height>27</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -20,19 +20,6 @@
|
|||||||
<property name="margin">
|
<property name="margin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</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>
|
<item>
|
||||||
<widget class="LineEdit" name="filter">
|
<widget class="LineEdit" name="filter">
|
||||||
<property name="hint" stdset="0">
|
<property name="hint" stdset="0">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user