Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/filterwidget.cpp
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | |||||
71 | 71 | | |||
72 | void FilterWidget::setShowFutureTasks(bool show) | 72 | void FilterWidget::setShowFutureTasks(bool show) | ||
73 | { | 73 | { | ||
74 | m_model->setShowFutureTasks(show); | 74 | m_model->setShowFutureTasks(show); | ||
75 | } | 75 | } | ||
76 | 76 | | |||
77 | void FilterWidget::onTextChanged(const QString &text) | 77 | void FilterWidget::onTextChanged(const QString &text) | ||
78 | { | 78 | { | ||
79 | m_model->setFilterFixedString(text); | 79 | m_model->setFilterRegularExpression(QRegularExpression::escape(text)); | ||
80 | } | 80 | } | ||
81 | 81 | | |||
82 | void FilterWidget::onSortTypeChanged(int index) | 82 | void FilterWidget::onSortTypeChanged(int index) | ||
83 | { | 83 | { | ||
84 | const int data = ui->sortTypeCombo->itemData(index).toInt(); | 84 | const int data = ui->sortTypeCombo->itemData(index).toInt(); | ||
85 | m_model->setSortType(Presentation::TaskFilterProxyModel::SortType(data)); | 85 | m_model->setSortType(Presentation::TaskFilterProxyModel::SortType(data)); | ||
86 | } | 86 | } | ||
87 | 87 | | |||
Show All 9 Lines |