Commit f8fd5df5 authored by Sebastian Sauer's avatar Sebastian Sauer
Browse files

Disabled for now.

svn path=/trunk/koffice/; revision=600523
parent 80e31248
......@@ -39,6 +39,7 @@ ScriptingDocker::ScriptingDocker(QWidget* parent, Kross::GUIClient* guiclient)
: QWidget(parent)
, m_guiclient(guiclient)
{
#if 0
QBoxLayout* layout = new QVBoxLayout(this);
layout->setMargin(0);
setLayout(layout);
......@@ -57,6 +58,7 @@ 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()
......@@ -65,20 +67,24 @@ 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"
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