mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 10:25:36 +08:00
Text message improvements
* css (text message style sheet) * settings/send to group boxes NOT checked at beginning * qss * string concat with %
This commit is contained in:
committed by
Mat Sutcliffe
parent
77e642d42d
commit
27b9c5e8c8
@@ -107,6 +107,10 @@ namespace BlackGui
|
||||
if (!myself || !sGui || sGui->isShuttingDown()) { return; }
|
||||
this->onSettingsChanged();
|
||||
this->onChangedAircraftCockpit();
|
||||
|
||||
// hde for the beginning
|
||||
ui->gb_Settings->setChecked(false);
|
||||
ui->gb_MessageTo->setChecked(false);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -397,6 +401,7 @@ namespace BlackGui
|
||||
if (w) { return w; }
|
||||
|
||||
const QString tabName = callsign.asString();
|
||||
const QString style = this->getStyleSheet();
|
||||
const bool supervisor = callsign.isSupervisorCallsign();
|
||||
QWidget *newTabWidget = new QWidget(this);
|
||||
newTabWidget->setObjectName("Tab widget " + tabName);
|
||||
@@ -412,6 +417,7 @@ namespace BlackGui
|
||||
newTabWidget->setLayout(layout);
|
||||
textEdit->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
textEdit->setProperty("supervisormsg", supervisor);
|
||||
textEdit->setStyleSheetForContent(style);
|
||||
|
||||
const int index = ui->tw_TextMessages->addTab(newTabWidget, tabName);
|
||||
QToolButton *closeButtonInTab = new QToolButton(newTabWidget);
|
||||
|
||||
@@ -31,12 +31,6 @@
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QTabWidget" name="tw_TextMessages">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
</property>
|
||||
@@ -62,12 +56,6 @@
|
||||
</property>
|
||||
<item>
|
||||
<widget class="BlackGui::Views::CTextMessageView" name="tvp_TextMessagesAll">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
|
||||
Reference in New Issue
Block a user