KAboutPluginDialog Class

This class provides a standard "About Plugin" dialog box. More...

Header: #include <KAboutPluginDialog>
Inherits: QDialog

Public Types

enum Option { NoOptions, HideTranslators }
flags Options

Public Functions

KAboutPluginDialog(const KPluginMetaData &pluginMetaData, QWidget *parent = nullptr)
KAboutPluginDialog(const KPluginMetaData &pluginMetaData, KAboutPluginDialog::Options options, QWidget *parent = nullptr)

Detailed Description

Member Type Documentation

enum KAboutPluginDialog::Option
flags KAboutPluginDialog::Options

Defines some options which can be applied to the about dialog.

ConstantValueDescription
KAboutPluginDialog::NoOptions0x0Show the standard about dialog.
KAboutPluginDialog::HideTranslators0x1Don't show the translators tab.

The Options type is a typedef for QFlags<Option>. It stores an OR combination of Option values.

Member Function Documentation

[explicit] KAboutPluginDialog::KAboutPluginDialog(const KPluginMetaData &pluginMetaData, QWidget *parent = nullptr)

Constructs a default "About Plugin" dialog box using the provided pluginMetaData.

pluginMetaData The data about the plugin to show in the dialog.

parent The parent of the dialog box. Use the toplevel window so that the dialog becomes centered.

[explicit] KAboutPluginDialog::KAboutPluginDialog(const KPluginMetaData &pluginMetaData, KAboutPluginDialog::Options options, QWidget *parent = nullptr)

Constructs a fully featured "About Plugin" dialog box using the provided pluginMetaData and extra options.

pluginMetaData The data about the plugin to show in the dialog.

options Options to apply, such as hiding the translators tab.

parent The parent of the dialog box. Use the toplevel window so that the dialog becomes centered.