CalendarSupport
9#include "calendarsupport_export.h"
15namespace CalendarSupport
17class CALENDARSUPPORT_EXPORT CategoryHierarchyReader
20 void read(
const QStringList &categories);
21 virtual ~CategoryHierarchyReader() =
default;
23 [[nodiscard]]
static QStringList
path(QString
string);
26 CategoryHierarchyReader() =
default;
28 virtual void clear() = 0;
29 virtual void goUp() = 0;
30 virtual void addChild(
const QString &label,
const QVariant &userData = QVariant()) = 0;
31 virtual int depth()
const = 0;
34class CALENDARSUPPORT_EXPORT CategoryHierarchyReaderQComboBox :
public CategoryHierarchyReader
37 explicit CategoryHierarchyReaderQComboBox(QComboBox *box)
42 ~CategoryHierarchyReaderQComboBox()
override =
default;
45 void clear()
override;
47 void addChild(
const QString &label,
const QVariant &userData = QVariant())
override;
48 int depth()
const override;
51 QComboBox *
const mBox;
52 int mCurrentDepth = 0;
QVariant read(const QByteArray &data, int versionOverride=0)
QString path(const QString &relativePath)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:25 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.