Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
Parley
Commits
e5c9bde8
Commit
e5c9bde8
authored
Sep 23, 2021
by
Andreas Cord-Landwehr
Browse files
Remove obsolete actions
parent
ca4c3cbe
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/editor/editor.cpp
View file @
e5c9bde8
...
...
@@ -371,7 +371,6 @@ void EditorWindow::initActions()
ParleyActions
::
create
(
ParleyActions
::
ConfigurePractice
,
m_mainWindow
,
SLOT
(
configurePractice
()),
actionCollection
());
ParleyActions
::
create
(
ParleyActions
::
ToggleSearchBar
,
this
,
SLOT
(
slotConfigShowSearch
()),
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
());
new
EditorWindowAdaptor
(
this
);
...
...
src/editor/editor.h
View file @
e5c9bde8
...
...
@@ -13,7 +13,6 @@
#include
<KXmlGuiWindow>
class
QLineEdit
;
class
ScriptManager
;
///@brief contains objects for the editor main window
...
...
@@ -136,7 +135,6 @@ private:
QList
<
bool
>
m_dockWidgetVisibility
;
friend
class
::
ParleyDocument
;
friend
class
::
ScriptManager
;
};
}
...
...
src/parleyactions.cpp
View file @
e5c9bde8
...
...
@@ -228,15 +228,6 @@ QAction *ParleyActions::create(ParleyAction id, const QObject *recvr, const char
pAction
=
KStandardAction
::
find
(
recvr
,
slot
,
parent
);
parent
->
setDefaultShortcut
(
pAction
,
QKeySequence
::
Find
);
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
);
...
...
src/parleyactions.h
View file @
e5c9bde8
...
...
@@ -36,7 +36,6 @@ enum ParleyAction {
EnterEditMode
,
ToggleSearchBar
,
SearchVocabulary
,
ShowScriptManager
};
QAction
*
create
(
ParleyAction
id
,
const
QObject
*
recvr
,
const
char
*
slot
,
KActionCollection
*
parent
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment