Move QAbstractItemModel into a separate directory.
authorStephen Kelly <stephen.kelly@kdab.com>
Sat, 10 Dec 2011 01:22:06 +0000 (02:22 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 13 Dec 2011 01:23:42 +0000 (02:23 +0100)
Change-Id: Ib505520dd5b52743634befbf3f148d7f8c21ec44
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 files changed:
src/corelib/corelib.pro
src/corelib/itemmodels/itemmodels.pri [new file with mode: 0644]
src/corelib/itemmodels/qabstractitemmodel.cpp [moved from src/corelib/kernel/qabstractitemmodel.cpp with 100% similarity]
src/corelib/itemmodels/qabstractitemmodel.h [moved from src/corelib/kernel/qabstractitemmodel.h with 100% similarity]
src/corelib/itemmodels/qabstractitemmodel_p.h [moved from src/corelib/kernel/qabstractitemmodel_p.h with 100% similarity]
src/corelib/kernel/kernel.pri
tests/auto/corelib/corelib.pro
tests/auto/corelib/itemmodels/itemmodels.pro [new file with mode: 0644]
tests/auto/corelib/itemmodels/qabstractitemmodel/.gitignore [moved from tests/auto/corelib/kernel/qabstractitemmodel/.gitignore with 100% similarity]
tests/auto/corelib/itemmodels/qabstractitemmodel/qabstractitemmodel.pro [moved from tests/auto/corelib/kernel/qabstractitemmodel/qabstractitemmodel.pro with 100% similarity]
tests/auto/corelib/itemmodels/qabstractitemmodel/tst_qabstractitemmodel.cpp [moved from tests/auto/corelib/kernel/qabstractitemmodel/tst_qabstractitemmodel.cpp with 100% similarity]
tests/auto/corelib/kernel/kernel.pro

index edb5ecb..17c15d4 100644 (file)
@@ -23,6 +23,7 @@ include(global/global.pri)
 include(thread/thread.pri)
 include(tools/tools.pri)
 include(io/io.pri)
+include(itemmodels/itemmodels.pri)
 include(plugin/plugin.pri)
 include(kernel/kernel.pri)
 include(codecs/codecs.pri)
diff --git a/src/corelib/itemmodels/itemmodels.pri b/src/corelib/itemmodels/itemmodels.pri
new file mode 100644 (file)
index 0000000..618c748
--- /dev/null
@@ -0,0 +1,8 @@
+# Qt itemmodels core module
+
+HEADERS += \
+    itemmodels/qabstractitemmodel.h \
+    itemmodels/qabstractitemmodel_p.h
+
+SOURCES += \
+    itemmodels/qabstractitemmodel.cpp
index 8b69d77..b67d60b 100644 (file)
@@ -2,8 +2,6 @@
 
 HEADERS += \
         kernel/qabstracteventdispatcher.h \
-        kernel/qabstractitemmodel.h \
-        kernel/qabstractitemmodel_p.h \
         kernel/qbasictimer.h \
         kernel/qeventloop.h\
         kernel/qpointer.h \
@@ -42,7 +40,6 @@ HEADERS += \
 
 SOURCES += \
         kernel/qabstracteventdispatcher.cpp \
-        kernel/qabstractitemmodel.cpp \
         kernel/qbasictimer.cpp \
         kernel/qeventloop.cpp \
         kernel/qcoreapplication.cpp \
index 5022899..84eb3f2 100644 (file)
@@ -5,6 +5,7 @@ SUBDIRS=\
    concurrent \
    global \
    io \
+   itemmodels \
    kernel \
    plugin \
    statemachine \
diff --git a/tests/auto/corelib/itemmodels/itemmodels.pro b/tests/auto/corelib/itemmodels/itemmodels.pro
new file mode 100644 (file)
index 0000000..c11a1f1
--- /dev/null
@@ -0,0 +1,5 @@
+TEMPLATE=subdirs
+
+SUBDIRS = qabstractitemmodel
+
+mac: qabstractitemmodel.CONFIG = no_check_target # QTBUG-22748
index 90a5c24..77762db 100644 (file)
@@ -1,6 +1,5 @@
 TEMPLATE=subdirs
 SUBDIRS=\
-    qabstractitemmodel \
     qcoreapplication \
     qeventloop \
     qitemmodel \
@@ -24,4 +23,3 @@ SUBDIRS=\
 # This test is only applicable on Windows
 !win32*:SUBDIRS -= qwineventnotifier
 
-mac: qabstractitemmodel.CONFIG = no_check_target # QTBUG-22748