From e7f280f7451b3429fc1e1407225a6b9d27db1888 Mon Sep 17 00:00:00 2001 From: renatofilho Date: Fri, 15 Oct 2010 18:18:27 -0300 Subject: Removed QtDesigner dependency from QtUiTools module. Reviewer: Hugo Parente Lima Luciano Wolf --- CMakeLists.txt | 2 +- plugins/CMakeLists.txt | 2 +- tests/QtUiTools/bug_392.py | 11 +-------- tests/QtUiTools/customwidget.ui | 51 ----------------------------------------- 4 files changed, 3 insertions(+), 63 deletions(-) delete mode 100644 tests/QtUiTools/customwidget.ui diff --git a/CMakeLists.txt b/CMakeLists.txt index 71aee4f..4ad006e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -183,7 +183,7 @@ set(GENERATOR_EXTRA_FLAGS --generatorSet=shiboken --enable-parent-ctor-heuristic enable_testing() add_subdirectory(libpyside) -if(QT_QTDESIGNER_FOUND) +if(QT_QTUITOOLS_FOUND) add_subdirectory(plugins) endif() # project directories diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 792d055..e7a8fd1 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -19,7 +19,7 @@ add_library(uiplugin STATIC ${ui_plugin_src} ${MOC_FILES}) add_definitions(-fPIC) add_definitions(-DQT_STATICPLUGIN) target_link_libraries(uiplugin - ${QT_QTDESIGNER_LIBRARY} + ${QT_QTUITOOLS_LIBRARY} ${SHIBOKEN_LIBRARY} ${PYTHON_LIBRARY}) if (CMAKE_BUILD_TYPE STREQUAL "Debug") diff --git a/tests/QtUiTools/bug_392.py b/tests/QtUiTools/bug_392.py index 9cc8b21..69817ff 100644 --- a/tests/QtUiTools/bug_392.py +++ b/tests/QtUiTools/bug_392.py @@ -2,7 +2,7 @@ import unittest import os from helper import UsesQApplication -from PySide import QtGui, QtDeclarative +from PySide import QtGui from PySide.QtUiTools import QUiLoader class MyWidget(QtGui.QComboBox): @@ -21,15 +21,6 @@ class BugTest(UsesQApplication): result = loader.load(filePath, w) self.assert_(isinstance(result.statusbar.actionFoo, QtGui.QAction)) - def testCustomWidgets(self): - w = QtGui.QWidget() - loader = QUiLoader() - - filePath = os.path.join(os.path.dirname(__file__), 'customwidget.ui') - result = loader.load(filePath, w) - self.assert_(isinstance(result.declarativeView, QtDeclarative.QDeclarativeView)) - self.assert_(isinstance(result.worldTimeClock, QtGui.QWidget)) - def testPythonCustomWidgets(self): w = QtGui.QWidget() loader = QUiLoader() diff --git a/tests/QtUiTools/customwidget.ui b/tests/QtUiTools/customwidget.ui deleted file mode 100644 index 181ee60..0000000 --- a/tests/QtUiTools/customwidget.ui +++ /dev/null @@ -1,51 +0,0 @@ - - - qwidget - - - - 0 - 0 - 303 - 350 - - - - - - - - - 0 - 150 - 300 - 200 - - - - - - - 190 - 20 - 100 - 100 - - - - - - - QDeclarativeView - QGraphicsView -
QtDeclarative/QDeclarativeView
-
- - WorldTimeClock - QWidget -
worldtimeclock.h
-
-
- - -
-- cgit