mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
refs #873, UI improvements
* allow to set inner message frame factor (width/height) * fixed aircrft selector to keep selection
This commit is contained in:
committed by
Mathew Sutcliffe
parent
ec23863d53
commit
3afead9f71
@@ -100,8 +100,10 @@ namespace BlackGui
|
||||
{
|
||||
int w = this->width();
|
||||
int h = this->height();
|
||||
int wInner = 0.7 * w;
|
||||
int hInner = 0.7 * h;
|
||||
int wInner = this->m_widthFactor * w;
|
||||
int hInner = this->m_heightFactor * h;
|
||||
if (wInner > this->maximumWidth()) wInner = this->maximumWidth();
|
||||
if (hInner > this->maximumHeight()) hInner = this->maximumHeight();
|
||||
return QSize(wInner, hInner);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user