From 840a9a6d0e573d6a88cce6e511b6214482c904b7 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 17 Aug 2006 09:02:46 +0000 Subject: [PATCH] get rid of QT3_SUPPORT and some cleanup git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14769 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/QVSpace.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontends/qt4/QVSpace.C b/src/frontends/qt4/QVSpace.C index e8e63d6226..7faa734115 100644 --- a/src/frontends/qt4/QVSpace.C +++ b/src/frontends/qt4/QVSpace.C @@ -71,7 +71,7 @@ void setWidgetsFromVSpace(VSpace const & space, item = 5; break; } - spacing->setCurrentItem(item); + spacing->setCurrentIndex(item); keep->setChecked(space.keep()); LyXLength::UNIT default_unit = @@ -162,12 +162,12 @@ void QVSpace::apply() // spacing // If a vspace choice is "Length" but there's no text in // the input field, do not insert a vspace at all. - if (dialog_->spacingCO->currentItem() == 5 + if (dialog_->spacingCO->currentIndex() == 5 && dialog_->valueLE->text().isEmpty()) return; VSpace const space = - setVSpaceFromWidgets(dialog_->spacingCO->currentItem(), + setVSpaceFromWidgets(dialog_->spacingCO->currentIndex(), dialog_->valueLE, dialog_->unitCO, dialog_->keepCB->isChecked());