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

bah, enable again. I'll solve it another way ;) SVN_SILENT

svn path=/trunk/koffice/; revision=600541
parent 75aacbd1
...@@ -39,7 +39,6 @@ ScriptingDocker::ScriptingDocker(QWidget* parent, Kross::GUIClient* guiclient) ...@@ -39,7 +39,6 @@ ScriptingDocker::ScriptingDocker(QWidget* parent, Kross::GUIClient* guiclient)
: QWidget(parent) : QWidget(parent)
, m_guiclient(guiclient) , m_guiclient(guiclient)
{ {
#if 0
QBoxLayout* layout = new QVBoxLayout(this); QBoxLayout* layout = new QVBoxLayout(this);
layout->setMargin(0); layout->setMargin(0);
setLayout(layout); setLayout(layout);
...@@ -58,7 +57,6 @@ ScriptingDocker::ScriptingDocker(QWidget* parent, Kross::GUIClient* guiclient) ...@@ -58,7 +57,6 @@ ScriptingDocker::ScriptingDocker(QWidget* parent, Kross::GUIClient* guiclient)
tb->addAction(KIcon("player_stop"), i18n("Stop"), this, SLOT(stopScript()) ); tb->addAction(KIcon("player_stop"), i18n("Stop"), this, SLOT(stopScript()) );
connect(m_view, SIGNAL(doubleClicked(const QModelIndex&)), SLOT(runScript())); connect(m_view, SIGNAL(doubleClicked(const QModelIndex&)), SLOT(runScript()));
#endif
} }
ScriptingDocker::~ScriptingDocker() ScriptingDocker::~ScriptingDocker()
...@@ -67,24 +65,20 @@ ScriptingDocker::~ScriptingDocker() ...@@ -67,24 +65,20 @@ ScriptingDocker::~ScriptingDocker()
void ScriptingDocker::runScript() void ScriptingDocker::runScript()
{ {
#if 0
QModelIndex index = m_model->mapToSource( m_view->currentIndex() ); QModelIndex index = m_model->mapToSource( m_view->currentIndex() );
if( index.isValid() ) { if( index.isValid() ) {
Kross::Action* action = static_cast< Kross::Action* >( index.internalPointer() ); Kross::Action* action = static_cast< Kross::Action* >( index.internalPointer() );
action->trigger(); // execute the script action->trigger(); // execute the script
} }
#endif
} }
void ScriptingDocker::stopScript() void ScriptingDocker::stopScript()
{ {
#if 0
QModelIndex index = m_model->mapToSource( m_view->currentIndex() ); QModelIndex index = m_model->mapToSource( m_view->currentIndex() );
if( index.isValid() ) { if( index.isValid() ) {
Kross::Action* action = static_cast< Kross::Action* >( index.internalPointer() ); Kross::Action* action = static_cast< Kross::Action* >( index.internalPointer() );
action->finalize(); action->finalize();
} }
#endif
} }
#include "scriptingdocker.moc" #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