Ref T220, renamed some main window / widget functions

Make clearer if dealing with a window or widget
This commit is contained in:
Klaus Basan
2018-01-10 03:20:04 +01:00
parent d3480c41b3
commit b74652c94a
16 changed files with 77 additions and 56 deletions

View File

@@ -387,7 +387,7 @@ namespace BlackGui
}
// and move
QPoint mainWindowPos = BlackGui::CGuiUtility::mainWindowPosition();
QPoint mainWindowPos = BlackGui::CGuiUtility::mainWidgetPosition();
if (!mainWindowPos.isNull())
{
int x = mainWindowPos.x() + m_offsetWhenFloating.x();
@@ -556,8 +556,8 @@ namespace BlackGui
void CDockWidget::forceStyleSheetUpdate()
{
QString qss = this->styleSheet();
this->setStyleSheet(qss.isEmpty() ? " " : "");
const QString qss = this->styleSheet();
this->setStyleSheet(qss.isEmpty() ? QStringLiteral(" ") : QStringLiteral(""));
this->setStyleSheet(qss);
}