mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
GuiLine.cpp: set default values
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35343 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2582cc24ab
commit
cfe3bdbe30
@ -59,9 +59,12 @@ GuiLine::GuiLine(QWidget * parent) : InsetParamsWidget(parent)
|
||||
WidthLE->setValidator(unsignedGlueLengthValidator(WidthLE));
|
||||
HeightLE->setValidator(unsignedGlueLengthValidator(HeightLE));
|
||||
|
||||
OffsetLE->setText("0");
|
||||
OffsetLE->setText("0.5");
|
||||
OffsetUnitCO->setCurrentItem(Length::EX);
|
||||
WidthLE->setText("100");
|
||||
HeightLE->setText("0.5");
|
||||
WidthUnitCO->setCurrentItem(Length::PCW);
|
||||
HeightLE->setText("1");
|
||||
HeightUnitCO->setCurrentItem(Length::PT);
|
||||
setFocusProxy(WidthLE);
|
||||
}
|
||||
|
||||
@ -106,7 +109,6 @@ bool GuiLine::checkWidgets() const
|
||||
// FIXME: this should be handled in unsignedGlueLengthValidator!
|
||||
if (HeightLE->text().startsWith('-'))
|
||||
return false;
|
||||
// FIXME: Is there something else to check?
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user