KNotifyConfigWidget Class
Configure the notification for a given application. More...
- Header:
#include <KNotifyConfigWidget> - CMake:
find_package(KF6 REQUIRED COMPONENTS NotifyConfig)
target_link_libraries(mytarget PRIVATE KF6::NotifyConfig) - Inherits: QWidget
List of all members, including inherited members
Public Functions
- KNotifyConfigWidget(QWidget *parent)
- void selectEvent(const QString &eventId)
- void setApplication(const QString &appname = QString())
Public Slots
Signals
Static Public Members
Detailed Description
You probably will want to use the static function configure
If you create the widget yourself, you must call setApplication before showing it.
Member Function Documentation
[explicit] KNotifyConfigWidget::KNotifyConfigWidget(QWidget *parent)
[signal] void KNotifyConfigWidget::changed(bool state)
Indicate that the state of the modules contents has changed. This signal is emitted whenever the state of the configuration changes.
See also KCModule::changed
[static] KNotifyConfigWidget *KNotifyConfigWidget::configure(QWidget *parent = nullptr, const QString &appname = QString())
Show a dialog with the widget.
parent the parent widget of the dialog
appname the application name, if null, it is autodetected
Returns the widget itself the topLevelWidget of it is probably a KDialog
[slot] void KNotifyConfigWidget::disableAllSounds()
Disable all sounds for the current application
[slot] void KNotifyConfigWidget::revertToDefaults()
Reset the UI to display the default values
See also KCModule::defaults
[slot] void KNotifyConfigWidget::save()
save to the config file
void KNotifyConfigWidget::selectEvent(const QString &eventId)
Select a given notification in the current list
id The id of the notification
void KNotifyConfigWidget::setApplication(const QString &appname = QString())
Change the application
appname name of the application. If null QCoreApplication::instance()->applicationName() is used