mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
kcms: Don't add button row
This commit is contained in:
parent
4a71a634f5
commit
8d564014b5
6 changed files with 9 additions and 3 deletions
|
|
@ -22,6 +22,8 @@ CellularNetworkSettings::CellularNetworkSettings(QObject *parent, const KPluginM
|
||||||
, m_modemList{}
|
, m_modemList{}
|
||||||
, m_simList{}
|
, m_simList{}
|
||||||
{
|
{
|
||||||
|
setButtons({});
|
||||||
|
|
||||||
CellularNetworkSettings::staticInst = this;
|
CellularNetworkSettings::staticInst = this;
|
||||||
|
|
||||||
qmlRegisterType<ProfileSettings>("cellularnetworkkcm", 1, 0, "ProfileSettings");
|
qmlRegisterType<ProfileSettings>("cellularnetworkkcm", 1, 0, "ProfileSettings");
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ public:
|
||||||
HotspotSettings(QObject *parent, const KPluginMetaData &metaData)
|
HotspotSettings(QObject *parent, const KPluginMetaData &metaData)
|
||||||
: KQuickConfigModule(parent, metaData)
|
: KQuickConfigModule(parent, metaData)
|
||||||
{
|
{
|
||||||
|
setButtons({});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ Info::Info(QObject *parent, const KPluginMetaData &metaData)
|
||||||
, m_softwareInfo(new SoftwareInfo(this))
|
, m_softwareInfo(new SoftwareInfo(this))
|
||||||
, m_hardwareInfo(new HardwareInfo(this))
|
, m_hardwareInfo(new HardwareInfo(this))
|
||||||
{
|
{
|
||||||
setButtons(Apply | Default);
|
setButtons({});
|
||||||
|
|
||||||
qDebug() << "Info module loaded.";
|
qDebug() << "Info module loaded.";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,12 +37,12 @@ TimeSettings::TimeSettings(QObject *parent, const KPluginMetaData &metaData)
|
||||||
: KQuickConfigModule(parent, metaData)
|
: KQuickConfigModule(parent, metaData)
|
||||||
, m_useNtp(true)
|
, m_useNtp(true)
|
||||||
{
|
{
|
||||||
|
setButtons({});
|
||||||
|
|
||||||
qDebug() << "time settings init";
|
qDebug() << "time settings init";
|
||||||
m_timeZonesModel = nullptr;
|
m_timeZonesModel = nullptr;
|
||||||
setTimeZone(QTimeZone::systemTimeZone().id());
|
setTimeZone(QTimeZone::systemTimeZone().id());
|
||||||
|
|
||||||
setButtons(Apply | Default);
|
|
||||||
|
|
||||||
qmlRegisterAnonymousType<TimeZoneModel>("org.kde.timesettings", 1);
|
qmlRegisterAnonymousType<TimeZoneModel>("org.kde.timesettings", 1);
|
||||||
qmlRegisterAnonymousType<TimeZoneFilterProxy>("org.kde.timesettings", 1);
|
qmlRegisterAnonymousType<TimeZoneFilterProxy>("org.kde.timesettings", 1);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,8 @@ VirtualKeyboard::VirtualKeyboard(QObject *parent, const KPluginMetaData &metaDat
|
||||||
, m_gsettings(new GSettingsItem("/org/maliit/keyboard/maliit/", parent))
|
, m_gsettings(new GSettingsItem("/org/maliit/keyboard/maliit/", parent))
|
||||||
, m_langModel(new LanguageModel(this, m_gsettings))
|
, m_langModel(new LanguageModel(this, m_gsettings))
|
||||||
{
|
{
|
||||||
|
setButtons({});
|
||||||
|
|
||||||
qmlRegisterAnonymousType<LanguageModel>("org.kde.kcm.virtualkeyboard", 1);
|
qmlRegisterAnonymousType<LanguageModel>("org.kde.kcm.virtualkeyboard", 1);
|
||||||
|
|
||||||
m_autoCapitalize = m_gsettings->value("auto-capitalization").toBool();
|
m_autoCapitalize = m_gsettings->value("auto-capitalization").toBool();
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ K_PLUGIN_CLASS_WITH_JSON(WifiSettings, "kcm_mobile_wifi.json")
|
||||||
WifiSettings::WifiSettings(QObject *parent, const KPluginMetaData &metaData)
|
WifiSettings::WifiSettings(QObject *parent, const KPluginMetaData &metaData)
|
||||||
: KQuickConfigModule(parent, metaData)
|
: KQuickConfigModule(parent, metaData)
|
||||||
{
|
{
|
||||||
|
setButtons({});
|
||||||
}
|
}
|
||||||
|
|
||||||
QVariantMap WifiSettings::getConnectionSettings(const QString &connection, const QString &type)
|
QVariantMap WifiSettings::getConnectionSettings(const QString &connection, const QString &type)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue