mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Minor cockpit navigator adjustments
This commit is contained in:
committed by
Mat Sutcliffe
parent
a9967e2002
commit
5661180f3e
@@ -173,6 +173,7 @@ namespace BlackGui
|
||||
|
||||
void CNavigatorDialog::onStyleSheetsChanged()
|
||||
{
|
||||
if (!sGui || sGui->isShuttingDown()) { return; }
|
||||
const QString fn(CStyleSheetUtility::fileNameNavigator());
|
||||
const QString qss(sGui->getStyleSheetUtility().style(fn));
|
||||
this->setStyleSheet("");
|
||||
@@ -190,7 +191,8 @@ namespace BlackGui
|
||||
{
|
||||
if (event->buttons() & Qt::LeftButton)
|
||||
{
|
||||
this->move(event->globalPos() - m_framelessDragPosition);
|
||||
const QPoint pos = this->mapToParent(event->pos() - m_framelessDragPosition);
|
||||
this->move(pos);
|
||||
event->accept();
|
||||
return;
|
||||
}
|
||||
@@ -207,7 +209,7 @@ namespace BlackGui
|
||||
{
|
||||
if (event->buttons() & Qt::LeftButton)
|
||||
{
|
||||
m_framelessDragPosition = this->mapToParent(event->pos());
|
||||
m_framelessDragPosition = event->pos();
|
||||
event->accept();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user