浏览代码

Minor compilation warnings (unused variable, not a moc)

ctkExampleDerivedWorkflowWidgetStep was processed by the moc generator but
was not defined as a Q_OBJECT
ctkDICOMQueryResultsTabWidget::disableCloseOnTab is not using the parameter
"index"
Julien Finet 14 年之前
父节点
当前提交
e2f558f56e

+ 1 - 0
Libs/DICOM/Widgets/ctkDICOMQueryResultsTabWidget.cpp

@@ -23,6 +23,7 @@ ctkDICOMQueryResultsTabWidget::~ctkDICOMQueryResultsTabWidget()
 //----------------------------------------------------------------------------
 void ctkDICOMQueryResultsTabWidget::disableCloseOnTab(int index)
 {
+  Q_UNUSED(index);
   this->tabBar()->setTabButton(0, QTabBar::RightSide, 0);
   this->tabBar()->setTabButton(0, QTabBar::LeftSide, 0);
 }

+ 1 - 1
Libs/Widgets/Testing/Cpp/ctkExampleDerivedWorkflowWidgetStep.h

@@ -39,7 +39,7 @@ class QLineEdit;
 
 class ctkExampleDerivedWorkflowWidgetStep : public ctkWorkflowWidgetStep
 {
-
+  Q_OBJECT
 public:
   typedef ctkWorkflowWidgetStep Superclass;
   explicit ctkExampleDerivedWorkflowWidgetStep(ctkWorkflow* newWorkflow, const QString& newId);