Commit 21da9adf authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use const QVariantList & as arguments

parent 83d47c38
Pipeline #61246 passed with stage
in 12 minutes and 17 seconds
......@@ -11,14 +11,14 @@
#include <CalendarSupport/KCalPrefs>
#include <QStandardPaths>
extern "C" {
Q_DECL_EXPORT KCModule *create_korgdesignerfields(QWidget *parent, const char *)
Q_DECL_EXPORT KCModule *create_korgdesignerfields(QWidget *parent, const QVariantList &args = {})
{
return new KOPrefsDesignerFields(parent);
return new KOPrefsDesignerFields(parent, args);
}
}
KOPrefsDesignerFields::KOPrefsDesignerFields(QWidget *parent)
: KCMDesignerFields(parent)
KOPrefsDesignerFields::KOPrefsDesignerFields(QWidget *parent, const QVariantList &args)
: KCMDesignerFields(parent, args)
{
}
......
......@@ -14,7 +14,7 @@
class KOPrefsDesignerFields : public KCMDesignerFields
{
public:
explicit KOPrefsDesignerFields(QWidget *parent = nullptr);
explicit KOPrefsDesignerFields(QWidget *parent = nullptr, const QVariantList &args = {});
protected:
Q_REQUIRED_RESULT QString localUiDir() override;
......
......@@ -25,8 +25,8 @@
#include <QTabWidget>
#include <TagSelectionComboBox>
KOPrefsDialogColorsAndFonts::KOPrefsDialogColorsAndFonts(QWidget *parent)
: Korganizer::KPrefsModule(KOPrefs::instance(), parent)
KOPrefsDialogColorsAndFonts::KOPrefsDialogColorsAndFonts(QWidget *parent, const QVariantList &args)
: Korganizer::KPrefsModule(KOPrefs::instance(), parent, args)
{
QBoxLayout *topTopLayout = new QVBoxLayout(this);
auto tabWidget = new QTabWidget(this);
......@@ -274,8 +274,8 @@ void KOPrefsDialogColorsAndFonts::updateResourceColor()
}
extern "C" {
Q_DECL_EXPORT KCModule *create_korganizerconfigcolorsandfonts(QWidget *parent, const char *)
Q_DECL_EXPORT KCModule *create_korganizerconfigcolorsandfonts(QWidget *parent, const QVariantList &args = {})
{
return new KOPrefsDialogColorsAndFonts(parent);
return new KOPrefsDialogColorsAndFonts(parent, args);
}
}
......@@ -23,7 +23,7 @@ class KOPrefsDialogColorsAndFonts : public Korganizer::KPrefsModule
{
Q_OBJECT
public:
explicit KOPrefsDialogColorsAndFonts(QWidget *parent);
explicit KOPrefsDialogColorsAndFonts(QWidget *parent, const QVariantList &args = {});
protected:
void usrWriteConfig() override;
......
......@@ -17,8 +17,8 @@
#include <TransportManagementWidget>
#include <akonadi/calendar/calendarsettings.h> //krazy:exclude=camelcase this is a generated file
KOPrefsDialogGroupScheduling::KOPrefsDialogGroupScheduling(QWidget *parent)
: Korganizer::KPrefsModule(KOPrefs::instance(), parent)
KOPrefsDialogGroupScheduling::KOPrefsDialogGroupScheduling(QWidget *parent, const QVariantList &args)
: Korganizer::KPrefsModule(KOPrefs::instance(), parent, args)
{
QBoxLayout *topTopLayout = new QVBoxLayout(this);
......@@ -52,8 +52,8 @@ void KOPrefsDialogGroupScheduling::usrWriteConfig()
}
extern "C" {
Q_DECL_EXPORT KCModule *create_korganizerconfiggroupscheduling(QWidget *parent, const char *)
Q_DECL_EXPORT KCModule *create_korganizerconfiggroupscheduling(QWidget *parent, const QVariantList &args = {})
{
return new KOPrefsDialogGroupScheduling(parent);
return new KOPrefsDialogGroupScheduling(parent, args);
}
}
......@@ -14,7 +14,7 @@ class KOPrefsDialogGroupScheduling : public Korganizer::KPrefsModule
{
Q_OBJECT
public:
explicit KOPrefsDialogGroupScheduling(QWidget *parent);
explicit KOPrefsDialogGroupScheduling(QWidget *parent, const QVariantList &args = {});
protected:
void usrWriteConfig() override;
......
......@@ -15,8 +15,8 @@
#include <QVBoxLayout>
#include <akonadi/calendar/calendarsettings.h> //krazy:exclude=camelcase this is a generated file
KOPrefsDialogGroupwareScheduling::KOPrefsDialogGroupwareScheduling(QWidget *parent)
: KPrefsModule(CalendarSupport::KCalPrefs::instance(), parent)
KOPrefsDialogGroupwareScheduling::KOPrefsDialogGroupwareScheduling(QWidget *parent, const QVariantList &args)
: KPrefsModule(CalendarSupport::KCalPrefs::instance(), parent, args)
{
mGroupwarePage = new Ui::KOGroupwarePrefsPage();
auto widget = new QWidget(this);
......@@ -95,8 +95,8 @@ void KOPrefsDialogGroupwareScheduling::usrWriteConfig()
}
extern "C" {
Q_DECL_EXPORT KCModule *create_korganizerconfigfreebusy(QWidget *parent, const char *)
Q_DECL_EXPORT KCModule *create_korganizerconfigfreebusy(QWidget *parent, const QVariantList &args = {})
{
return new KOPrefsDialogGroupwareScheduling(parent);
return new KOPrefsDialogGroupwareScheduling(parent, args);
}
}
......@@ -18,7 +18,7 @@ class KOPrefsDialogGroupwareScheduling : public Korganizer::KPrefsModule
{
Q_OBJECT
public:
explicit KOPrefsDialogGroupwareScheduling(QWidget *parent);
explicit KOPrefsDialogGroupwareScheduling(QWidget *parent, const QVariantList &args = {});
~KOPrefsDialogGroupwareScheduling() override;
protected:
......
......@@ -23,8 +23,8 @@
#include <QCheckBox>
#include <QLabel>
KOPrefsDialogMain::KOPrefsDialogMain(QWidget *parent)
: KPrefsModule(KOPrefs::instance(), parent)
KOPrefsDialogMain::KOPrefsDialogMain(QWidget *parent, const QVariantList &args)
: KPrefsModule(KOPrefs::instance(), parent, args)
{
QBoxLayout *topTopLayout = new QVBoxLayout(this);
auto tabWidget = new QTabWidget(this);
......@@ -125,8 +125,8 @@ void KOPrefsDialogMain::toggleEmailSettings(bool on)
}
extern "C" {
Q_DECL_EXPORT KCModule *create_korganizerconfigmain(QWidget *parent, const char *)
Q_DECL_EXPORT KCModule *create_korganizerconfigmain(QWidget *parent, const QVariantList &args = {})
{
return new KOPrefsDialogMain(parent);
return new KOPrefsDialogMain(parent, args);
}
}
......@@ -15,7 +15,7 @@ class KOPrefsDialogMain : public Korganizer::KPrefsModule
{
Q_OBJECT
public:
explicit KOPrefsDialogMain(QWidget *parent);
explicit KOPrefsDialogMain(QWidget *parent, const QVariantList &args = {});
protected:
void usrWriteConfig() override;
......
......@@ -49,8 +49,8 @@ private:
/**
Dialog for selecting and configuring KOrganizer plugins
*/
KOPrefsDialogPlugins::KOPrefsDialogPlugins(QWidget *parent)
: KPrefsModule(KOPrefs::instance(), parent)
KOPrefsDialogPlugins::KOPrefsDialogPlugins(QWidget *parent, const QVariantList &args)
: KPrefsModule(KOPrefs::instance(), parent, args)
{
QBoxLayout *topTopLayout = new QVBoxLayout(this);
mTreeWidget = new QTreeWidget(this);
......@@ -309,8 +309,8 @@ void KOPrefsDialogPlugins::selectionChanged()
}
extern "C" {
Q_DECL_EXPORT KCModule *create_korganizerconfigplugins(QWidget *parent, const char *)
Q_DECL_EXPORT KCModule *create_korganizerconfigplugins(QWidget *parent, const QVariantList &args = {})
{
return new KOPrefsDialogPlugins(parent);
return new KOPrefsDialogPlugins(parent, args);
}
}
......@@ -22,7 +22,7 @@ class KOPrefsDialogPlugins : public Korganizer::KPrefsModule
{
Q_OBJECT
public:
explicit KOPrefsDialogPlugins(QWidget *parent);
explicit KOPrefsDialogPlugins(QWidget *parent, const QVariantList &args = {});
~KOPrefsDialogPlugins() override;
protected Q_SLOTS:
......
......@@ -26,14 +26,14 @@
#include <QTimeEdit>
#include <QVBoxLayout>
extern "C" {
Q_DECL_EXPORT KCModule *create_korganizerconfigtime(QWidget *parent, const char *)
Q_DECL_EXPORT KCModule *create_korganizerconfigtime(QWidget *parent, const QVariantList &args = {})
{
return new KOPrefsDialogTime(parent);
return new KOPrefsDialogTime(parent, args);
}
}
KOPrefsDialogTime::KOPrefsDialogTime(QWidget *parent)
: Korganizer::KPrefsModule(KOPrefs::instance(), parent)
KOPrefsDialogTime::KOPrefsDialogTime(QWidget *parent, const QVariantList &args)
: Korganizer::KPrefsModule(KOPrefs::instance(), parent, args)
{
auto layout = new QVBoxLayout(this);
auto tabWidget = new QTabWidget(this);
......
......@@ -21,7 +21,7 @@ class KCheckComboBox;
class KOPrefsDialogTime : public Korganizer::KPrefsModule
{
public:
explicit KOPrefsDialogTime(QWidget *parent);
explicit KOPrefsDialogTime(QWidget *parent, const QVariantList &args = {});
protected:
void usrReadConfig() override;
......
......@@ -23,14 +23,14 @@
#include <QVBoxLayout>
extern "C" {
Q_DECL_EXPORT KCModule *create_korganizerconfigviews(QWidget *parent, const char *)
Q_DECL_EXPORT KCModule *create_korganizerconfigviews(QWidget *parent, const QVariantList &args = {})
{
return new KOPrefsDialogViews(parent);
return new KOPrefsDialogViews(parent, args);
}
}
KOPrefsDialogViews::KOPrefsDialogViews(QWidget *parent)
: Korganizer::KPrefsModule(KOPrefs::instance(), parent)
KOPrefsDialogViews::KOPrefsDialogViews(QWidget *parent, const QVariantList &args)
: Korganizer::KPrefsModule(KOPrefs::instance(), parent, args)
, mMonthIconComboBox(new KItemIconCheckCombo(KItemIconCheckCombo::MonthType, this))
, mAgendaIconComboBox(new KItemIconCheckCombo(KItemIconCheckCombo::AgendaType, this))
{
......
......@@ -16,7 +16,7 @@ class KItemIconCheckCombo;
class KOPrefsDialogViews : public Korganizer::KPrefsModule
{
public:
explicit KOPrefsDialogViews(QWidget *parent);
explicit KOPrefsDialogViews(QWidget *parent, const QVariantList &args = {});
protected:
void usrReadConfig() override;
......
......@@ -19,9 +19,9 @@
#ifdef WITH_KUSERFEEDBACK
extern "C" {
Q_DECL_EXPORT KCModule *create_korguserfeeback(QWidget *parent, const char *)
Q_DECL_EXPORT KCModule *create_korguserfeeback(QWidget *parent, const QVariantList &args = {})
{
return new KOPrefsUserFeedBack(parent);
return new KOPrefsUserFeedBack(parent, args);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment