Eventviews

todoviewquicksearch.h
1/*
2 This file is part of KOrganizer.
3
4 SPDX-FileCopyrightText: 2004 Till Adam <adam@kde.org>
5 SPDX-FileCopyrightText: 2005 Rafal Rzepecki <divide@users.sourceforge.net>
6 SPDX-FileCopyrightText: 2008 Thomas Thrainer <tom_t@gmx.at>
7
8 SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0
9*/
10
11#pragma once
12
13#include <QWidget>
14
15namespace KPIM
16{
17class KCheckComboBox;
18}
19
20namespace Akonadi
21{
22class TagSelectionComboBox;
23}
24
25class QLineEdit;
26
27class TodoViewQuickSearch : public QWidget
28{
30public:
31 explicit TodoViewQuickSearch(QWidget *parent);
32
34 void searchTextChanged(const QString &);
35
36 /**
37 * The string list contains the new categories which are set on the filter.
38 * All values belong to the Qt::UserRole of the combo box, not the Qt::DisplayRole,
39 * so, if someone checks a subcategory, the value will be "ParentCategory:subCategory"
40 * and not " subcategory".
41 * */
42 void filterCategoryChanged(const QStringList &);
43 void filterPriorityChanged(const QStringList &);
44
45public Q_SLOTS:
46 void reset();
47
48private:
49 /** Helper method for the filling of the priority combo. */
50 void fillPriorities();
51
52 QLineEdit *const mSearchLine;
53 Akonadi::TagSelectionComboBox *const mCategoryCombo;
54 KPIM::KCheckComboBox *const mPriorityCombo;
55};
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.