forked from qt-creator/qt-creator
Lua: Add "printToOutputPane" plugin option
Allows a plugin to automatically forward the "print" command to the output pane instead of only to qDebug() Change-Id: I10fb8063bc1713eaaf77368ea7f760270df190b3 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -138,4 +138,9 @@ ExtensionSystem::IPlugin::ShutdownFlag LuaPluginSpec::stop()
|
||||
|
||||
void LuaPluginSpec::kill() {}
|
||||
|
||||
bool LuaPluginSpec::printToOutputPane() const
|
||||
{
|
||||
return d->pluginTable.get_or("printToOutputPane", false);
|
||||
}
|
||||
|
||||
} // namespace Lua
|
||||
|
||||
Reference in New Issue
Block a user