Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Remove toolbar toggles from svgtexteditor as they had never been implemented.
Wolthera van Hövell tot Westerflier70837d4fd21a
diff --git a/plugins/tools/svgtexttool/SvgTextEditor.cpp b/plugins/tools/svgtexttool/SvgTextEditor.cppindex e34019c21e..06eaf23800 100644--- a/plugins/tools/svgtexttool/SvgTextEditor.cpp+++ b/plugins/tools/svgtexttool/SvgTextEditor.cpp@@ -138,23 +138,6 @@ SvgTextEditor::SvgTextEditor(QWidget *parent, Qt::WindowFlags flags)guiFactory()->addClient(this);- // Create and plug toolbar list for Settings menu- QList<QAction *> toolbarList;- Q_FOREACH (QWidget* it, guiFactory()->containers("ToolBar")) {- KisToolBar * toolBar = ::qobject_cast<KisToolBar *>(it);- if (toolBar) {- toolBar->setToolButtonStyle(Qt::ToolButtonIconOnly);- KToggleAction* act = new KToggleAction(i18n("Show %1 Toolbar", toolBar->windowTitle()), this);- actionCollection()->addAction(toolBar->objectName().toUtf8(), act);- act->setCheckedState(KGuiItem(i18n("Hide %1 Toolbar", toolBar->windowTitle())));- connect(act, SIGNAL(toggled(bool)), this, SLOT(slotToolbarToggled(bool)));- act->setChecked(!toolBar->isHidden());- toolbarList.append(act);- }- }-- plugActionList("toolbarlist", toolbarList);-applySettings();}diff --git a/plugins/tools/svgtexttool/SvgTextShortCuts.cpp b/plugins/tools/svgtexttool/SvgTextShortCuts.cppindex 3c7132f215..4a068c4be2 100644--- a/plugins/tools/svgtexttool/SvgTextShortCuts.cpp+++ b/plugins/tools/svgtexttool/SvgTextShortCuts.cpp@@ -189,7 +189,7 @@ bool SvgTextShortCuts::actionEnabled(QAction *action, const QList<KoSvgTextPropeif (!action || !action->isCheckable() || !action->data().canConvert<SvgTextShortcutInfo>()) return false;SvgTextShortcutInfo info = action->data().value<SvgTextShortcutInfo>();- if (info.type != SvgTextShortcutInfo::Toggle || info.type != SvgTextShortcutInfo::Set) {+ if (info.type != SvgTextShortcutInfo::Toggle && info.type != SvgTextShortcutInfo::Set) {return false;}const QVariant testValue = info.type == SvgTextShortcutInfo::Toggle? info.testValue: info.value1;