Commit a19a2d36 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add ui file here too

parent c3baf89a
Pipeline #65727 canceled with stage
......@@ -156,6 +156,8 @@ target_sources(akregator_config_security PRIVATE
akregator_config_security.cpp
)
ki18n_wrap_ui(akregator_config_security ui/settings_security.ui)
target_link_libraries(akregator_config_security
akregatorinterfaces
KF5::KCMUtils
......
......@@ -6,6 +6,7 @@
#include "akregator_config_security.h"
#include "akregatorconfig.h"
#include "ui_settings_security.h"
#include <KAboutData>
#include <KLocalizedString>
#include <KPluginFactory>
......@@ -16,9 +17,13 @@ K_PLUGIN_FACTORY(KCMAkregatorSecurityConfigFactory, registerPlugin<KCMAkregatorS
KCMAkregatorSecurityConfig::KCMAkregatorSecurityConfig(QWidget *parent, const QVariantList &args)
: KCModule(parent, args)
, m_widget(new QWidget(this))
{
auto lay = new QHBoxLayout(this);
lay->setContentsMargins({});
Ui::SettingsSecurity ui;
ui.setupUi(m_widget);
lay->addWidget(m_widget);
auto about = new KAboutData(QStringLiteral("kcmakrsecutiryconfig"),
i18n("Configure Plugins"),
......@@ -30,10 +35,6 @@ KCMAkregatorSecurityConfig::KCMAkregatorSecurityConfig(QWidget *parent, const QV
about->addAuthor(i18n("Laurent Montel"), QString(), QStringLiteral("montel@kde.org"));
setAboutData(about);
// mConfigurePluginWidget = new PimCommon::ConfigurePluginsWidget(new AkregatorConfigurePluginListWidget(this), this);
// mConfigurePluginWidget->setObjectName(QStringLiteral("configurePluginWidget"));
// connect(mConfigurePluginWidget, &PimCommon::ConfigurePluginsWidget::changed, this, &KCMAkregatorSecurityConfig::slotConfigChanged);
// lay->addWidget(mConfigurePluginWidget);
}
void KCMAkregatorSecurityConfig::slotConfigChanged()
......@@ -43,17 +44,17 @@ void KCMAkregatorSecurityConfig::slotConfigChanged()
void KCMAkregatorSecurityConfig::save()
{
// mConfigurePluginWidget->save();
// TODO
}
void KCMAkregatorSecurityConfig::load()
{
// mConfigurePluginWidget->doLoadFromGlobalSettings();
// TODO
}
void KCMAkregatorSecurityConfig::defaults()
{
// mConfigurePluginWidget->doResetToDefaultsOther();
// TODO
}
#include "akregator_config_security.moc"
......@@ -23,6 +23,6 @@ private Q_SLOTS:
void slotConfigChanged();
private:
// PimCommon::ConfigurePluginsWidget *mConfigurePluginWidget = nullptr;
QWidget *const m_widget;
};
}
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>SettingsSecurity</class>
<widget class="QWidget" name="SettingsSecurity" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
</widget>
<connections/>
</ui>
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