Ref T369, text message component style / font size +/-

This commit is contained in:
Klaus Basan
2018-09-26 03:38:29 +02:00
parent 1a0bcdaecc
commit 3d2c177637
4 changed files with 34 additions and 5 deletions

View File

@@ -577,5 +577,15 @@ namespace BlackGui
this->displayMyself();
}
void CTextMessageComponent::fontSizeMinus()
{
ui->comp_SettingsStyle->fontSizeMinus();
}
void CTextMessageComponent::fontSizePlus()
{
ui->comp_SettingsStyle->fontSizePlus();
}
} // namespace
} // namespace

View File

@@ -71,6 +71,11 @@ namespace BlackGui
//! Display the tab for given callsign
void showCorrespondingTab(const BlackMisc::Aviation::CCallsign &callsign);
//! Font size @{
void fontSizeMinus();
void fontSizePlus();
//! @}
signals:
//! Message to be displayed in info window
void displayInInfoWindow(const BlackMisc::CVariant &message, int displayDurationMs) const;

View File

@@ -245,11 +245,25 @@
<property name="bottomMargin">
<number>1</number>
</property>
<item>
<widget class="BlackGui::Components::CSettingsTextMessageInlineComponent" name="comp_SettingsOverlay"/>
<item alignment="Qt::AlignRight">
<widget class="BlackGui::Components::CSettingsTextMessageInlineComponent" name="comp_SettingsOverlay">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="BlackGui::Components::CSettingsTextMessageStyle" name="comp_SettingsStyle"/>
<item alignment="Qt::AlignRight">
<widget class="BlackGui::Components::CSettingsTextMessageStyle" name="comp_SettingsStyle">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
</widget>
</item>
</layout>
</widget>

View File

@@ -214,7 +214,7 @@ QPushButton {
color: yellow; /* font color */
padding: 0px;
margin-right: 5px;
min-width:60px;
min-width:40px;
min-height:20px;
}