From 4380c5c3b2ee4efe0dd007de6c7f88ae4bc0ade9 Mon Sep 17 00:00:00 2001 From: Hans-Christian Ebke Date: Fri, 27 Jul 2012 08:35:49 +0000 Subject: [PATCH] Core: Added a fancy online documentation for the new getToolbox scripting method. git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15118 383ad7c9-94d9-4d36-a494-682f7c89f535 --- Core/Core.cc | 4 ++++ Core/Core.hh | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Core/Core.cc b/Core/Core.cc index dfc3d63b..776ebf46 100644 --- a/Core/Core.cc +++ b/Core/Core.cc @@ -1568,6 +1568,10 @@ void Core::setDescriptions(){ emit setSlotDescription("setToolBoxSide(QString)", tr("Determine whether the toolboxes should be displayed on the right or on the left side."), QStringList(tr("side")), QStringList(tr("The desired side of the toolboxes (either 'left' or 'right')"))); + + emit setSlotDescription("getToolbox(QString,QString)", tr("Returns a pointer to the requested toolbox widget if it was found, nullptr, otherwise."), + tr("Plugin Name\rToolbox Name").split("\r"), + tr("The plugin which the requested toolbox belongs to.\rThe name of the requested toolbox.").split("\r")); } void Core::deleteObject( int _id ){ diff --git a/Core/Core.hh b/Core/Core.hh index 18d38fb2..9748b8f2 100644 --- a/Core/Core.hh +++ b/Core/Core.hh @@ -951,9 +951,9 @@ private slots: /** * Get a toolbox. * - * @param _pluginName The plugin which the requested toolbox belongs tp. + * @param _pluginName The plugin which the requested toolbox belongs to. * @param _toolboxName The name of the requested toolbox. - * @return A pointer to the requested widget if it was found, nullptr, otherwise. + * @return A pointer to the requested toolbox widget if it was found, nullptr, otherwise. */ QWidget *getToolbox(QString _pluginName, QString _toolboxName); -- GitLab