Make the test link (moving renamedialog to libdolphinprivate since we'll need that feature in the part anyway)

svn path=/trunk/KDE/kdebase/apps/; revision=666229
This commit is contained in:
David Faure 2007-05-19 08:03:39 +00:00
parent 13779085bf
commit d23a4f31cb
4 changed files with 11 additions and 6 deletions

View file

@ -1,7 +1,7 @@
add_subdirectory( pics )
add_subdirectory( servicemenus )
#add_subdirectory( tests )
add_subdirectory( tests )
include_directories( ${CMAKE_SOURCE_DIR}/libkonq ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} )
@ -18,6 +18,7 @@ set(dolphinprivate_LIB_SRCS
dolphinsettings.cpp
viewproperties.cpp
dolphinsortfilterproxymodel.cpp
renamedialog.cpp
)
kde4_add_kcfg_files(dolphinprivate_LIB_SRCS
@ -62,7 +63,6 @@ set(dolphin_SRCS
main.cpp
metadatawidget.cpp
pixmapviewer.cpp
renamedialog.cpp
settingspagebase.cpp
sidebarpage.cpp
statusbarspaceinfo.cpp

View file

@ -19,11 +19,12 @@
#ifndef RENAMEDIALOG_H
#define RENAMEDIALOG_H
#include "libdolphin_export.h"
#include <kdialog.h>
#include <kurl.h>
class KLineEdit;
/**
@ -45,7 +46,7 @@ class KLineEdit;
* }
* \endcode
*/
class RenameDialog : public KDialog
class LIBDOLPHINPRIVATE_EXPORT RenameDialog : public KDialog
{
Q_OBJECT

View file

@ -1,6 +1,6 @@
if(KDE4_BUILD_TESTS)
include_directories( ${CMAKE_SOURCE_DIR}/apps/dolphin/src )
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. )
# Tests don't need to go into toplevel/bin, they are fine in the current dir.
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
@ -11,7 +11,9 @@ if(KDE4_BUILD_TESTS)
kde4_add_executable(renamedialogtest RUN_UNINSTALLED renamedialogtest.cpp)
target_link_libraries(renamedialogtest dolphin ${QT_QTTEST_LIBRARY})
target_link_libraries(renamedialogtest dolphinprivate ${QT_QTTEST_LIBRARY})
add_test(dolphin-renamedialogtest ${EXECUTABLE_OUTPUT_PATH}/renamedialogtest)
############################################

View file

@ -43,3 +43,5 @@ void RenameDialogTest::testExtensionString()
result = RenameDialog::extensionString("Image.tar.1.12.gz");
QCOMPARE(result, QString(".tar.1.12.gz"));
}
#include "renamedialogtest.moc"