On Thu, Jun 14, 2007 at 09:45:42AM +0200, Edwin Leuven wrote:
> Edwin Leuven wrote:
> >some people have complained the math panels cannot be torn-off (bugs 
> >3839 and 3840)
> >
> >the attached makes this work for QT_VERSION >= QT_VERSION_CHECK(4, 2, 0)
> >
> >perhaps people can give it a try?
> 
> the updated attached patch works for me on windows (qt 4.2.2) and linux 
> (debian unstable, qt 4.2.3)

> +#if QT_VERSION >= 0x040200
> +             IconPalette * panel = new IconPalette(&owner_);
> [...]
> +#if QT_VERSION >= 0x040200
> +             QMenu * m = new QMenu(tb);
> [...]
> +#if QT_VERSION >= QT_VERSION_CHECK(4, 2, 0)
> [...]
> +#if QT_VERSION >= QT_VERSION_CHECK(4, 2, 0)

Can't we have a uniform solution?

>  IconPalette::IconPalette(QWidget * parent)
> +     : QWidgetAction(parent), size_(QSize(22,22))

QSize(22, 22)

Fine otherwise.

Andre'

Reply via email to