diff --git a/src/libcalamaresui/CMakeLists.txt b/src/libcalamaresui/CMakeLists.txt
index c5c7e9d4b..32fec2cb1 100644
--- a/src/libcalamaresui/CMakeLists.txt
+++ b/src/libcalamaresui/CMakeLists.txt
@@ -22,6 +22,7 @@ set( calamaresui_SOURCES
widgets/ClickableLabel.cpp
widgets/FixedAspectRatioLabel.cpp
+ widgets/PrettyRadioButton.cpp
widgets/WaitingWidget.cpp
${CMAKE_SOURCE_DIR}/3rdparty/waitingspinnerwidget.cpp
diff --git a/src/modules/partition/gui/PrettyRadioButton.cpp b/src/libcalamaresui/widgets/PrettyRadioButton.cpp
similarity index 100%
rename from src/modules/partition/gui/PrettyRadioButton.cpp
rename to src/libcalamaresui/widgets/PrettyRadioButton.cpp
diff --git a/src/modules/partition/gui/PrettyRadioButton.h b/src/libcalamaresui/widgets/PrettyRadioButton.h
similarity index 93%
rename from src/modules/partition/gui/PrettyRadioButton.h
rename to src/libcalamaresui/widgets/PrettyRadioButton.h
index c88c00728..efc4be70c 100644
--- a/src/modules/partition/gui/PrettyRadioButton.h
+++ b/src/libcalamaresui/widgets/PrettyRadioButton.h
@@ -16,8 +16,8 @@
* along with Calamares. If not, see .
*/
-#ifndef PRETTYRADIOBUTTON_H
-#define PRETTYRADIOBUTTON_H
+#ifndef LIBCALAMARESUI_PRETTYRADIOBUTTON_H
+#define LIBCALAMARESUI_PRETTYRADIOBUTTON_H
#include
@@ -64,4 +64,4 @@ protected:
QHBoxLayout* m_optionsLayout;
};
-#endif // PRETTYRADIOBUTTON_H
+#endif // LIBCALAMARESUI_PRETTYRADIOBUTTON_H
diff --git a/src/modules/partition/CMakeLists.txt b/src/modules/partition/CMakeLists.txt
index d01a7d983..d40bbcd1c 100644
--- a/src/modules/partition/CMakeLists.txt
+++ b/src/modules/partition/CMakeLists.txt
@@ -80,7 +80,6 @@ if ( KPMcore_FOUND AND Qt5DBus_FOUND AND KF5CoreAddons_FOUND AND KF5Config_FOUND
gui/PartitionSizeController.cpp
gui/PartitionSplitterWidget.cpp
gui/PartitionViewStep.cpp
- gui/PrettyRadioButton.cpp
gui/ResizeVolumeGroupDialog.cpp
gui/ScanningDialog.cpp
gui/ReplaceWidget.cpp