Leuven, E. a écrit :
hi guys,

just compiled the qt4 frontend and am surprised how well it works. great work abdul!

Thanks :-)
I am curious of how well it works for you. Do you see the same problem as Georg? (slowness and Qt errors about painting in the console)

i made some little changes over here for the followings things:

- entries in the combobox in the toolbar are not legible
- same for entries in the listview in the preferences dialog
- the color is not updated after changing it (i always change the murky pink color of lyx's background to white)

don't know whether these are the correct changes (it seems that the sizehint is a bit to generous for the items in the preferences dialog) but little patch attached in case...

These changes look very good Edwin, thanks! The pref dialog size change was in my todo list but I eventually forgot about that. I guess you have commit RW access, so please commit your patch.

Abdel.

PS: That's abdel by the way as in abdelrazak, abdul is another name...



good night, edwin




------------------------------------------------------------------------

Index: QLToolbar.C
===================================================================
--- QLToolbar.C (revision 13383)
+++ QLToolbar.C (working copy)
@@ -80,9 +80,9 @@
 QLayoutBox::QLayoutBox(QToolBar * toolbar, QtView & owner)
        : owner_(owner)
 {
-       QSizePolicy p(QSizePolicy::Minimum, QSizePolicy::Fixed);
+//     QSizePolicy p(QSizePolicy::Minimum, QSizePolicy::Fixed);
        combo_ = new QComboBox;
-       combo_->setSizePolicy(p);
+       combo_->setSizeAdjustPolicy(QComboBox::AdjustToContents);
        combo_->setFocusPolicy(Qt::ClickFocus);
        combo_->setMinimumWidth(combo_->sizeHint().width());
Index: QPrefsDialog.C
===================================================================
--- QPrefsDialog.C      (revision 13383)
+++ QPrefsDialog.C      (working copy)
@@ -895,7 +895,7 @@
        QColor c(QColorDialog::getColor(ci->color(), qApp->focusWidget() ? 
qApp->focusWidget() : qApp->mainWidget()));
        if (c.isValid()) {
                ci->color(c);
-               lb->update();
+               lb->triggerUpdate(false);
                change_adaptor();
        }
 }
Index: panelstack.C
===================================================================
--- panelstack.C        (revision 13383)
+++ panelstack.C        (working copy)
@@ -81,6 +81,8 @@
        }
panel_map_[n] = item;
+
+       list_->setFixedWidth(list_->sizeHint().width());
 /*
        item->setFlags(false);
        item->setOpen(true);

Reply via email to