generic: use CMake moc instead of automoc4 by default

for compatibilty reasons automoc4 support is not removed but it
shall be in the future. automoc4 has not been maintained for a
while (last commit is from 2011) and the stable release is from
2009.

CMake version >= 2.8.6 provides the functionality for mocking so
I see no reason to not make use of it.
This commit is contained in:
Ivailo Monev 2015-02-27 07:40:26 +00:00
parent 842ca66a63
commit 82fc15f54b
763 changed files with 823 additions and 852 deletions

View file

@ -195,7 +195,6 @@
# KDE4_ADD_EXECUTABLE (name [NOGUI] [TEST] [RUN_UNINSTALLED] file1 ... fileN) # KDE4_ADD_EXECUTABLE (name [NOGUI] [TEST] [RUN_UNINSTALLED] file1 ... fileN)
# Equivalent to ADD_EXECUTABLE(), but additionally adds some more features: # Equivalent to ADD_EXECUTABLE(), but additionally adds some more features:
# -support for KDE4_ENABLE_FINAL # -support for KDE4_ENABLE_FINAL
# -support for automoc
# -automatic RPATH handling # -automatic RPATH handling
# If the executable doesn't have a GUI, use the option NOGUI. By default on OS X # If the executable doesn't have a GUI, use the option NOGUI. By default on OS X
# application bundles are created, with the NOGUI option no bundles but simple executables # application bundles are created, with the NOGUI option no bundles but simple executables

View file

@ -3,6 +3,10 @@ if (EXISTS ${CMAKE_SOURCE_DIR}/CTestConfig.cmake)
include(CTest) include(CTest)
endif (EXISTS ${CMAKE_SOURCE_DIR}/CTestConfig.cmake) endif (EXISTS ${CMAKE_SOURCE_DIR}/CTestConfig.cmake)
# let cmake handle mocking
# since cmake 2.8.6
set(CMAKE_AUTOMOC ON)
# Always include srcdir and builddir in include path # Always include srcdir and builddir in include path
# This saves typing ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} in about every subdir # This saves typing ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} in about every subdir
# since cmake 2.4.0 # since cmake 2.4.0

View file

@ -527,11 +527,6 @@ macro (KDE4_ADD_PLUGIN _target_NAME )
set(_SRCS ${_args}) set(_SRCS ${_args})
if (NOT CMAKE_AUTOMOC)
_automoc4_kde4_pre_target_handling(${_target_NAME} _SRCS)
endif()
if("${_add_lib_param}" STREQUAL "STATIC") if("${_add_lib_param}" STREQUAL "STATIC")
add_definitions(-DQT_STATICPLUGIN) add_definitions(-DQT_STATICPLUGIN)
endif("${_add_lib_param}" STREQUAL "STATIC") endif("${_add_lib_param}" STREQUAL "STATIC")
@ -543,10 +538,6 @@ macro (KDE4_ADD_PLUGIN _target_NAME )
add_library(${_target_NAME} ${_add_lib_param} ${_SRCS}) add_library(${_target_NAME} ${_add_lib_param} ${_SRCS})
endif (KDE4_ENABLE_FINAL) endif (KDE4_ENABLE_FINAL)
if (NOT CMAKE_AUTOMOC)
_automoc4_kde4_post_target_handling(${_target_NAME})
endif()
if (NOT _with_pre) if (NOT _with_pre)
set_target_properties(${_target_NAME} PROPERTIES PREFIX "") set_target_properties(${_target_NAME} PROPERTIES PREFIX "")
endif (NOT _with_pre) endif (NOT _with_pre)
@ -634,9 +625,6 @@ macro (KDE4_ADD_KDEINIT_EXECUTABLE _target_NAME )
# keep the linking logic from the CMakeLists.txt on UNIX working (under UNIX all necessary libs are linked against the kdeinit # keep the linking logic from the CMakeLists.txt on UNIX working (under UNIX all necessary libs are linked against the kdeinit
# library instead against the executable, under windows we want to have everything in the executable, but for compatibility we have to # library instead against the executable, under windows we want to have everything in the executable, but for compatibility we have to
# keep the library there- # keep the library there-
if (NOT CMAKE_AUTOMOC)
_automoc4_kde4_pre_target_handling(kdeinit_${_target_NAME} _SRCS)
endif()
if (KDE4_ENABLE_FINAL) if (KDE4_ENABLE_FINAL)
kde4_create_final_files(${CMAKE_CURRENT_BINARY_DIR}/kdeinit_${_target_NAME}_final_cpp.cpp _separate_files ${_SRCS}) kde4_create_final_files(${CMAKE_CURRENT_BINARY_DIR}/kdeinit_${_target_NAME}_final_cpp.cpp _separate_files ${_SRCS})
@ -645,10 +633,6 @@ macro (KDE4_ADD_KDEINIT_EXECUTABLE _target_NAME )
add_library(kdeinit_${_target_NAME} SHARED ${_SRCS}) add_library(kdeinit_${_target_NAME} SHARED ${_SRCS})
endif (KDE4_ENABLE_FINAL) endif (KDE4_ENABLE_FINAL)
if (NOT CMAKE_AUTOMOC)
_automoc4_kde4_post_target_handling(kdeinit_${_target_NAME})
endif()
set_target_properties(kdeinit_${_target_NAME} PROPERTIES OUTPUT_NAME kdeinit4_${_target_NAME}) set_target_properties(kdeinit_${_target_NAME} PROPERTIES OUTPUT_NAME kdeinit4_${_target_NAME})
kde4_add_executable(${_target_NAME} "${_nogui}" ${CMAKE_CURRENT_BINARY_DIR}/${_target_NAME}_dummy.cpp ${_resourcefile}) kde4_add_executable(${_target_NAME} "${_nogui}" ${CMAKE_CURRENT_BINARY_DIR}/${_target_NAME}_dummy.cpp ${_resourcefile})
@ -788,10 +772,6 @@ macro (KDE4_ADD_EXECUTABLE _target_NAME)
set(_add_executable_param ${_add_executable_param} EXCLUDE_FROM_ALL) set(_add_executable_param ${_add_executable_param} EXCLUDE_FROM_ALL)
endif (_test AND NOT KDE4_BUILD_TESTS) endif (_test AND NOT KDE4_BUILD_TESTS)
if (NOT CMAKE_AUTOMOC)
_automoc4_kde4_pre_target_handling(${_target_NAME} _SRCS)
endif()
if (KDE4_ENABLE_FINAL) if (KDE4_ENABLE_FINAL)
kde4_create_final_files(${CMAKE_CURRENT_BINARY_DIR}/${_target_NAME}_final_cpp.cpp _separate_files ${_SRCS}) kde4_create_final_files(${CMAKE_CURRENT_BINARY_DIR}/${_target_NAME}_final_cpp.cpp _separate_files ${_SRCS})
add_executable(${_target_NAME} ${_add_executable_param} ${CMAKE_CURRENT_BINARY_DIR}/${_target_NAME}_final_cpp.cpp ${_separate_files}) add_executable(${_target_NAME} ${_add_executable_param} ${CMAKE_CURRENT_BINARY_DIR}/${_target_NAME}_final_cpp.cpp ${_separate_files})
@ -803,10 +783,6 @@ macro (KDE4_ADD_EXECUTABLE _target_NAME)
_kde4_add_manifest(${_target_NAME}) _kde4_add_manifest(${_target_NAME})
ENDIF(KDE4_ENABLE_UAC_MANIFEST) ENDIF(KDE4_ENABLE_UAC_MANIFEST)
if (NOT CMAKE_AUTOMOC)
_automoc4_kde4_post_target_handling(${_target_NAME})
endif()
if (_test) if (_test)
set_target_properties(${_target_NAME} PROPERTIES COMPILE_FLAGS -DKDESRCDIR="\\"${CMAKE_CURRENT_SOURCE_DIR}/\\"") set_target_properties(${_target_NAME} PROPERTIES COMPILE_FLAGS -DKDESRCDIR="\\"${CMAKE_CURRENT_SOURCE_DIR}/\\"")
endif (_test) endif (_test)
@ -835,10 +811,6 @@ macro (KDE4_ADD_LIBRARY _target_NAME _lib_TYPE)
set(_SRCS ${_first_SRC} ${ARGN}) set(_SRCS ${_first_SRC} ${ARGN})
if (NOT CMAKE_AUTOMOC)
_automoc4_kde4_pre_target_handling(${_target_NAME} _SRCS)
endif()
if (KDE4_ENABLE_FINAL) if (KDE4_ENABLE_FINAL)
kde4_create_final_files(${CMAKE_CURRENT_BINARY_DIR}/${_target_NAME}_final_cpp.cpp _separate_files ${_SRCS}) kde4_create_final_files(${CMAKE_CURRENT_BINARY_DIR}/${_target_NAME}_final_cpp.cpp _separate_files ${_SRCS})
add_library(${_target_NAME} ${_add_lib_param} ${CMAKE_CURRENT_BINARY_DIR}/${_target_NAME}_final_cpp.cpp ${_separate_files}) add_library(${_target_NAME} ${_add_lib_param} ${CMAKE_CURRENT_BINARY_DIR}/${_target_NAME}_final_cpp.cpp ${_separate_files})
@ -846,10 +818,6 @@ macro (KDE4_ADD_LIBRARY _target_NAME _lib_TYPE)
add_library(${_target_NAME} ${_add_lib_param} ${_SRCS}) add_library(${_target_NAME} ${_add_lib_param} ${_SRCS})
endif (KDE4_ENABLE_FINAL) endif (KDE4_ENABLE_FINAL)
if (NOT CMAKE_AUTOMOC)
_automoc4_kde4_post_target_handling(${_target_NAME})
endif()
# for shared libraries a -DMAKE_target_LIB is required # for shared libraries a -DMAKE_target_LIB is required
string(TOUPPER ${_target_NAME} _symbol) string(TOUPPER ${_target_NAME} _symbol)
string(REGEX REPLACE "[^_A-Za-z0-9]" "_" _symbol ${_symbol}) string(REGEX REPLACE "[^_A-Za-z0-9]" "_" _symbol ${_symbol})

View file

@ -105,5 +105,5 @@ bool DomainBrowser::isRunning() const
} }
#include "domainbrowser.moc" #include "moc_domainbrowser.cpp"
#include "avahi-domainbrowser_p.moc" #include "moc_avahi-domainbrowser_p.cpp"

View file

@ -259,5 +259,5 @@ void PublicService::virtual_hook(int, void*)
} }
#include "publicservice.moc" #include "moc_publicservice.cpp"
#include "avahi-publicservice_p.moc" #include "moc_avahi-publicservice_p.cpp"

View file

@ -120,5 +120,5 @@ void RemoteService::virtual_hook(int, void*)
} }
#include "remoteservice.moc" #include "moc_remoteservice.cpp"
#include "avahi-remoteservice_p.moc" #include "moc_avahi-remoteservice_p.cpp"

View file

@ -189,5 +189,5 @@ QString ServiceBrowser::getLocalHostName()
} }
#include "servicebrowser.moc" #include "moc_servicebrowser.cpp"
#include "avahi-servicebrowser_p.moc" #include "moc_avahi-servicebrowser_p.cpp"

View file

@ -98,5 +98,5 @@ bool ServiceTypeBrowser::isRunning() const
} }
#include "servicetypebrowser.moc" #include "moc_servicetypebrowser.cpp"
#include "avahi-servicetypebrowser_p.moc" #include "moc_avahi-servicetypebrowser_p.cpp"

View file

@ -27,4 +27,4 @@ OrgFreedesktopAvahiEntryGroupInterface::~OrgFreedesktopAvahiEntryGroupInterface(
} }
#include "avahi_entrygroup_interface.moc" #include "moc_avahi_entrygroup_interface.cpp"

View file

@ -53,4 +53,4 @@ QString DNSToDomain(const QString& domain)
} }
} }
#include "avahi_server_interface.moc" #include "moc_avahi_server_interface.cpp"

View file

@ -26,4 +26,4 @@ OrgFreedesktopAvahiServiceResolverInterface::~OrgFreedesktopAvahiServiceResolver
} }
#include "avahi_serviceresolver_interface.moc" #include "moc_avahi_serviceresolver_interface.cpp"

View file

@ -45,4 +45,4 @@ bool DomainBrowser::isRunning() const
} }
} }
#include "domainbrowser.moc" #include "moc_domainbrowser.cpp"

View file

@ -95,4 +95,4 @@ void PublicService::virtual_hook(int, void*)
} }
#include "publicservice.moc" #include "moc_publicservice.cpp"

View file

@ -58,4 +58,4 @@ void RemoteService::virtual_hook(int, void*)
} }
#include "remoteservice.moc" #include "moc_remoteservice.cpp"

View file

@ -69,4 +69,4 @@ QString ServiceBrowser::getLocalHostName()
} }
#include "servicebrowser.moc" #include "moc_servicebrowser.cpp"

View file

@ -47,4 +47,4 @@ bool ServiceTypeBrowser::isRunning() const
#endif #endif
} }
#include "servicetypebrowser.moc" #include "moc_servicetypebrowser.cpp"

View file

@ -127,5 +127,5 @@ void domain_callback(DNSServiceRef, DNSServiceFlags flags, uint32_t, DNSServiceE
#include "domainbrowser.moc" #include "moc_domainbrowser.cpp"
#include "mdnsd-domainbrowser_p.moc" #include "moc_mdnsd-domainbrowser_p.cpp"

View file

@ -204,4 +204,4 @@ void PublicService::virtual_hook(int, void*)
} }
#include "publicservice.moc" #include "moc_publicservice.cpp"

View file

@ -151,4 +151,4 @@ void resolve_callback ( DNSServiceRef,
} }
#include "remoteservice.moc" #include "moc_remoteservice.cpp"

View file

@ -82,4 +82,4 @@ QString DNSToDomain(const char* domain)
} }
} }
#include "mdnsd-responder.moc" #include "moc_mdnsd-responder.cpp"

View file

@ -197,5 +197,5 @@ QString ServiceBrowser::getLocalHostName()
} }
#include "servicebrowser.moc" #include "moc_servicebrowser.cpp"
#include "mdnsd-servicebrowser_p.moc" #include "moc_mdnsd-servicebrowser_p.cpp"

View file

@ -76,5 +76,5 @@ void ServiceTypeBrowserPrivate::removeService(DNSSD::RemoteService::Ptr srv)
#include "servicetypebrowser.moc" #include "moc_servicetypebrowser.cpp"
#include "mdnsd-servicetypebrowser_p.moc" #include "moc_mdnsd-servicetypebrowser_p.cpp"

View file

@ -38,4 +38,4 @@ void EngineAccess::setEngine(QScriptValue val)
m_kDeclarative->d->scriptEngine = val.engine(); m_kDeclarative->d->scriptEngine = val.engine();
} }
#include "engineaccess_p.moc" #include "moc_engineaccess_p.cpp"

View file

@ -58,4 +58,4 @@ int main(int argc, char *argv[])
return app.exec(); return app.exec();
} }
#include "testobject_p.moc" #include "moc_testobject_p.cpp"

View file

@ -651,4 +651,4 @@ QString KIMProxy::preferredApp()
return preferredApp; return preferredApp;
} }
#include "kimproxy.moc" #include "moc_kimproxy.cpp"

View file

@ -150,4 +150,4 @@ void KFileAudioPreview::toggleAuto( bool on )
d->player->stop(); d->player->stop();
} }
#include "kfileaudiopreview.moc" #include "moc_kfileaudiopreview.cpp"

View file

@ -140,5 +140,5 @@ void MediaControlsPrivate::_k_mediaDestroyed()
} // namespace Phonon } // namespace Phonon
#include "mediacontrols.moc" #include "moc_mediacontrols.cpp"
// vim: sw=4 ts=4 // vim: sw=4 ts=4

View file

@ -128,4 +128,4 @@ void KMediaPlayerAdaptor::stop()
} }
#include "kmediaplayeradaptor_p.moc" #include "moc_kmediaplayeradaptor_p.cpp"

View file

@ -74,4 +74,4 @@ int KMediaPlayer::Player::state(void) const
return (int)currentState; return (int)currentState;
} }
#include "player.moc" #include "moc_player.cpp"

View file

@ -86,4 +86,4 @@ QWidget* KMediaPlayer::View::videoWidget()
return d->videoWidget; return d->videoWidget;
} }
#include "view.moc" #include "moc_view.cpp"

View file

@ -121,4 +121,4 @@ void CodeCompletionModel2::executeCompletionItem2(Document* document, const Rang
document->replaceText(word, data(index.sibling(index.row(), Name)).toString()); document->replaceText(word, data(index.sibling(index.row(), Name)).toString());
} }
#include "codecompletionmodel.moc" #include "moc_codecompletionmodel.cpp"

View file

@ -76,6 +76,6 @@ void SmartCursorWatcher::deleted( SmartCursor * )
{ {
} }
#include "smartcursornotifier.moc" #include "moc_smartcursornotifier.cpp"
// kate: space-indent on; indent-width 2; replace-tabs on; // kate: space-indent on; indent-width 2; replace-tabs on;

View file

@ -19,10 +19,10 @@
*/ */
#include "document.h" #include "document.h"
#include "document.moc" #include "moc_document.cpp"
#include "documentadaptor_p.h" #include "documentadaptor_p.h"
#include "documentadaptor_p.moc" #include "moc_documentadaptor_p.cpp"
using namespace KTextEditor; using namespace KTextEditor;

View file

@ -22,21 +22,21 @@
#include "cursor.h" #include "cursor.h"
#include "configpage.h" #include "configpage.h"
#include "configpage.moc" #include "moc_configpage.cpp"
#include "factory.h" #include "factory.h"
#include "factory.moc" #include "moc_factory.cpp"
#include "editor.h" #include "editor.h"
#include "editor.moc" #include "moc_editor.cpp"
#include "document.h" #include "document.h"
#include "view.h" #include "view.h"
#include "view.moc" #include "moc_view.cpp"
#include "plugin.h" #include "plugin.h"
#include "plugin.moc" #include "moc_plugin.cpp"
#include "recoveryinterface.h" #include "recoveryinterface.h"
#include "commandinterface.h" #include "commandinterface.h"
@ -50,10 +50,10 @@
#include "containerinterface.h" #include "containerinterface.h"
#include "annotationinterface.h" #include "annotationinterface.h"
#include "annotationinterface.moc" #include "moc_annotationinterface.cpp"
#include "loadsavefiltercheckplugin.h" #include "loadsavefiltercheckplugin.h"
#include "loadsavefiltercheckplugin.moc" #include "moc_loadsavefiltercheckplugin.cpp"
#include "modeinterface.h" #include "modeinterface.h"

View file

@ -107,6 +107,6 @@ void SmartRangeWatcher::parentRangeChanged( SmartRange *, SmartRange *, SmartRan
{ {
} }
#include "smartrangenotifier.moc" #include "moc_smartrangenotifier.cpp"
// kate: space-indent on; indent-width 2; replace-tabs on; // kate: space-indent on; indent-width 2; replace-tabs on;

View file

@ -551,4 +551,4 @@ void TestKConfUpdate::testScript()
QCOMPARE(newConfContent, expectedNewConfContent); QCOMPARE(newConfContent, expectedNewConfContent);
} }
#include "test_kconf_update.moc" #include "moc_test_kconf_update.cpp"

View file

@ -149,4 +149,4 @@ void TestKConfigUtils::testUnescapeString()
} }
} }
#include "test_kconfigutils.moc" #include "moc_test_kconfigutils.cpp"

View file

@ -115,4 +115,4 @@ void ActionWatcher::Private::statusChangedSlot(const QString &taction, Action::A
} // namespace Auth } // namespace Auth
#include "kauthactionwatcher.moc" #include "moc_kauthactionwatcher.cpp"

View file

@ -39,7 +39,7 @@
#include "kconfigdata.h" #include "kconfigdata.h"
#include "kdebug.h" #include "kdebug.h"
#include "kstandarddirs.h" #include "kstandarddirs.h"
#include "kconfigbackend.moc" #include "moc_kconfigbackend.cpp"
typedef KSharedPtr<KConfigBackend> BackendPtr; typedef KSharedPtr<KConfigBackend> BackendPtr;

View file

@ -1318,5 +1318,5 @@ KConfigSkeletonItem *KCoreConfigSkeleton::findItem(const QString &name) const
return d->mItemDict.value(name); return d->mItemDict.value(name);
} }
#include "kcoreconfigskeleton.moc" #include "moc_kcoreconfigskeleton.cpp"

View file

@ -22,7 +22,7 @@
// This file requires HAVE_STRUCT_TM_TM_ZONE to be defined if struct tm member tm_zone is available. // This file requires HAVE_STRUCT_TM_TM_ZONE to be defined if struct tm member tm_zone is available.
// This file requires HAVE_TM_GMTOFF to be defined if struct tm member tm_gmtoff is available. // This file requires HAVE_TM_GMTOFF to be defined if struct tm member tm_gmtoff is available.
#include "ksystemtimezone.moc" #include "moc_ksystemtimezone.cpp"
#include <config.h> #include <config.h>
#include <config-date.h> #include <config-date.h>

View file

@ -226,4 +226,4 @@ QList<KAutoSaveFile *> KAutoSaveFile::allStaleFiles(const QString &applicationNa
return list; return list;
} }
#include "kautosavefile.moc" #include "moc_kautosavefile.cpp"

View file

@ -43,4 +43,4 @@ void KDebugDBusIface::printBacktrace()
kDebug() << kBacktrace(); kDebug() << kBacktrace();
} }
#include "kdebugdbusiface_p.moc" #include "moc_kdebugdbusiface_p.cpp"

View file

@ -1915,7 +1915,7 @@ KDirWatch::Method KDirWatch::internalMethod()
} }
#include "kdirwatch.moc" #include "moc_kdirwatch.cpp"
#include "kdirwatch_p.moc" #include "moc_kdirwatch_p.cpp"
//sven //sven

View file

@ -358,4 +358,4 @@ int KProcess::pid() const
#endif #endif
} }
#include "kprocess.moc" #include "moc_kprocess.cpp"

View file

@ -115,4 +115,4 @@ void KCompositeJob::slotInfoMessage( KJob *job, const QString &plain, const QStr
emit infoMessage( job, plain, rich ); emit infoMessage( job, plain, rich );
} }
#include "kcompositejob.moc" #include "moc_kcompositejob.cpp"

View file

@ -367,4 +367,4 @@ void KJob::setAutoDelete( bool autodelete )
d->isAutoDelete = autodelete; d->isAutoDelete = autodelete;
} }
#include "kjob.moc" #include "moc_kjob.cpp"

View file

@ -147,4 +147,4 @@ void KJobTrackerInterface::speed(KJob *job, unsigned long value)
Q_UNUSED(value) Q_UNUSED(value)
} }
#include "kjobtrackerinterface.moc" #include "moc_kjobtrackerinterface.cpp"

View file

@ -117,4 +117,4 @@ void KJobUiDelegate::Private::_k_result(KJob *job2)
q->showErrorMessage(); q->showErrorMessage();
} }
#include "kjobuidelegate.moc" #include "moc_kjobuidelegate.cpp"

View file

@ -386,4 +386,4 @@ void KToolInvocation::startKdeinit()
// qApp->restoreOverrideCursor(); // qApp->restoreOverrideCursor();
} }
#include "ktoolinvocation.moc" #include "moc_ktoolinvocation.cpp"

View file

@ -222,4 +222,4 @@ QString KLocalSocketServer::errorString() const
return d->errorString; return d->errorString;
} }
#include "klocalsocket.moc" #include "moc_klocalsocket.cpp"

View file

@ -530,4 +530,4 @@ void _setAllKsslCaCertificates(KSslCertificateManager *cm, const QList<KSslCaCer
KSslCertificateManagerPrivate::get(cm)->setAllCertificates(certsIn); KSslCertificateManagerPrivate::get(cm)->setAllCertificates(certsIn);
} }
#include "kssld/kssld_interface.moc" #include "kssld/moc_kssld_interface.cpp"

View file

@ -280,5 +280,5 @@ KSslCertificateRule KSSLD::rule(const QSslCertificate &cert, const QString &host
} }
#include "kssld.moc" #include "moc_kssld.cpp"
#include "kssld_adaptor.moc" #include "moc_kssld_adaptor.cpp"

View file

@ -1150,4 +1150,4 @@ KSslErrorUiData &KSslErrorUiData::operator=(const KSslErrorUiData &other)
} }
#include "ktcpsocket.moc" #include "moc_ktcpsocket.cpp"

View file

@ -168,4 +168,4 @@ void Sonnet::BackgroundChecker::replace(int start, const QString &oldText,
d->engine->filter()->replace(w, newText); d->engine->filter()->replace(w, newText);
} }
#include "backgroundchecker.moc" #include "moc_backgroundchecker.cpp"

View file

@ -116,4 +116,4 @@ QStringList BackgroundEngine::suggest(const QString &word)
return m_dict.suggest(word); return m_dict.suggest(word);
} }
#include "backgroundengine_p.moc" #include "moc_backgroundengine_p.cpp"

View file

@ -30,4 +30,4 @@ Client::Client( QObject *parent )
} }
#include "client_p.moc" #include "moc_client_p.cpp"

View file

@ -295,4 +295,4 @@ void Loader::changed()
} }
#include "loader_p.moc" #include "moc_loader_p.cpp"

View file

@ -169,4 +169,4 @@ void SonnetCoreTest::testCore2()
kDebug()<<"\tlang is "<<Sonnet::detectLanguage(sentence); kDebug()<<"\tlang is "<<Sonnet::detectLanguage(sentence);
} }
#include "test_core.moc" #include "moc_test_core.cpp"

View file

@ -20,7 +20,7 @@
* 02110-1301 USA * 02110-1301 USA
*/ */
#include "test_dialog.h" #include "test_dialog.h"
#include "test_dialog.moc" #include "moc_test_dialog.cpp"
#include "backgroundchecker.h" #include "backgroundchecker.h"
#include "filter_p.h" #include "filter_p.h"

View file

@ -158,4 +158,4 @@ void SonnetFilterTest::testIndic()
QCOMPARE( hitNumber, hits.count() ); QCOMPARE( hitNumber, hits.count() );
} }
#include "test_filter.moc" #include "moc_test_filter.cpp"

View file

@ -590,4 +590,4 @@ void KSycoca::clearCaches()
ksycocaInstance->sycoca()->d->closeDatabase(); ksycocaInstance->sycoca()->d->closeDatabase();
} }
#include "ksycoca.moc" #include "moc_ksycoca.cpp"

View file

@ -21,7 +21,7 @@
#include "karchivetest.h" #include "karchivetest.h"
#include <kmimetype.h> #include <kmimetype.h>
#include "karchivetest.moc" #include "moc_karchivetest.cpp"
#include <ktar.h> #include <ktar.h>
#include <kzip.h> #include <kzip.h>

View file

@ -50,4 +50,4 @@ void KAsciiTest::testkasciistricmp()
QVERIFY( kasciistricmp( "B", "A" ) > 0 ); QVERIFY( kasciistricmp( "B", "A" ) > 0 );
} }
#include "kasciitest.moc" #include "moc_kasciitest.cpp"

View file

@ -111,4 +111,4 @@ void KAutoSaveFileTest::test_locking()
} }
#include "kautosavefiletest.moc" #include "moc_kautosavefiletest.cpp"

View file

@ -23,7 +23,7 @@
#include <qtest_kde.h> #include <qtest_kde.h>
#include "kautostarttest.moc" #include "moc_kautostarttest.cpp"
#include <QtCore/QFile> #include <QtCore/QFile>

View file

@ -34,7 +34,7 @@
#include "kstandarddirs.h" #include "kstandarddirs.h"
#include "kconfiggroup.h" #include "kconfiggroup.h"
#include "kcalendartest.moc" #include "moc_kcalendartest.cpp"
QTEST_KDEMAIN_CORE_WITH_COMPONENTNAME(KCalendarTest, "kdecalendarsystems" /*so that the .po exists*/) QTEST_KDEMAIN_CORE_WITH_COMPONENTNAME(KCalendarTest, "kdecalendarsystems" /*so that the .po exists*/)

View file

@ -104,4 +104,4 @@ void KCompositeJobTest::testDeletionDuringExecution()
QTEST_KDEMAIN_CORE( KCompositeJobTest ); QTEST_KDEMAIN_CORE( KCompositeJobTest );
#include "kcompositejobtest.moc" #include "moc_kcompositejobtest.cpp"

View file

@ -23,7 +23,7 @@
#include <ktempdir.h> #include <ktempdir.h>
#include <kdesktopfile.h> #include <kdesktopfile.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include "kconfigtest.moc" #include "moc_kconfigtest.cpp"
#include <kconfig.h> #include <kconfig.h>
#include <kdebug.h> #include <kdebug.h>

View file

@ -35,7 +35,7 @@
#include "kstandarddirs.h" #include "kstandarddirs.h"
#include "kconfiggroup.h" #include "kconfiggroup.h"
#include "kdatetimeformattertest.moc" #include "moc_kdatetimeformattertest.cpp"
QTEST_KDEMAIN_CORE_WITH_COMPONENTNAME(KDateTimeFormatterTest, "kdecalendarsystems" /*so that the .po exists*/) QTEST_KDEMAIN_CORE_WITH_COMPONENTNAME(KDateTimeFormatterTest, "kdecalendarsystems" /*so that the .po exists*/)

View file

@ -28,7 +28,7 @@
#include <kconfiggroup.h> #include <kconfiggroup.h>
#include <QtDBus/QtDBus> #include <QtDBus/QtDBus>
#include "kdatetimetest.moc" #include "moc_kdatetimetest.cpp"
//TODO: test new methods //TODO: test new methods

View file

@ -25,7 +25,7 @@
#include <kdebug.h> #include <kdebug.h>
#include <kprocess.h> #include <kprocess.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include "kdebug_unittest.moc" #include "moc_kdebug_unittest.cpp"
QTEST_KDEMAIN_CORE( KDebugTest ) QTEST_KDEMAIN_CORE( KDebugTest )

View file

@ -19,7 +19,7 @@
#include <kconfiggroup.h> #include <kconfiggroup.h>
#include <ktemporaryfile.h> #include <ktemporaryfile.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include "kdesktopfiletest.moc" #include "moc_kdesktopfiletest.cpp"
#include "kdesktopfile.h" #include "kdesktopfile.h"

View file

@ -83,4 +83,4 @@ int main (int argc, char **argv)
return a.exec(); return a.exec();
} }
#include "kdirwatchtest.moc" #include "moc_kdirwatchtest.cpp"

View file

@ -149,4 +149,4 @@ void KDirWatchTest_GUI::slotDeleted(const QString& path)
m_eventBrowser->append( "Deleted(" + sender()->objectName() + "): " + path + '\n' ); m_eventBrowser->append( "Deleted(" + sender()->objectName() + "): " + path + '\n' );
} }
#include "kdirwatchtest_gui.moc" #include "moc_kdirwatchtest_gui.cpp"

View file

@ -21,7 +21,7 @@
#include <kdebug.h> #include <kdebug.h>
#include <kencodingdetector.h> #include <kencodingdetector.h>
#include "kencodingdetectortest.moc" #include "moc_kencodingdetectortest.cpp"
static const char data1[] = "this should decode correctly"; static const char data1[] = "this should decode correctly";
static const char data2[] = "this is an invalid utf-8 byte: \xBF and another one: \xBE"; static const char data2[] = "this is an invalid utf-8 byte: \xBF and another one: \xBE";

View file

@ -22,7 +22,7 @@
#include <qtest_kde.h> #include <qtest_kde.h>
#include "kconfigdata.h" #include "kconfigdata.h"
#include "kentrymaptest.moc" #include "moc_kentrymaptest.cpp"
const QByteArray group1("A Group"); const QByteArray group1("A Group");
const QByteArray key1("A Key"); const QByteArray key1("A Key");

View file

@ -428,4 +428,4 @@ void KFilterTest::slotFilterOutput(const QByteArray& data)
m_filterOutput += data; m_filterOutput += data;
} }
#include "kfiltertest.moc" #include "moc_kfiltertest.cpp"

View file

@ -416,4 +416,4 @@ void TestJobUiDelegate::connectJob( KJob *job )
QVERIFY( job->uiDelegate()!=0 ); QVERIFY( job->uiDelegate()!=0 );
} }
#include "kjobtest.moc" #include "moc_kjobtest.cpp"

View file

@ -19,7 +19,7 @@
#include "klibloadertest.h" #include "klibloadertest.h"
#include <qtest_kde.h> #include <qtest_kde.h>
#include "klibloadertest.moc" #include "moc_klibloadertest.cpp"
QTEST_KDEMAIN_CORE( KLibLoaderTest ) QTEST_KDEMAIN_CORE( KLibLoaderTest )

View file

@ -76,4 +76,4 @@ void KLimitedIODeviceTest::testSeeking()
QCOMPARE(dev.readAll(), chunk.data); QCOMPARE(dev.readAll(), chunk.data);
} }
#include "klimitediodevicetest.moc" #include "moc_klimitediodevicetest.cpp"

View file

@ -33,7 +33,7 @@
#include <QtCore/QDate> #include <QtCore/QDate>
#include <QtDBus/QtDBus> #include <QtDBus/QtDBus>
#include "klocaletest.moc" #include "moc_klocaletest.cpp"
void void
KLocaleTest::initTestCase() KLocaleTest::initTestCase()

View file

@ -213,4 +213,4 @@ void KLocaleTimeFormatTest::formatAndReadAllCountriesTest()
} }
QTEST_MAIN(KLocaleTimeFormatTest) QTEST_MAIN(KLocaleTimeFormatTest)
#include "klocaletimeformattest.moc" #include "moc_klocaletimeformattest.cpp"

View file

@ -35,7 +35,7 @@
#include <QtCore/QString> #include <QtCore/QString>
#include "klocalizedstringtest.moc" #include "moc_klocalizedstringtest.cpp"
void KLocalizedStringTest::initTestCase () void KLocalizedStringTest::initTestCase ()
{ {

View file

@ -299,4 +299,4 @@ void tst_KLocalSocketServer::abstractUnixSocket()
QTEST_MAIN(tst_KLocalSocketServer) QTEST_MAIN(tst_KLocalSocketServer)
#include "klocalsocketservertest.moc" #include "moc_klocalsocketservertest.cpp"

View file

@ -243,4 +243,4 @@ void tst_KLocalSocket::connected()
QTEST_MAIN(tst_KLocalSocket) QTEST_MAIN(tst_KLocalSocket)
#include "klocalsockettest.moc" #include "moc_klocalsockettest.cpp"

View file

@ -17,7 +17,7 @@
*/ */
#include "klockfiletest.h" #include "klockfiletest.h"
#include "klockfiletest.moc" #include "moc_klockfiletest.cpp"
#include <kdebug.h> #include <kdebug.h>
#include <unistd.h> #include <unistd.h>

View file

@ -114,4 +114,4 @@ private Q_SLOTS:
QTEST_KDEMAIN_CORE( KMd5Test ) QTEST_KDEMAIN_CORE( KMd5Test )
#include "kmd5test.moc" #include "kmd5benchmark.moc"

View file

@ -272,4 +272,4 @@ private:
QTEST_KDEMAIN_CORE( KMimeFileParserTest ) QTEST_KDEMAIN_CORE( KMimeFileParserTest )
#include "kmimefileparsertest.moc" #include "kmimeglobsfileparsertest.moc"

View file

@ -996,4 +996,4 @@ void KMimeTypeTest::testProperties()
QCOMPARE(patterns.toStringList(), pngMimeType->patterns()); QCOMPARE(patterns.toStringList(), pngMimeType->patterns());
} }
#include "kmimetypetest.moc" #include "moc_kmimetypetest.cpp"

View file

@ -18,7 +18,7 @@
#include "kmountpointtest.h" #include "kmountpointtest.h"
#include <qtest_kde.h> #include <qtest_kde.h>
#include "kmountpointtest.moc" #include "moc_kmountpointtest.cpp"
#include "kmountpoint.h" #include "kmountpoint.h"
#include <kdebug.h> #include <kdebug.h>

View file

@ -462,4 +462,4 @@ void KSaveFileTest::cleanupTestCase()
} }
} }
#include "ksavefiletest.moc" #include "moc_ksavefiletest.cpp"

View file

@ -19,7 +19,7 @@
#include <locale.h> #include <locale.h>
#include "kservicetest.h" #include "kservicetest.h"
#include "kservicetest.moc" #include "moc_kservicetest.cpp"
#include <qtest_kde.h> #include <qtest_kde.h>
#include <kconfig.h> #include <kconfig.h>

View file

@ -162,4 +162,4 @@ void KSharedPtrTest::testOrdering()
QCOMPARE( map.count(), 2 ); QCOMPARE( map.count(), 2 );
} }
#include "ksharedptrtest.moc" #include "moc_ksharedptrtest.cpp"

View file

@ -19,7 +19,7 @@
#include "kstandarddirstest.h" #include "kstandarddirstest.h"
#include "qtest_kde.h" #include "qtest_kde.h"
#include "kstandarddirstest.moc" #include "moc_kstandarddirstest.cpp"
QTEST_KDEMAIN_CORE( KStandarddirsTest ) QTEST_KDEMAIN_CORE( KStandarddirsTest )

View file

@ -1,7 +1,7 @@
#include "kstringhandlertest.h" #include "kstringhandlertest.h"
#include "qtest_kde.h" #include "qtest_kde.h"
#include "kstringhandlertest.moc" #include "moc_kstringhandlertest.cpp"
QTEST_KDEMAIN_CORE(KStringHandlerTest) QTEST_KDEMAIN_CORE(KStringHandlerTest)

View file

@ -386,4 +386,4 @@ void Server::errors()
QTEST_MAIN(KTcpSocketTest) QTEST_MAIN(KTcpSocketTest)
#include "ktcpsockettest.moc" #include "moc_ktcpsockettest.cpp"

View file

@ -23,7 +23,7 @@
#include <QtCore/QDir> #include <QtCore/QDir>
#include "ktempdir.h" #include "ktempdir.h"
#include "ktempdirtest.moc" #include "moc_ktempdirtest.cpp"
void KTempDirTest::testNoDelete() void KTempDirTest::testNoDelete()
{ {

View file

@ -13,7 +13,7 @@ This file has been placed in the Public Domain.
#include "kstandarddirs.h" #include "kstandarddirs.h"
#include "ktemporaryfile.h" #include "ktemporaryfile.h"
#include "ktemporaryfiletest.moc" #include "moc_ktemporaryfiletest.cpp"
QTEST_KDEMAIN_CORE( KTemporaryFileTest ) QTEST_KDEMAIN_CORE( KTemporaryFileTest )

View file

@ -27,7 +27,7 @@
#include <config-date.h> // for HAVE_TM_GMTOFF #include <config-date.h> // for HAVE_TM_GMTOFF
#include "ksystemtimezone.h" #include "ksystemtimezone.h"
#include "ktzfiletimezone.h" #include "ktzfiletimezone.h"
#include "ktimezonestest.moc" #include "moc_ktimezonestest.cpp"
QTEST_KDEMAIN_CORE(KTimeZonesTest) QTEST_KDEMAIN_CORE(KTimeZonesTest)

Some files were not shown because too many files have changed in this diff Show more