Libksieve

sievedatespinbox.h
1 /*
2  SPDX-FileCopyrightText: 2017-2021 Laurent Montel <[email protected]>
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>
12 namespace KSieveUi
13 {
14 class KSIEVEUI_TESTS_EXPORT SieveDateSpinBox : public QSpinBox
15 {
16  Q_OBJECT
17 public:
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  Q_REQUIRED_RESULT QString code() const;
26 
27 private:
28  QString convertValue() const;
29  SelectDateWidget::DateType mType = SelectDateWidget::Year;
30 };
31 }
32 
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Apr 16 2021 23:09:34 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.