mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 10:55:32 +08:00
Filter buttons new button
This commit is contained in:
committed by
Mathew Sutcliffe
parent
32a9098128
commit
ea50533755
@@ -26,6 +26,7 @@ namespace BlackGui
|
|||||||
connect(ui->tb_ClearForm, &QToolButton::clicked, this, &CFilterBarButtons::ps_buttonClicked);
|
connect(ui->tb_ClearForm, &QToolButton::clicked, this, &CFilterBarButtons::ps_buttonClicked);
|
||||||
connect(ui->tb_Filter, &QToolButton::clicked, this, &CFilterBarButtons::ps_buttonClicked);
|
connect(ui->tb_Filter, &QToolButton::clicked, this, &CFilterBarButtons::ps_buttonClicked);
|
||||||
connect(ui->tb_RemoveFilter, &QToolButton::clicked, this, &CFilterBarButtons::ps_buttonClicked);
|
connect(ui->tb_RemoveFilter, &QToolButton::clicked, this, &CFilterBarButtons::ps_buttonClicked);
|
||||||
|
connect(ui->pb_New, &QToolButton::clicked, this, &CFilterBarButtons::ps_buttonClicked);
|
||||||
}
|
}
|
||||||
|
|
||||||
CFilterBarButtons::~CFilterBarButtons()
|
CFilterBarButtons::~CFilterBarButtons()
|
||||||
@@ -38,10 +39,15 @@ namespace BlackGui
|
|||||||
|
|
||||||
void CFilterBarButtons::ps_buttonClicked()
|
void CFilterBarButtons::ps_buttonClicked()
|
||||||
{
|
{
|
||||||
QObject *sender = QObject::sender();
|
const QObject *sender = QObject::sender();
|
||||||
if (sender == ui->tb_ClearForm) { emit buttonClicked(ClearForm); }
|
if (sender == ui->tb_ClearForm) { emit buttonClicked(ClearForm); }
|
||||||
else if (sender == ui->tb_Filter) { emit buttonClicked(Filter); }
|
else if (sender == ui->tb_Filter) { emit buttonClicked(Filter); }
|
||||||
else if (sender == ui->tb_RemoveFilter) { emit buttonClicked(RemoveFilter); }
|
else if (sender == ui->tb_RemoveFilter) { emit buttonClicked(RemoveFilter); }
|
||||||
|
else if (sender == ui->pb_New)
|
||||||
|
{
|
||||||
|
emit buttonClicked(RemoveFilter);
|
||||||
|
emit buttonClicked(ClearForm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CFilterBarButtons::onRowCountChanged(int count, bool withFilter)
|
void CFilterBarButtons::onRowCountChanged(int count, bool withFilter)
|
||||||
|
|||||||
@@ -2,35 +2,15 @@
|
|||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>CFilterBarButtons</class>
|
<class>CFilterBarButtons</class>
|
||||||
<widget class="QFrame" name="CFilterBarButtons">
|
<widget class="QFrame" name="CFilterBarButtons">
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
|
||||||
<y>0</y>
|
|
||||||
<width>140</width>
|
|
||||||
<height>25</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>140</width>
|
<width>140</width>
|
||||||
<height>0</height>
|
<height>0</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>150</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Filter bar buttons</string>
|
<string>Filter bar buttons</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="frameShape">
|
|
||||||
<enum>QFrame::StyledPanel</enum>
|
|
||||||
</property>
|
|
||||||
<property name="frameShadow">
|
|
||||||
<enum>QFrame::Raised</enum>
|
|
||||||
</property>
|
|
||||||
<layout class="QHBoxLayout" name="hl_filterBarButtons">
|
<layout class="QHBoxLayout" name="hl_filterBarButtons">
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
@@ -114,6 +94,19 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pb_New">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>30</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>new</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="hs_FilterBarButtons">
|
<spacer name="hs_FilterBarButtons">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
|||||||
Reference in New Issue
Block a user