move the runnermodel in core
the old plugin is still there for compatibility, however is discouraged to be used
This commit is contained in:
parent
d58adb9b8d
commit
95e5431610
@ -7,6 +7,7 @@ set(corebindings_SRCS
|
||||
theme.cpp
|
||||
datamodel.cpp
|
||||
datasource.cpp
|
||||
runnermodel.cpp
|
||||
svgitem.cpp
|
||||
framesvgitem.cpp
|
||||
dialog.cpp
|
||||
|
@ -16,3 +16,15 @@ target_link_libraries(sortfiltermodeltest
|
||||
${QT_QTGUI_LIBRARY}
|
||||
${QT_QTTEST_LIBRARY}
|
||||
)
|
||||
|
||||
set(runnermodeltest_SRCS
|
||||
main.cpp
|
||||
dynamictreemodel.cpp
|
||||
modeltest.cpp
|
||||
../runnermodel.cpp
|
||||
)
|
||||
|
||||
qt4_automoc(${runnermodeltest_SRCS})
|
||||
#kde4_add_library(datamodelsplugin SHARED ${datamodels_SRCS})
|
||||
kde4_add_executable(runnermodeltest ${runnermodeltest_SRCS})
|
||||
target_link_libraries(runnermodeltest ${QT_QTTEST_LIBRARY} ${KDE4_PLASMA_LIBS})
|
||||
|
@ -1,7 +1,7 @@
|
||||
project(runnermodel)
|
||||
|
||||
set(runnermodel_SRCS
|
||||
runnermodel.cpp
|
||||
../core/runnermodel.cpp
|
||||
runnermodelplugin.cpp
|
||||
)
|
||||
|
||||
@ -17,4 +17,3 @@ target_link_libraries(runnermodelplugin
|
||||
install(TARGETS runnermodelplugin DESTINATION ${IMPORTS_INSTALL_DIR}/org/kde/runnermodel)
|
||||
install(FILES qmldir DESTINATION ${IMPORTS_INSTALL_DIR}/org/kde/runnermodel)
|
||||
|
||||
#add_subdirectory(test)
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
#include <Plasma/QueryMatch>
|
||||
|
||||
#include "runnermodel.h"
|
||||
#include "../core/runnermodel.h"
|
||||
|
||||
void RunnerModelPlugin::registerTypes(const char *uri)
|
||||
{
|
||||
|
@ -1,12 +0,0 @@
|
||||
set(runnermodeltest_SRCS
|
||||
main.cpp
|
||||
dynamictreemodel.cpp
|
||||
modeltest.cpp
|
||||
../runnermodel.cpp
|
||||
)
|
||||
|
||||
qt4_automoc(${runnermodeltest_SRCS})
|
||||
#kde4_add_library(datamodelsplugin SHARED ${datamodels_SRCS})
|
||||
kde4_add_executable(runnermodeltest ${runnermodeltest_SRCS})
|
||||
target_link_libraries(runnermodeltest ${QT_QTTEST_LIBRARY} ${KDE4_PLASMA_LIBS})
|
||||
|
@ -1,6 +1,6 @@
|
||||
INCLUDE_DIRECTORIES(.. .)
|
||||
|
||||
kde4_add_unit_test(fullmodelaccesstest columnproxymodeltest.cpp ../columnproxymodel.cpp ../../krunnermodel/test/modeltest.cpp)
|
||||
kde4_add_unit_test(fullmodelaccesstest columnproxymodeltest.cpp ../columnproxymodel.cpp ../../core/tests/modeltest.cpp)
|
||||
target_link_libraries(fullmodelaccesstest
|
||||
${QT_QTCORE_LIBRARY}
|
||||
${QT_QTGUI_LIBRARY}
|
||||
|
@ -18,7 +18,7 @@
|
||||
*/
|
||||
#include <../tests/columnproxymodeltest.h>
|
||||
#include <columnproxymodel.h>
|
||||
#include <../../krunnermodel/test/modeltest.h>
|
||||
#include <../../core/tests/modeltest.h>
|
||||
|
||||
#include <qtest_kde.h>
|
||||
#include <QStandardItemModel>
|
||||
|
Loading…
Reference in New Issue
Block a user