From 4c1c676e356a5f8c311fd000b878ee22e73fab96 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Mon, 17 Nov 2008 11:58:14 +0000 Subject: [PATCH] Fix some small Tabular UI glitches git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27604 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiTabular.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/frontends/qt4/GuiTabular.cpp b/src/frontends/qt4/GuiTabular.cpp index e59f42c957..67e7b1dd50 100644 --- a/src/frontends/qt4/GuiTabular.cpp +++ b/src/frontends/qt4/GuiTabular.cpp @@ -91,7 +91,7 @@ GuiTabular::GuiTabular(GuiView & lv) connect(lastfooterBorderBelowCB, SIGNAL(clicked()), this, SLOT(ltLastFooterBorderBelow_clicked())); connect(lastfooterNoContentsCB, SIGNAL(clicked()), this, SLOT(ltLastFooterEmpty_clicked())); connect(specialAlignmentED, SIGNAL(returnPressed()), this, SLOT(specialAlignment_changed())); - connect(widthED, SIGNAL(returnPressed()), this, SLOT(width_changed())); + connect(widthED, SIGNAL(editingFinished()), this, SLOT(width_changed())); connect(widthUnit, SIGNAL(selectionChanged(lyx::Length::UNIT)), this, SLOT(width_changed())); connect(closePB, SIGNAL(clicked()), this, SLOT(close_clicked())); connect(borders, SIGNAL(topSet(bool)), this, SLOT(topBorder_changed())); @@ -102,9 +102,8 @@ GuiTabular::GuiTabular(GuiView & lv) connect(rotateCellCB, SIGNAL(clicked()), this, SLOT(rotateCell())); connect(longTabularCB, SIGNAL(clicked()), this, SLOT(longTabular())); - bc().setPolicy(ButtonPolicy::NoRepeatedApplyReadOnlyPolicy); - bc().setCancel(closePB); - + bc().setPolicy(ButtonPolicy::IgnorantPolicy); + bc().addReadOnly(topspaceED); bc().addReadOnly(topspaceUnit); bc().addReadOnly(topspaceCO); @@ -751,11 +750,11 @@ void GuiTabular::updateContents() valign = 2; break; default: - valign = 1; + valign = 0; break; } if (pwidth.zero()) - valign = 1; + valign = 0; vAlignCB->setCurrentIndex(valign); hAlignCB->setEnabled(true); -- 2.39.5