move vecWindowPosMain in the settings base class
This commit is contained in:
parent
d0f4b9b6a0
commit
8cd4f5b3e8
1 changed files with 7 additions and 11 deletions
|
@ -40,6 +40,7 @@ class CSettings
|
|||
{
|
||||
public:
|
||||
CSettings() :
|
||||
vecWindowPosMain ( ), // empty array
|
||||
strLanguage ( "" ),
|
||||
strFileName ( "" ) {}
|
||||
|
||||
|
@ -47,6 +48,7 @@ public:
|
|||
void Save();
|
||||
|
||||
// common settings
|
||||
QByteArray vecWindowPosMain;
|
||||
QString strLanguage;
|
||||
|
||||
protected:
|
||||
|
@ -126,7 +128,6 @@ public:
|
|||
vstrIPAddress ( MAX_NUM_SERVER_ADDR_ITEMS, "" ),
|
||||
iNewClientFaderLevel ( 100 ),
|
||||
bConnectDlgShowAllMusicians ( true ),
|
||||
vecWindowPosMain ( ), // empty array
|
||||
vecWindowPosSettings ( ), // empty array
|
||||
vecWindowPosChat ( ), // empty array
|
||||
vecWindowPosProfile ( ), // empty array
|
||||
|
@ -150,7 +151,6 @@ public:
|
|||
bool bConnectDlgShowAllMusicians;
|
||||
|
||||
// window position/state settings
|
||||
QByteArray vecWindowPosMain;
|
||||
QByteArray vecWindowPosSettings;
|
||||
QByteArray vecWindowPosChat;
|
||||
QByteArray vecWindowPosProfile;
|
||||
|
@ -173,13 +173,9 @@ class CServerSettings : public CSettings
|
|||
public:
|
||||
CServerSettings ( CServer* pNSerP, const QString& sNFiName ) :
|
||||
CSettings ( ),
|
||||
vecWindowPosMain ( ), // empty array
|
||||
pServer ( pNSerP )
|
||||
{ SetFileName ( sNFiName, DEFAULT_INI_FILE_NAME_SERVER); }
|
||||
|
||||
// window position/state settings
|
||||
QByteArray vecWindowPosMain;
|
||||
|
||||
protected:
|
||||
virtual void ReadFromXML ( const QDomDocument& IniXMLDocument ) override;
|
||||
virtual void WriteToXML ( QDomDocument& IniXMLDocument ) override;
|
||||
|
|
Loading…
Reference in a new issue