Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit a9993017 authored by Laurent Montel's avatar Laurent Montel 😁

Warning--

parent fb96a53d
......@@ -60,7 +60,7 @@ void KillRunnerConfig::load()
m_ui->useTriggerWord->setChecked(grp.readEntry(CONFIG_USE_TRIGGERWORD,true));
m_ui->triggerWord->setText(grp.readEntry(CONFIG_TRIGGERWORD,i18n("kill")));
m_ui->sorting->setCurrentIndex(m_ui->sorting->findData(grp.readEntry<int>(CONFIG_SORTING, (int) NONE)));
m_ui->sorting->setCurrentIndex(m_ui->sorting->findData(grp.readEntry<int>(CONFIG_SORTING, static_cast<int>(NONE))));
emit changed(false);
}
......
......@@ -112,19 +112,14 @@ QString Containment::formFactor() const
switch (d->containment.data()->formFactor()) {
case Plasma::Types::Planar:
return QStringLiteral("planar");
break;
case Plasma::Types::MediaCenter:
return QStringLiteral("mediacenter");
break;
case Plasma::Types::Horizontal:
return QStringLiteral("horizontal");
break;
case Plasma::Types::Vertical:
return QStringLiteral("vertical");
break;
case Plasma::Types::Application:
return QStringLiteral("application");
break;
}
return QStringLiteral("Planar");
......
......@@ -54,25 +54,18 @@ QString Panel::location() const
switch (c->location()) {
case Plasma::Types::Floating:
return "floating";
break;
case Plasma::Types::Desktop:
return "desktop";
break;
case Plasma::Types::FullScreen:
return "fullscreen";
break;
case Plasma::Types::TopEdge:
return "top";
break;
case Plasma::Types::BottomEdge:
return "bottom";
break;
case Plasma::Types::LeftEdge:
return "left";
break;
case Plasma::Types::RightEdge:
return "right";
break;
}
return "floating";
......@@ -137,13 +130,10 @@ QString Panel::alignment() const
switch (panelConfig().readEntry("alignment", 0)) {
case Qt::AlignRight:
return "right";
break;
case Qt::AlignCenter:
return "center";
break;
default:
return "left";
break;
}
return "left";
......@@ -234,16 +224,12 @@ QString Panel::hiding() const
switch (panelConfig().readEntry("panelVisibility", 0)) {
case PanelView::NormalPanel:
return "none";
break;
case PanelView::AutoHide:
return "autohide";
break;
case PanelView::LetWindowsCover:
return "windowscover";
break;
case PanelView::WindowsGoBelow:
return "windowsbelow";
break;
}
return "none";
}
......
......@@ -710,7 +710,7 @@ void ShellCorona::load()
setImmutability(Plasma::Types::SystemImmutable);
} else {
KConfigGroup coronaConfig(config(), "General");
setImmutability((Plasma::Types::ImmutabilityType)coronaConfig.readEntry("immutability", (int)Plasma::Types::Mutable));
setImmutability((Plasma::Types::ImmutabilityType)coronaConfig.readEntry("immutability", static_cast<int>(Plasma::Types::Mutable)));
}
}
......
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