Commit e5c9bde8 authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Remove obsolete actions

parent ca4c3cbe
...@@ -371,7 +371,6 @@ void EditorWindow::initActions() ...@@ -371,7 +371,6 @@ void EditorWindow::initActions()
ParleyActions::create(ParleyActions::ConfigurePractice, m_mainWindow, SLOT(configurePractice()), actionCollection()); ParleyActions::create(ParleyActions::ConfigurePractice, m_mainWindow, SLOT(configurePractice()), actionCollection());
ParleyActions::create(ParleyActions::ToggleSearchBar, this, SLOT(slotConfigShowSearch()), actionCollection()); ParleyActions::create(ParleyActions::ToggleSearchBar, this, SLOT(slotConfigShowSearch()), actionCollection());
ParleyActions::create(ParleyActions::SearchVocabulary, this, SLOT(startSearch()), actionCollection()); ParleyActions::create(ParleyActions::SearchVocabulary, this, SLOT(startSearch()), actionCollection());
ParleyActions::create(ParleyActions::ShowScriptManager, this, SLOT(slotShowScriptManager()), actionCollection());
ParleyActions::create(ParleyActions::LanguagesProperties, m_mainWindow->parleyDocument(), SLOT(languageProperties()), actionCollection()); ParleyActions::create(ParleyActions::LanguagesProperties, m_mainWindow->parleyDocument(), SLOT(languageProperties()), actionCollection());
new EditorWindowAdaptor(this); new EditorWindowAdaptor(this);
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include <KXmlGuiWindow> #include <KXmlGuiWindow>
class QLineEdit; class QLineEdit;
class ScriptManager;
///@brief contains objects for the editor main window ///@brief contains objects for the editor main window
...@@ -136,7 +135,6 @@ private: ...@@ -136,7 +135,6 @@ private:
QList<bool> m_dockWidgetVisibility; QList<bool> m_dockWidgetVisibility;
friend class ::ParleyDocument; friend class ::ParleyDocument;
friend class ::ScriptManager;
}; };
} }
......
...@@ -228,15 +228,6 @@ QAction *ParleyActions::create(ParleyAction id, const QObject *recvr, const char ...@@ -228,15 +228,6 @@ QAction *ParleyActions::create(ParleyAction id, const QObject *recvr, const char
pAction = KStandardAction::find(recvr, slot, parent); pAction = KStandardAction::find(recvr, slot, parent);
parent->setDefaultShortcut(pAction, QKeySequence::Find); parent->setDefaultShortcut(pAction, QKeySequence::Find);
break; break;
case ShowScriptManager:
pAction = Private::createCustomAction(recvr,
slot,
parent,
QStringLiteral("show_script_manager"),
i18n("&Script Manager"),
i18n("Enable and disable scripts"),
QStringLiteral("set-language"));
break;
} }
Q_ASSERT(pAction); Q_ASSERT(pAction);
......
...@@ -36,7 +36,6 @@ enum ParleyAction { ...@@ -36,7 +36,6 @@ enum ParleyAction {
EnterEditMode, EnterEditMode,
ToggleSearchBar, ToggleSearchBar,
SearchVocabulary, SearchVocabulary,
ShowScriptManager
}; };
QAction *create(ParleyAction id, const QObject *recvr, const char *slot, KActionCollection *parent); QAction *create(ParleyAction id, const QObject *recvr, const char *slot, KActionCollection *parent);
......
Supports Markdown
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