Browse Source

Removed unused XNAT files and simplified QtScript dependency.

Sascha Zelzer 12 years ago
parent
commit
9b1467f451
3 changed files with 1 additions and 81 deletions
  1. 1 1
      Libs/XNAT/Core/CMakeLists.txt
  2. 0 39
      Libs/XNAT/Core/ctkActivator.cpp
  3. 0 41
      Libs/XNAT/Core/ctkActivator_p.h

+ 1 - 1
Libs/XNAT/Core/CMakeLists.txt

@@ -49,7 +49,7 @@ set(KIT_MOC_SRCS
 set(KIT_resources
 )
 
-find_package(Qt4 COMPONENTS QtScript REQUIRED)
+set(QT_USE_QTSCRIPT 1)
 
 # Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
 # The following macro will read the target libraries from the file 'target_libraries.cmake'

+ 0 - 39
Libs/XNAT/Core/ctkActivator.cpp

@@ -1,39 +0,0 @@
-/*=============================================================================
-
-  Plugin: org.commontk.xnat
-
-  Copyright (c) German Cancer Research Center,
-    Division of Medical and Biological Informatics
-
-  Licensed under the Apache License, Version 2.0 (the "License");
-  you may not use this file except in compliance with the License.
-  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
-=============================================================================*/
-
-
-#include "ctkActivator_p.h"
-
-#include <QtPlugin>
-
-void ctkActivator::start(ctkPluginContext* context)
-{
-  Q_UNUSED(context)
-}
-
-void ctkActivator::stop(ctkPluginContext* context)
-{
-  Q_UNUSED(context)
-}
-
-Q_EXPORT_PLUGIN2(org_commontk_xnat, ctkActivator)
-
-

+ 0 - 41
Libs/XNAT/Core/ctkActivator_p.h

@@ -1,41 +0,0 @@
-/*=============================================================================
-
-  Plugin: org.commontk.xnat
-
-  Copyright (c) German Cancer Research Center,
-    Division of Medical and Biological Informatics
-
-  Licensed under the Apache License, Version 2.0 (the "License");
-  you may not use this file except in compliance with the License.
-  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
-=============================================================================*/
-
-
-#ifndef CTKACTIVATOR_P_H
-#define CTKACTIVATOR_P_H
-
-#include <ctkPluginActivator.h>
-
-class ctkActivator :
-  public QObject, public ctkPluginActivator
-{
-  Q_OBJECT
-  Q_INTERFACES(ctkPluginActivator)
-
-public:
-
-  void start(ctkPluginContext* context);
-  void stop(ctkPluginContext* context);
-
-};
-
-#endif // CTKACTIVATOR_P_H