Libksieve

sievedatespinbox.h
1/*
2 SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "ksieveui_private_export.h"
10#include "selectdatewidget.h"
11#include <QSpinBox>
12namespace KSieveUi
13{
14class KSIEVEUI_TESTS_EXPORT SieveDateSpinBox : public QSpinBox
15{
16 Q_OBJECT
17public:
18 explicit SieveDateSpinBox(QWidget *parent = nullptr);
19 ~SieveDateSpinBox() override;
20 void setType(KSieveUi::SelectDateWidget::DateType type);
21
22 void setRange(int minValue, int maxValue);
23
24 void setCode(const QString &value);
25 [[nodiscard]] QString code() const;
26
27private:
28 QString convertValue() const;
29 SelectDateWidget::DateType mType = SelectDateWidget::Year;
30};
31}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:07:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.