Layout tweaking

This commit is contained in:
Juergen Spitzmueller 2019-04-19 11:27:54 +02:00
parent a8947c3099
commit 2fa68abd00
2 changed files with 104 additions and 86 deletions

View File

@ -58,8 +58,13 @@ void GuiBibitem::paramsToDialog(Inset const * inset)
allAuthorsED->setHidden(false);
allAuthorsLA->setHidden(false);
labelLA->setText(qt_("Author &Names:"));
labelLA->setMaximumWidth(labelLA->sizeHint().width());
labelED->setToolTip(qt_("Insert the author name(s) for the author-year reference here. "
"If you use an abbreviated list (with 'et al.'), the full list can go below."));
allAuthorsLA->setText(qt_("A&ll Author Names:"));
allAuthorsLA->setMaximumWidth(allAuthorsLA->sizeHint().width());
literalCB->setToolTip(qt_("Pass content of the `Author', 'Year' and 'All Authors' fields literally to LaTeX. "
"Check this if you want to enter LaTeX code."));
int const i = label.lastIndexOf("(");
int const j = label.lastIndexOf(")");
if (i != -1 && j != -1 && i < j) {
@ -79,9 +84,14 @@ void GuiBibitem::paramsToDialog(Inset const * inset)
yearLA->setHidden(true);
allAuthorsED->setHidden(true);
allAuthorsLA->setHidden(true);
allAuthorsLA->setText(qt_("&Label:"));
allAuthorsLA->setMaximumWidth(allAuthorsLA->sizeHint().width());
labelLA->setText(qt_("&Label:"));
labelLA->setMaximumWidth(labelLA->sizeHint().width());
labelED->setToolTip(qt_("The label as it appears in the document"));
labelED->setText(label);
literalCB->setToolTip(qt_("Pass content of the `Label' field literally to LaTeX. "
"Check this if you want to enter LaTeX code."));
}
}

View File

@ -6,22 +6,19 @@
<rect>
<x>0</x>
<y>0</y>
<width>467</width>
<height>170</height>
<width>503</width>
<height>168</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string/>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0" rowspan="2" colspan="2">
<widget class="QLabel" name="label">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="1" column="1">
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="keyLA">
@ -119,9 +116,7 @@
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="1">
<item row="3" column="2">
<widget class="QCheckBox" name="literalCB">
<property name="toolTip">
<string>Pass content of the `Label' field literally to LaTeX. Check this if you want to enter LaTeX code.</string>
@ -131,6 +126,19 @@
</property>
</widget>
</item>
<item row="4" column="2">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<includes>