3131
3232#include " crashhandler.h"
3333#include " drivemanager.h"
34- #include " icon.h"
3534#include " portalfiledialog.h"
3635#include " releasemanager.h"
3736#include " units.h"
3837#include " versionchecker.h"
3938
40- #if (defined(__linux))
41- #include < AdwaitaQt6/adwaitacolors.h>
42- #endif
43-
4439#ifdef QT_STATIC
4540Q_IMPORT_PLUGIN (QWindowsIntegrationPlugin);
4641
@@ -74,10 +69,6 @@ int main(int argc, char **argv)
7469 QApplication::setOrganizationName (" fedoraproject.org" );
7570 QApplication::setApplicationName (" MediaWriter" );
7671
77- #if (defined(__linux))
78- QQuickStyle::setStyle (" QtQuick.Controls.org.fedoraproject.AdwaitaTheme" );
79- #endif
80-
8172 QApplication app (argc, argv);
8273 options.parse (app.arguments ());
8374
@@ -87,10 +78,6 @@ int main(int argc, char **argv)
8778 if (translator.load (QLocale (QLocale ().language (), QLocale ().country ()), QLatin1String (), QLatin1String (), " :/translations" ))
8879 app.installTranslator (&translator);
8980
90- #if (defined(__linux))
91- QPalette adwaitaPalette = Adwaita::Colors::palette ();
92- QGuiApplication::setPalette (adwaitaPalette);
93- #endif
9481 QGuiApplication::setDesktopFileName (" org.fedoraproject.MediaWriter.desktop" );
9582
9683 mDebug () << " Injecting QML context properties" ;
@@ -109,8 +96,6 @@ int main(int argc, char **argv)
10996 engine.rootContext ()->setContextProperty (" platformSupportsDelayedWriting" , false );
11097#endif
11198
112- qmlRegisterType<Icon>(" MediaWriter" , 1 , 0 , " Icon" );
113-
11499 mDebug () << " Loading the QML source code" ;
115100
116101 engine.load (QUrl (QStringLiteral (" qrc:/qml/main.qml" )));
0 commit comments