mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
small follow up of refs #633, display correspondig DB in window title
(makes it eas to see what DB is used)
This commit is contained in:
@@ -26,6 +26,7 @@
|
|||||||
using namespace BlackMisc;
|
using namespace BlackMisc;
|
||||||
using namespace BlackMisc::Network;
|
using namespace BlackMisc::Network;
|
||||||
using namespace BlackCore;
|
using namespace BlackCore;
|
||||||
|
using namespace BlackCore::Data;
|
||||||
using namespace BlackGui;
|
using namespace BlackGui;
|
||||||
using namespace BlackGui::Components;
|
using namespace BlackGui::Components;
|
||||||
|
|
||||||
@@ -80,6 +81,16 @@ void CSwiftData::init()
|
|||||||
this->initStyleSheet();
|
this->initStyleSheet();
|
||||||
connect(sGui, &CGuiApplication::styleSheetsChanged, this, &CSwiftData::ps_onStyleSheetsChanged);
|
connect(sGui, &CGuiApplication::styleSheetsChanged, this, &CSwiftData::ps_onStyleSheetsChanged);
|
||||||
this->initMenu();
|
this->initMenu();
|
||||||
|
|
||||||
|
// update title
|
||||||
|
const CGlobalSetup s(sApp->getGlobalSetup());
|
||||||
|
if (!s.getDbHomePageUrl().isEmpty())
|
||||||
|
{
|
||||||
|
QString t(this->windowTitle());
|
||||||
|
t += " ";
|
||||||
|
t += s.getDbHomePageUrl().toQString(true);
|
||||||
|
this->setWindowTitle(t);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSwiftData::initLogDisplay()
|
void CSwiftData::initLogDisplay()
|
||||||
|
|||||||
Reference in New Issue
Block a user