PimCommon::ContentTypeWidget Class

class PimCommon::ContentTypeWidget

The ContentTypeWidget class provides a combobox for selecting collection types Author: Laurent Montel <montel@kde.org>. More...

Header: #include <PimCommonAkonadi/ContentTypeWidget>
CMake: find_package(KPim6PimCommonAkonadi REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::PimCommonAkonadi)

Public Functions

ContentTypeWidget(QWidget *parent = nullptr)
virtual ~ContentTypeWidget() override
void setCurrentItem(const QString &name)

Static Public Members

QString labelName()

Detailed Description

Member Function Documentation

[explicit] ContentTypeWidget::ContentTypeWidget(QWidget *parent = nullptr)

Constructs a ContentTypeWidget. @param parent The parent widget

[override virtual noexcept] ContentTypeWidget::~ContentTypeWidget()

Destructs the ContentTypeWidget.

[static] QString ContentTypeWidget::labelName()

Returns the label name for use in a QFormLayout. @return The label text

void ContentTypeWidget::setCurrentItem(const QString &name)

Sets the current item by name. @param name The name of the content type to select