mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
refs #446, style sheet adjustments
* split up style sheets * prepared stylesheet, also include placeholder for forthcoming data GUI
This commit is contained in:
committed by
Mathew Sutcliffe
parent
9d0408138a
commit
091c61c909
@@ -40,10 +40,22 @@ CSwiftCore::CSwiftCore(const SetupInfo &info, QWidget *parent) :
|
||||
setWindowIconText(name);
|
||||
setupLogDisplay();
|
||||
connectSlots();
|
||||
ps_onStyleSheetsChanged();
|
||||
initStyleSheet();
|
||||
startCore(info);
|
||||
}
|
||||
|
||||
void CSwiftCore::initStyleSheet()
|
||||
{
|
||||
const QString s = CStyleSheetUtility::instance().styles(
|
||||
{
|
||||
CStyleSheetUtility::fileNameFonts(),
|
||||
CStyleSheetUtility::fileNameStandardWidget(),
|
||||
CStyleSheetUtility::fileNameSwiftCore()
|
||||
}
|
||||
);
|
||||
this->setStyleSheet(s);
|
||||
}
|
||||
|
||||
CSwiftCore::~CSwiftCore()
|
||||
{ }
|
||||
|
||||
@@ -79,13 +91,7 @@ void CSwiftCore::ps_p2pModeToggled(bool checked)
|
||||
|
||||
void CSwiftCore::ps_onStyleSheetsChanged()
|
||||
{
|
||||
const QString s = CStyleSheetUtility::instance().styles(
|
||||
{
|
||||
CStyleSheetUtility::fileNameFonts(),
|
||||
CStyleSheetUtility::fileNameSwiftCore()
|
||||
}
|
||||
);
|
||||
setStyleSheet(s);
|
||||
this->initStyleSheet();
|
||||
}
|
||||
|
||||
void CSwiftCore::connectSlots()
|
||||
|
||||
Reference in New Issue
Block a user