mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-17 15:31:20 +00:00
Bundle dolphinui.rc also in dolphinmainwindowtest
Otherwise the test executable will not be able to find the .rc file while creating a DolphinMainWindow instance. We also need to force the component name to `dolphin`, otherwise kxmlgui will default to the name of the binary (which in this case would be dolphinmainwindowtest rather than dolphin).
This commit is contained in:
parent
362244ccbe
commit
b9d6a97711
|
@ -105,7 +105,7 @@ DolphinMainWindow::DolphinMainWindow() :
|
||||||
m_tearDownFromPlacesRequested(false)
|
m_tearDownFromPlacesRequested(false)
|
||||||
{
|
{
|
||||||
Q_INIT_RESOURCE(dolphin);
|
Q_INIT_RESOURCE(dolphin);
|
||||||
|
setComponentName(QStringLiteral("dolphin"), QGuiApplication::applicationDisplayName());
|
||||||
setObjectName(QStringLiteral("Dolphin#"));
|
setObjectName(QStringLiteral("Dolphin#"));
|
||||||
|
|
||||||
connect(&DolphinNewFileMenuObserver::instance(), &DolphinNewFileMenuObserver::errorMessage,
|
connect(&DolphinNewFileMenuObserver::instance(), &DolphinNewFileMenuObserver::errorMessage,
|
||||||
|
|
|
@ -54,10 +54,14 @@ TEST_NAME viewpropertiestest
|
||||||
LINK_LIBRARIES dolphinprivate dolphinstatic Qt5::Test)
|
LINK_LIBRARIES dolphinprivate dolphinstatic Qt5::Test)
|
||||||
|
|
||||||
# DolphinMainWindowTest
|
# DolphinMainWindowTest
|
||||||
ecm_add_test(dolphinmainwindowtest.cpp
|
set(dolphinmainwindowtest_SRCS dolphinmainwindowtest.cpp)
|
||||||
|
qt5_add_resources(dolphinmainwindowtest_SRCS ${CMAKE_SOURCE_DIR}/src/dolphin.qrc)
|
||||||
|
|
||||||
|
ecm_add_test(${dolphinmainwindowtest_SRCS}
|
||||||
TEST_NAME dolphinmainwindowtest
|
TEST_NAME dolphinmainwindowtest
|
||||||
LINK_LIBRARIES dolphinprivate dolphinstatic Qt5::Test)
|
LINK_LIBRARIES dolphinprivate dolphinstatic Qt5::Test)
|
||||||
|
|
||||||
|
# DragAndDropHelperTest
|
||||||
ecm_add_test(draganddrophelpertest.cpp LINK_LIBRARIES dolphinprivate Qt5::Test)
|
ecm_add_test(draganddrophelpertest.cpp LINK_LIBRARIES dolphinprivate Qt5::Test)
|
||||||
|
|
||||||
# PlacesItemModelTest
|
# PlacesItemModelTest
|
||||||
|
|
Loading…
Reference in a new issue