]> git.lyx.org Git - features.git/commitdiff
GuiLine.cpp: set default values
authorUwe Stöhr <uwestoehr@web.de>
Sat, 11 Sep 2010 16:19:24 +0000 (16:19 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Sat, 11 Sep 2010 16:19:24 +0000 (16:19 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35343 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiLine.cpp

index bfa8ae5208fc48bc9aca41b3d759549009209496..b4f904a169163a48977d5ab37e89a7f6806aa50e 100644 (file)
@@ -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;
 }