Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tusooa Zhu
Krita
Commits
e5f065c8
Commit
e5f065c8
authored
Oct 30, 2006
by
Sebastian Sauer
Browse files
bah, enable again. I'll solve it another way ;) SVN_SILENT
svn path=/trunk/koffice/; revision=600541
parent
75aacbd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
krita/plugins/viewplugins/scripting/scriptingdocker.cpp
View file @
e5f065c8
...
...
@@ -39,7 +39,6 @@ ScriptingDocker::ScriptingDocker(QWidget* parent, Kross::GUIClient* guiclient)
:
QWidget
(
parent
)
,
m_guiclient
(
guiclient
)
{
#if 0
QBoxLayout
*
layout
=
new
QVBoxLayout
(
this
);
layout
->
setMargin
(
0
);
setLayout
(
layout
);
...
...
@@ -58,7 +57,6 @@ ScriptingDocker::ScriptingDocker(QWidget* parent, Kross::GUIClient* guiclient)
tb
->
addAction
(
KIcon
(
"player_stop"
),
i18n
(
"Stop"
),
this
,
SLOT
(
stopScript
())
);
connect
(
m_view
,
SIGNAL
(
doubleClicked
(
const
QModelIndex
&
)),
SLOT
(
runScript
()));
#endif
}
ScriptingDocker
::~
ScriptingDocker
()
...
...
@@ -67,24 +65,20 @@ ScriptingDocker::~ScriptingDocker()
void
ScriptingDocker
::
runScript
()
{
#if 0
QModelIndex
index
=
m_model
->
mapToSource
(
m_view
->
currentIndex
()
);
if
(
index
.
isValid
()
)
{
Kross
::
Action
*
action
=
static_cast
<
Kross
::
Action
*
>
(
index
.
internalPointer
()
);
action
->
trigger
();
// execute the script
}
#endif
}
void
ScriptingDocker
::
stopScript
()
{
#if 0
QModelIndex
index
=
m_model
->
mapToSource
(
m_view
->
currentIndex
()
);
if
(
index
.
isValid
()
)
{
Kross
::
Action
*
action
=
static_cast
<
Kross
::
Action
*
>
(
index
.
internalPointer
()
);
action
->
finalize
();
}
#endif
}
#include
"scriptingdocker.moc"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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