[calamares] Move DebugWindow

- This is a fairly specialized class, for use only in the
   whole-application where it ties in with the module system.
   Move it to the application directory and slim down the UI library.
 - Include it from the new location.
 - Add UIC to Calamares (the application) because there's now
   a designer-based widget in it.
This commit is contained in:
Adriaan de Groot 2019-08-09 06:35:40 -04:00
parent 85d28af1e2
commit e31a498c9b
6 changed files with 4 additions and 7 deletions

View File

@ -5,6 +5,8 @@ set( calamaresSources
CalamaresApplication.cpp
CalamaresWindow.cpp
DebugWindow.cpp
progresstree/ProgressTreeDelegate.cpp
progresstree/ProgressTreeItem.cpp
progresstree/ProgressTreeModel.cpp
@ -35,6 +37,7 @@ set_target_properties(calamares_bin
RUNTIME_OUTPUT_NAME calamares
)
calamares_automoc( calamares_bin )
calamares_autouic( calamares_bin )
target_link_libraries( calamares_bin
PRIVATE

View File

@ -26,7 +26,7 @@
#include "ViewManager.h"
#include "progresstree/ProgressTreeView.h"
#include "utils/CalamaresUtilsGui.h"
#include "utils/DebugWindow.h"
#include "DebugWindow.h"
#include "utils/Logger.h"
#include "utils/Retranslator.h"

View File

@ -14,7 +14,6 @@ set( calamaresui_SOURCES
modulesystem/ViewModule.cpp
utils/CalamaresUtilsGui.cpp
utils/DebugWindow.cpp
utils/ImageRegistry.cpp
utils/Paste.cpp
@ -38,10 +37,6 @@ mark_thirdparty_code(
${CMAKE_SOURCE_DIR}/3rdparty/waitingspinnerwidget.cpp
)
set( calamaresui_UI
utils/DebugWindow.ui
)
if( WITH_PYTHON )
list( APPEND calamaresui_SOURCES
modulesystem/PythonJobModule.cpp
@ -69,7 +64,6 @@ endif()
calamares_add_library( calamaresui
SOURCES ${calamaresui_SOURCES}
UI ${calamaresui_UI}
EXPORT_MACRO UIDLLEXPORT_PRO
LINK_PRIVATE_LIBRARIES
${OPTIONAL_PYTHON_LIBRARIES}