7#include "sievedatespinbox.h"
8#include "libksieveui_debug.h"
9using namespace KSieveUi;
11SieveDateSpinBox::SieveDateSpinBox(
QWidget *parent)
14 setSpecialValueText(QStringLiteral(
"*"));
17SieveDateSpinBox::~SieveDateSpinBox() =
default;
19void SieveDateSpinBox::setRange(
int minValue,
int maxValue)
26void SieveDateSpinBox::setType(KSieveUi::SelectDateWidget::DateType type)
30 case SelectDateWidget::Year:
33 case SelectDateWidget::Month:
36 case SelectDateWidget::Day:
39 case SelectDateWidget::Hour:
42 case SelectDateWidget::Minute:
45 case SelectDateWidget::Second:
48 case SelectDateWidget::Weekday:
52 qCWarning(LIBKSIEVEUI_LOG) <<
"This type mustn't be selected " << mType;
56void SieveDateSpinBox::setCode(
const QString &str)
66QString SieveDateSpinBox::code()
const
69 return QStringLiteral(
"*");
71 return convertValue();
74QString SieveDateSpinBox::convertValue()
const
78 case SelectDateWidget::Year:
81 case SelectDateWidget::Month:
84 case SelectDateWidget::Day:
87 case SelectDateWidget::Hour:
90 case SelectDateWidget::Minute:
93 case SelectDateWidget::Second:
96 case SelectDateWidget::Weekday:
100 qCWarning(LIBKSIEVEUI_LOG) <<
"This type mustn't be selected " << mType;
106#include "moc_sievedatespinbox.cpp"
Type type(const QSqlDatabase &db)
QString arg(Args &&... args) const const
QString number(double n, char format, int precision)
int toInt(bool *ok, int base) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:30 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.