Abdelrazak Younes a écrit :
Abdelrazak Younes a écrit :
Helge Hafting a écrit :
My only complaint now is that the paragraph style pulldown now
have a scrollbar - before I got _all_ styles visible when pulling it
down.
That is big timesaver for any paragraph type where I don't
remember the keyboard command.
You mean the layout combox box at the top left right? Well if that's
your only complaint we can surely do something about that.
This patch fixes the maximum number of visible item to 25 (so that it
fits in a 800 by 600 screen). I am going to commit it unless I hear
complaints about that.
It's in with 30 instead of 25. In the future it would be better to
calculate the optimal value based on the work area height.
Abdel.
IMHO, this is a real usability improvement but I
don't understand how you qt3 version has it. Here it has the same
scrollbar and 10 visible items.
Abdel.
------------------------------------------------------------------------
Index: QLToolbar.C
===================================================================
--- QLToolbar.C (revision 13488)
+++ QLToolbar.C (working copy)
@@ -84,6 +84,7 @@
combo_->setSizeAdjustPolicy(QComboBox::AdjustToContents);
combo_->setFocusPolicy(Qt::ClickFocus);
combo_->setMinimumWidth(combo_->sizeHint().width());
+ combo_->setMaxVisibleItems(25);
QObject::connect(combo_, SIGNAL(activated(const QString &)),
this, SLOT(selected(const QString &)));