Commit b6fba524 authored by Jan Möbius's avatar Jan Möbius

Scripting function to clear the script widget

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12430 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b066ca9e
......@@ -519,5 +519,10 @@ void ScriptingPlugin::showScriptInEditor(QString _code)
scriptWidget_->currentScript->setText (_code);
}
void ScriptingPlugin::clearEditor() {
std::cerr<< "Slotclear editor " << std::endl;
scriptWidget_->currentScript->clear();
}
Q_EXPORT_PLUGIN2( skriptingplugin , ScriptingPlugin );
......@@ -132,6 +132,11 @@ public slots:
*/
void slotLoadScript( QString _filename );
/** \brief Clear the editor window
* Clears the script editor window
*/
void clearEditor();
/** @} */
//===========================================================================
......
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