diff options
author | Björn Hagemeister | 2014-08-26 14:28:36 +0200 |
---|---|---|
committer | Björn Hagemeister | 2014-08-26 14:28:36 +0200 |
commit | c01bee70a8ec082067d11cbf5dc093a74c403c5c (patch) | |
tree | 4be6170fcfa56bc5e7dae9e6e2c401a3a20efa0d /src/client/toolbar/toolbar.cpp | |
parent | Client is able to auto - connect to the same room belonging manager. (diff) | |
download | pvs2-c01bee70a8ec082067d11cbf5dc093a74c403c5c.tar.gz pvs2-c01bee70a8ec082067d11cbf5dc093a74c403c5c.tar.xz pvs2-c01bee70a8ec082067d11cbf5dc093a74c403c5c.zip |
Changed .ini file in client and manager from pvs2client.ini and pvs2mgr.ini to pvs2.ini, for having just one file.
Diffstat (limited to 'src/client/toolbar/toolbar.cpp')
-rw-r--r-- | src/client/toolbar/toolbar.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/client/toolbar/toolbar.cpp b/src/client/toolbar/toolbar.cpp index 0f90492..1838166 100644 --- a/src/client/toolbar/toolbar.cpp +++ b/src/client/toolbar/toolbar.cpp @@ -39,14 +39,16 @@ Toolbar::Toolbar(const QByteArray sessionName, QWidget *parent) * Does exact the same as Toolbar::Toolbar(QWidget *parent) but additionally * instantly tries to connect to the pvsmgr in its room without sessionName. * @param autoConnect - * @param parent + * @param parent If parent is 0, the new widget becomes a window. If parent is + * another widget, this widget becomes a child window inside parent. The new + * widget is deleted when its parent is deleted. */ Toolbar::Toolbar(const bool autoConnect, QWidget *parent) : Toolbar(parent) { qDebug() << "auto - constructor!"; if (autoConnect) { - // Getting manager ip. + // Try getting manager ip. QString mgrIp = identifyMgrIP(); qDebug() << "mgrIP: " << mgrIp; if (mgrIp != NULL) { @@ -186,7 +188,7 @@ QString Toolbar::identifyMgrIP() } QStringList rooms = conf.value("rooms").toStringList(); - qDebug() << rooms; + // qDebug() << rooms; for (auto i : rooms) { |