Selaa lähdekoodia

Removed currentObject method, as it exposes underlying widgets

MattClarkson 12 vuotta sitten
vanhempi
commit
a9e18a9a5e

+ 0 - 5
Libs/CommandLineModules/QtGui/ctkCmdLineModuleObjectTreeWalker.cpp

@@ -122,11 +122,6 @@ QString ctkCmdLineModuleObjectTreeWalker::longFlag() const
   return v.isValid() ? v.toString() : QString();
 }
 
-QObject* ctkCmdLineModuleObjectTreeWalker::currentObject() const
-{
-  return CurrentObject;
-}
-
 int ctkCmdLineModuleObjectTreeWalker::index() const
 {
   QVariant v = property("index");

+ 5 - 1
Libs/CommandLineModules/QtGui/ctkCmdLineModuleObjectTreeWalker_p.h

@@ -27,6 +27,11 @@
 class QObject;
 class QVariant;
 
+/**
+ * \class ctkCmdLineModuleObjectTreeWalker
+ *
+ * Note: Deliberately not exported.
+ */
 class ctkCmdLineModuleObjectTreeWalker
 {
 
@@ -53,7 +58,6 @@ public:
   QString name() const;
   QString label() const;
   QVariant value() const;
-  QObject* currentObject() const;
 
   void setValue(const QVariant& value);