mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-03 16:25:54 +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()
|
void CNavigatorDialog::onStyleSheetsChanged()
|
||||||
{
|
{
|
||||||
|
if (!sGui || sGui->isShuttingDown()) { return; }
|
||||||
const QString fn(CStyleSheetUtility::fileNameNavigator());
|
const QString fn(CStyleSheetUtility::fileNameNavigator());
|
||||||
const QString qss(sGui->getStyleSheetUtility().style(fn));
|
const QString qss(sGui->getStyleSheetUtility().style(fn));
|
||||||
this->setStyleSheet("");
|
this->setStyleSheet("");
|
||||||
@@ -190,7 +191,8 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
if (event->buttons() & Qt::LeftButton)
|
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();
|
event->accept();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -207,7 +209,7 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
if (event->buttons() & Qt::LeftButton)
|
if (event->buttons() & Qt::LeftButton)
|
||||||
{
|
{
|
||||||
m_framelessDragPosition = this->mapToParent(event->pos());
|
m_framelessDragPosition = event->pos();
|
||||||
event->accept();
|
event->accept();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,16 +21,16 @@
|
|||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gl_NavigatorDialog">
|
<layout class="QGridLayout" name="gl_NavigatorDialog">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
<number>3</number>
|
<number>5</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="topMargin">
|
<property name="topMargin">
|
||||||
<number>3</number>
|
<number>5</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="rightMargin">
|
<property name="rightMargin">
|
||||||
<number>3</number>
|
<number>5</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="bottomMargin">
|
<property name="bottomMargin">
|
||||||
<number>3</number>
|
<number>5</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QFrame" name="fr_NavigatorDialogInner"/>
|
<widget class="QFrame" name="fr_NavigatorDialogInner"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user