* GuiBoc.{cpp,h}:

- compare against combo box data instead of l7n string.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34709 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2010-06-26 07:57:54 +00:00
parent ecfe108cde
commit 3e2ca552af
2 changed files with 4 additions and 3 deletions

View File

@ -111,9 +111,10 @@ GuiBox::GuiBox(QWidget * parent) : InsetParamsWidget(parent)
} }
void GuiBox::on_innerBoxCO_activated(QString const & str) void GuiBox::on_innerBoxCO_activated(int index)
{ {
bool const ibox = (str != qt_("None")); bool const ibox =
(innerBoxCO->itemData(index).toString() != "none");
QString const outer = QString const outer =
typeCO->itemData(typeCO->currentIndex()).toString(); typeCO->itemData(typeCO->currentIndex()).toString();
valignCO->setEnabled(ibox); valignCO->setEnabled(ibox);

View File

@ -28,7 +28,7 @@ public:
GuiBox(QWidget * parent = 0); GuiBox(QWidget * parent = 0);
private Q_SLOTS: private Q_SLOTS:
void on_innerBoxCO_activated(QString const &); void on_innerBoxCO_activated(int);
void on_typeCO_activated(int); void on_typeCO_activated(int);
void initDialog(); void initDialog();
void on_heightCB_stateChanged(int state); void on_heightCB_stateChanged(int state);