]>
cloud.milkyroute.net Git - dolphin.git/blob - src/search/selectors/dateselector.h
2 SPDX-FileCopyrightText: 2025 Felix Ernst <felixernst@kde.org>
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
10 #include "../updatablestateinterface.h"
12 #include <QToolButton>
14 class KDatePickerPopup
;
19 class DateSelector
: public QToolButton
, public UpdatableStateInterface
24 explicit DateSelector(std::shared_ptr
<const DolphinQuery
> dolphinQuery
, QWidget
*parent
= nullptr);
26 /** Causes configurationChanged() to be emitted with a DolphinQuery object that does not contain any restriction settable by this class. */
27 void removeRestriction();
30 /** Is emitted whenever settings have changed and a new search might be necessary. */
31 void configurationChanged(const Search::DolphinQuery
&dolphinQuery
);
34 void updateState(const std::shared_ptr
<const DolphinQuery
> &dolphinQuery
) override
;
37 KDatePickerPopup
*m_datePickerPopup
= nullptr;
42 #endif // DATESELECTOR_H