blob: 860c6510003f1b36e605b6e6f592d53ce8c7a032 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/*
SPDX-FileCopyrightText: 2025 Felix Ernst <[email protected]>
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#ifndef DATESELECTOR_H
#define DATESELECTOR_H
#include "../updatablestateinterface.h"
#include <QToolButton>
class KDatePickerPopup;
namespace Search
{
class DateSelector : public QToolButton, public UpdatableStateInterface
{
Q_OBJECT
public:
explicit DateSelector(std::shared_ptr<const DolphinQuery> dolphinQuery, QWidget *parent = nullptr);
/** Causes configurationChanged() to be emitted with a DolphinQuery object that does not contain any restriction settable by this class. */
void removeRestriction();
Q_SIGNALS:
/** Is emitted whenever settings have changed and a new search might be necessary. */
void configurationChanged(const Search::DolphinQuery &dolphinQuery);
private:
void updateState(const std::shared_ptr<const DolphinQuery> &dolphinQuery) override;
private:
KDatePickerPopup *m_datePickerPopup = nullptr;
};
}
#endif // DATESELECTOR_H
|