From cfe3bdbe30de9d0f69e3b5623151fe75abce0ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Sat, 11 Sep 2010 16:19:24 +0000 Subject: [PATCH] GuiLine.cpp: set default values git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35343 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiLine.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/frontends/qt4/GuiLine.cpp b/src/frontends/qt4/GuiLine.cpp index bfa8ae5208..b4f904a169 100644 --- a/src/frontends/qt4/GuiLine.cpp +++ b/src/frontends/qt4/GuiLine.cpp @@ -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; }