Преглед изворни кода

Added helper method categoryDotTitle in ctkCmdLineModuleDescription

MattClarkson пре 13 година
родитељ
комит
f5cc110b11

+ 8 - 0
Libs/CommandLineModules/Core/ctkCmdLineModuleDescription.cpp

@@ -65,6 +65,14 @@ QString ctkCmdLineModuleDescription::title() const
   return d->Title;
 }
 
+
+//----------------------------------------------------------------------------
+QString ctkCmdLineModuleDescription::categoryDotTitle() const
+{
+  return this->category() + "." + this->title();
+}
+
+
 //----------------------------------------------------------------------------
 QString ctkCmdLineModuleDescription::description() const
 {

+ 5 - 0
Libs/CommandLineModules/Core/ctkCmdLineModuleDescription.h

@@ -66,6 +66,11 @@ public:
   QString title() const;
 
   /**
+   * @brief Helper method that returns the category followed by a dot followed by the title.
+   */
+  QString categoryDotTitle() const;
+
+  /**
    * @brief Returns the title, derived from the \code <description> \endcode tag.
    */
   QString description() const;