- The layout combox box has now a maximum number of 30 visible items. In the future it would be better to calculate the optimal value based on the work area height.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13491 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-03-24 20:53:40 +00:00
parent 6b354a2230
commit 299a19c3c0

View File

@ -84,6 +84,7 @@ QLayoutBox::QLayoutBox(QToolBar * toolbar, QtView & owner)
combo_->setSizeAdjustPolicy(QComboBox::AdjustToContents);
combo_->setFocusPolicy(Qt::ClickFocus);
combo_->setMinimumWidth(combo_->sizeHint().width());
combo_->setMaxVisibleItems(30);
QObject::connect(combo_, SIGNAL(activated(const QString &)),
this, SLOT(selected(const QString &)));