Fix bitview in Signal Editor on MacOS
MacOS didn't scale the bitfield widget quite the way it was supposed to. The layout has been redesigned to prevent this issue.
This commit is contained in:
@@ -470,7 +470,7 @@ void DBCSignalEditor::fillSignalForm(DBC_SIGNAL *sig)
|
|||||||
inhibitMsgProc = true;
|
inhibitMsgProc = true;
|
||||||
|
|
||||||
if (sig == nullptr) {
|
if (sig == nullptr) {
|
||||||
ui->groupBox->setEnabled(false);
|
//ui->groupBox->setEnabled(false);
|
||||||
ui->txtName->setText("");
|
ui->txtName->setText("");
|
||||||
ui->txtBias->setText("");
|
ui->txtBias->setText("");
|
||||||
ui->txtBitLength->setText("");
|
ui->txtBitLength->setText("");
|
||||||
@@ -491,7 +491,7 @@ void DBCSignalEditor::fillSignalForm(DBC_SIGNAL *sig)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* we have a signal */
|
/* we have a signal */
|
||||||
ui->groupBox->setEnabled(true);
|
//ui->groupBox->setEnabled(true);
|
||||||
|
|
||||||
ui->txtName->setText(sig->name);
|
ui->txtName->setText(sig->name);
|
||||||
ui->txtBias->setText(QString::number(sig->bias));
|
ui->txtBias->setText(QString::number(sig->bias));
|
||||||
|
|||||||
+7
-16
@@ -17,29 +17,22 @@
|
|||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout" stretch="2,1">
|
<layout class="QHBoxLayout" name="horizontalLayout" stretch="2,1">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupBox">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
<property name="title">
|
<item>
|
||||||
<string>Signal Parameters</string>
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||||
</property>
|
<item>
|
||||||
<layout class="QFormLayout" name="formLayout">
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Name:</string>
|
<string>Name:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item>
|
||||||
<widget class="QLineEdit" name="txtName"/>
|
<widget class="QLineEdit" name="txtName"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
</layout>
|
||||||
<widget class="QLabel" name="label_3">
|
|
||||||
<property name="text">
|
|
||||||
<string>Start Bit:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item>
|
||||||
<widget class="CANDataGrid" name="bitfield" native="true">
|
<widget class="CANDataGrid" name="bitfield" native="true">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||||
@@ -56,7 +49,6 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QFormLayout" name="formLayout_2">
|
<layout class="QFormLayout" name="formLayout_2">
|
||||||
@@ -258,7 +250,6 @@
|
|||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<tabstops>
|
<tabstops>
|
||||||
<tabstop>txtName</tabstop>
|
|
||||||
<tabstop>txtBitLength</tabstop>
|
<tabstop>txtBitLength</tabstop>
|
||||||
<tabstop>cbIntelFormat</tabstop>
|
<tabstop>cbIntelFormat</tabstop>
|
||||||
<tabstop>comboType</tabstop>
|
<tabstop>comboType</tabstop>
|
||||||
|
|||||||
Reference in New Issue
Block a user