8000 refactor: Remove singleapplicationui class · swift-project/pilotclient@472f69d · GitHub
[go: up one dir, main page]

Skip to content

Commit 472f69d

Browse files
committed
refactor: Remove singleapplicationui class
This only protected the UI settings but it likely required for many other settings as well, if done propertly. Do reduce complexity => remove for now
1 parent 509d34e commit 472f69d

File tree

5 files changed

+2
-71
lines changed

5 files changed

+2
-71
lines changed

src/gui/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,8 +772,6 @@ add_library(gui SHARED
772772
showhidebar.cpp
773773
showhidebar.h
774774
showhidebar.ui
775-
singleapplicationui.cpp
776-
singleapplicationui.h
777775
splashscreen.cpp
778776
splashscreen.h
779777
stylesheetutility.cpp

src/gui/components/settingsguicomponent.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ using namespace swift::core::context;
2121

2222
namespace swift::gui::components
2323
{
24-
CSettingsGuiComponent::CSettingsGuiComponent(QWidget *parent)
25-
: QFrame(parent), swift::gui::CSingleApplicationUi(this), ui(new Ui::CSettingsGuiComponent)
24+
CSettingsGuiComponent::CSettingsGuiComponent(QWidget *parent) : QFrame(parent), ui(new Ui::CSettingsGuiComponent)
2625
{
2726
ui->setupUi(this);
2827

src/gui/components/settingsguicomponent.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include <QScopedPointer>
1111

1212
#include "gui/settings/guisettings.h"
13-
#include "gui/singleapplicationui.h"
1413

1514
namespace Ui
1615
{
@@ -21,7 +20,7 @@ namespace swift::gui::components
2120
/*!
2221
* General GUI settings
2322
*/
24-
class CSettingsGuiComponent : public QFrame, public swift::gui::CSingleApplicationUi
23+
class CSettingsGuiComponent : public QFrame
2524
{
2625
Q_OBJECT
2726

src/gui/singleapplicationui.cpp

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/gui/singleapplicationui.h

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0