16 Q_ASSERT_X(
sGui, Q_FUNC_INFO,
"sGui missing");
17 this->setWindowTitle(
"Filter widget");
18 this->onStyleSheetChanged();
20 Qt::QueuedConnection);
30 Q_ASSERT_X(s, Q_FUNC_INFO,
"filter button connect");
37 const QString s = candidate.trimmed();
38 if (s.isEmpty()) {
return -1; }
40 const int id = s.toInt(&ok);
41 return ok &&
id >= 0 ? id : -1;
46 void CFilterWidget::onStyleSheetChanged()
49 this->setStyleSheet(qss);
56 case CFilterBarButtons::Filter: emit this->
changeFilter(
true);
break;
57 case CFilterBarButtons::RemoveFilter:
61 case CFilterBarButtons::ClearForm:
const CStyleSheetUtility & getStyleSheetUtility() const
Style sheet handling.
void styleSheetsChanged()
Style sheet changed.
static const QString & fileNameFilterDialog()
File name maininfoarea.qss.
QString style(const QString &fileName) const
Style for given file name.
SWIFT_GUI_EXPORT swift::gui::CGuiApplication * sGui
Single instance of GUI application object.
Filter to search data sets.