8#include "contenttypewidget.h"
11#include "collectiontypeutil.h"
12#include <KLocalizedString>
16ContentTypeWidget::ContentTypeWidget(
QWidget *parent)
19 setObjectName(
"contentcombobox"_L1);
21 addItem(collectionUtil.folderContentDescription(CollectionTypeUtil::ContentsTypeMail));
22 addItem(collectionUtil.folderContentDescription(CollectionTypeUtil::ContentsTypeCalendar));
23 addItem(collectionUtil.folderContentDescription(CollectionTypeUtil::ContentsTypeContact));
24 addItem(collectionUtil.folderContentDescription(CollectionTypeUtil::ContentsTypeNote));
25 addItem(collectionUtil.folderContentDescription(CollectionTypeUtil::ContentsTypeTask));
26 addItem(collectionUtil.folderContentDescription(CollectionTypeUtil::ContentsTypeJournal));
27 addItem(collectionUtil.folderContentDescription(CollectionTypeUtil::ContentsTypeConfiguration));
28 addItem(collectionUtil.folderContentDescription(CollectionTypeUtil::ContentsTypeFreebusy));
29 addItem(collectionUtil.folderContentDescription(CollectionTypeUtil::ContentsTypeFile));
32ContentTypeWidget::~ContentTypeWidget() =
default;
34void ContentTypeWidget::setCurrentItem(
const QString &name)
44 return i18n(
"&Folder contents:");
47#include "moc_contenttypewidget.cpp"
The CollectionTypeUtil class.
static QString labelName()
Label name that should be used in a QFormLayout with a ContentTypeWidget.
QString i18n(const char *text, const TYPE &arg...)
void setCurrentIndex(int index)
int findText(const QString &text, Qt::MatchFlags flags) 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:35 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.