On Jun 13, 2007, at 8:39 AM, Leuven, E. wrote:
> i would like the menu to close after clicking on a symbol when it
is not
> torn off
>
> when the menu is torn off i'd like it close only when clicking on
the
> close button
perhaps some more can try the attached?
it work flawlessly for me
Compiled OK.
Make OK
src/lyx OK
Opened document OK
Greek Menu displayed OK
No tear-off functionality that I could discover.
I didn't check functionality beyond that.
Is there some test I can do for you?
#include <QMouseEvent>
added to iconpalette.cpp
In the following extract from your diff file, should
"+IconPalette::IconPalette(QWidget * parent)" have a "+"?
This is an existing line; I do these changes by hand, hence don't
know what an automated system might do.
+void IconPalette::updateParent()
+{
+ bool enable = false;
+ for (int i = 0; i < actions_.size(); ++i)
+ if (actions_.at(i)->isEnabled()) {
+ enable = true;
+ break;
+ }
+ // signal
+ enabled(enable);
+}
+
+#else // QT_VERSION >= 0x040200
+
+IconPalette::IconPalette(QWidget * parent)
: QWidget(parent, Qt::Popup)
{
layout_ = new QGridLayout(this);
Roger