refactor: Remove unused NetworkSetupForm

This commit is contained in:
Lars Toenning
2024-01-30 10:56:12 +01:00
parent 9188a5857e
commit c1ae6fe418
5 changed files with 0 additions and 114 deletions

View File

@@ -217,11 +217,9 @@ add_library(gui SHARED
qml/AtcRing.qml
textmessagetextedit.cpp
labelandicon.ui
editors/networksetupform.ui
editors/fsdsetupform.cpp
editors/liveryform.ui
editors/relativeaircraftposition.ui
editors/networksetupform.cpp
editors/fsdsetupform.h
editors/cockpitcomform.cpp
editors/situationform.ui
@@ -255,7 +253,6 @@ add_library(gui SHARED
editors/modelmappingform.h
editors/modelmappingform.cpp
editors/distributorform.ui
editors/networksetupform.h
editors/aircrafticaoform.h
editors/voicesetupform.ui
editors/aircraftpartsform.ui

View File

@@ -14,18 +14,6 @@
<string>Frame</string>
</property>
<layout class="QVBoxLayout" name="vl_SettingsNetworkComponent">
<item>
<widget class="QGroupBox" name="gb_Network">
<property name="title">
<string>Network</string>
</property>
<layout class="QVBoxLayout" name="vl_Network">
<item>
<widget class="BlackGui::Editors::CNetworkSetupForm" name="ediitor_NetworkSetup"/>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="gb_Services">
<property name="title">
@@ -73,12 +61,6 @@
<header>blackgui/components/settingsvatsimreaderscomponent.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>BlackGui::Editors::CNetworkSetupForm</class>
<extends>QFrame</extends>
<header>blackgui/editors/networksetupform.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<connections/>

View File

@@ -1,25 +0,0 @@
// SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
#include "networksetupform.h"
#include "ui_networksetupform.h"
#include "blackgui/guiutility.h"
using namespace BlackMisc;
namespace BlackGui::Editors
{
CNetworkSetupForm::CNetworkSetupForm(QWidget *parent) : CForm(parent),
ui(new Ui::CNetworkSetupForm)
{
ui->setupUi(this);
}
CNetworkSetupForm::~CNetworkSetupForm()
{}
void CNetworkSetupForm::setReadOnly(bool readonly)
{
CGuiUtility::checkBoxReadOnly(ui->cb_DynamicOffsetTimes, readonly);
}
} // ns

View File

@@ -1,40 +0,0 @@
// SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
//! \file
#ifndef BLACKGUI_EDITORS_NETWORKSETUPFORM_H
#define BLACKGUI_EDITORS_NETWORKSETUPFORM_H
#include "blackgui/editors/form.h"
#include <QScopedPointer>
namespace Ui
{
class CNetworkSetupForm;
}
namespace BlackGui::Editors
{
//! Setup form
class CNetworkSetupForm : public CForm
{
Q_OBJECT
public:
//! Constructor
explicit CNetworkSetupForm(QWidget *parent = nullptr);
//! Destructor
virtual ~CNetworkSetupForm() override;
//! \name Form class implementations
//! @{
virtual void setReadOnly(bool readonly) override;
//! @}
private:
QScopedPointer<Ui::CNetworkSetupForm> ui;
};
} // ns
#endif // guard

View File

@@ -1,28 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>CNetworkSetupForm</class>
<widget class="QFrame" name="CNetworkSetupForm">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>99</width>
<height>31</height>
</rect>
</property>
<property name="windowTitle">
<string>Network offset times</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QCheckBox" name="cb_DynamicOffsetTimes">
<property name="text">
<string>for future usage</string>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>