/* SPDX-FileCopyrightText: 2025 Felix Ernst 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 class KDatePickerPopup; namespace Search { class DateSelector : public QToolButton, public UpdatableStateInterface { Q_OBJECT public: explicit DateSelector(std::shared_ptr 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 &dolphinQuery) override; private: KDatePickerPopup *m_datePickerPopup = nullptr; }; } #endif // DATESELECTOR_H