chore: rm Unused ServerConfig::m_pMainwindow
This commit is contained in:
parent
2efcc76933
commit
31573bf6e8
3 changed files with 21 additions and 29 deletions
|
|
@ -62,7 +62,7 @@ using CoreProcessState = CoreProcess::ProcessState;
|
||||||
|
|
||||||
MainWindow::MainWindow()
|
MainWindow::MainWindow()
|
||||||
: ui{std::make_unique<Ui::MainWindow>()},
|
: ui{std::make_unique<Ui::MainWindow>()},
|
||||||
m_serverConfig(*this),
|
m_serverConfig(),
|
||||||
m_coreProcess(m_serverConfig),
|
m_coreProcess(m_serverConfig),
|
||||||
m_serverConnection(this, m_serverConfig),
|
m_serverConnection(this, m_serverConfig),
|
||||||
m_clientConnection(this),
|
m_clientConnection(this),
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@
|
||||||
#include "ServerConfig.h"
|
#include "ServerConfig.h"
|
||||||
|
|
||||||
#include "Hotkey.h"
|
#include "Hotkey.h"
|
||||||
#include "MainWindow.h"
|
|
||||||
#include "common/Settings.h"
|
#include "common/Settings.h"
|
||||||
#include "dialogs/AddClientDialog.h"
|
#include "dialogs/AddClientDialog.h"
|
||||||
|
|
||||||
|
|
@ -36,11 +35,7 @@ static const struct
|
||||||
|
|
||||||
const int serverDefaultIndex = 7;
|
const int serverDefaultIndex = 7;
|
||||||
|
|
||||||
ServerConfig::ServerConfig(MainWindow &mainWindow, int columns, int rows)
|
ServerConfig::ServerConfig(int columns, int rows) : m_Screens(columns), m_Columns(columns), m_Rows(rows)
|
||||||
: m_pMainWindow(&mainWindow),
|
|
||||||
m_Screens(columns),
|
|
||||||
m_Columns(columns),
|
|
||||||
m_Rows(rows)
|
|
||||||
{
|
{
|
||||||
recall();
|
recall();
|
||||||
}
|
}
|
||||||
|
|
@ -76,8 +71,7 @@ bool ServerConfig::operator==(const ServerConfig &sc) const
|
||||||
m_Hotkeys == sc.m_Hotkeys && //
|
m_Hotkeys == sc.m_Hotkeys && //
|
||||||
m_DisableLockToScreen == sc.m_DisableLockToScreen && //
|
m_DisableLockToScreen == sc.m_DisableLockToScreen && //
|
||||||
m_ClipboardSharing == sc.m_ClipboardSharing && //
|
m_ClipboardSharing == sc.m_ClipboardSharing && //
|
||||||
m_ClipboardSharingSize == sc.m_ClipboardSharingSize && //
|
m_ClipboardSharingSize == sc.m_ClipboardSharingSize;
|
||||||
m_pMainWindow == sc.m_pMainWindow;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ServerConfig::save(QFile &file) const
|
void ServerConfig::save(QFile &file) const
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,6 @@ class QSettings;
|
||||||
class QString;
|
class QString;
|
||||||
class QFile;
|
class QFile;
|
||||||
class ServerConfigDialog;
|
class ServerConfigDialog;
|
||||||
class MainWindow;
|
|
||||||
|
|
||||||
namespace deskflow::gui {
|
namespace deskflow::gui {
|
||||||
|
|
||||||
|
|
@ -46,7 +45,7 @@ class ServerConfig : public ScreenConfig, public deskflow::gui::IServerConfig
|
||||||
friend QTextStream &operator<<(QTextStream &outStream, const ServerConfig &config);
|
friend QTextStream &operator<<(QTextStream &outStream, const ServerConfig &config);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit ServerConfig(MainWindow &mainWindow, int columns = kDefaultColumns, int rows = kDefaultRows);
|
explicit ServerConfig(int columns = kDefaultColumns, int rows = kDefaultRows);
|
||||||
~ServerConfig() override = default;
|
~ServerConfig() override = default;
|
||||||
|
|
||||||
bool operator==(const ServerConfig &sc) const;
|
bool operator==(const ServerConfig &sc) const;
|
||||||
|
|
@ -266,7 +265,6 @@ private:
|
||||||
QList<bool> m_SwitchCorners;
|
QList<bool> m_SwitchCorners;
|
||||||
HotkeyList m_Hotkeys;
|
HotkeyList m_Hotkeys;
|
||||||
|
|
||||||
MainWindow *m_pMainWindow;
|
|
||||||
ScreenList m_Screens;
|
ScreenList m_Screens;
|
||||||
int m_Columns;
|
int m_Columns;
|
||||||
int m_Rows;
|
int m_Rows;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue