Display Apply button in KCMs

When displaying the KCMs in another application's configuration dialog
(for example, in Konqueror), the Apply, Ok and Reset buttons aren't
shown. This issue is caused by a missing Apply flag in the call to
setButtons in the KCModule constructor.

the fact that in the call to setButtons
from the KCModule constructor, the Apply flag is missing.

BUG: 448352
This commit is contained in:
Stefano Crocco 2022-03-01 11:59:42 +01:00
parent f73183c0f6
commit 505bf52f59
3 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ DolphinGeneralConfigModule::DolphinGeneralConfigModule(QWidget *parent, const QV
KCModule(parent, args),
m_pages()
{
setButtons(KCModule::Default | KCModule::Help);
setButtons(KCModule::Default | KCModule::Help | KCModule::Apply);
QVBoxLayout* topLayout = new QVBoxLayout(this);
topLayout->setContentsMargins(0, 0, 0, 0);

View file

@ -19,7 +19,7 @@ DolphinNavigationConfigModule::DolphinNavigationConfigModule(QWidget *parent, co
KCModule(parent, args),
m_navigation(nullptr)
{
setButtons(KCModule::Default | KCModule::Help);
setButtons(KCModule::Default | KCModule::Help | KCModule::Apply);
QVBoxLayout* topLayout = new QVBoxLayout(this);
topLayout->setContentsMargins(0, 0, 0, 0);

View file

@ -23,7 +23,7 @@ DolphinViewModesConfigModule::DolphinViewModesConfigModule(QWidget *parent, cons
KCModule(parent, args),
m_tabs()
{
setButtons(KCModule::Default | KCModule::Help);
setButtons(KCModule::Default | KCModule::Help | KCModule::Apply);
QVBoxLayout* topLayout = new QVBoxLayout(this);
topLayout->setContentsMargins(0, 0, 0, 0);