[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Small fix for Qt
From:       mosfet <mosfet () mandrakesoft ! com>
Date:       2000-10-13 3:40:38
[Download RAW message or body]

Yep, your right :) Either one would be fine for me, this is better.

Michael Matz wrote:
> 
> Hi,
> 
> On Thu, 12 Oct 2000, mosfet wrote:
> > In order to properly handle the little arrow thingy in the toolbars for
> > some styles I need to be able to detect it when it's allocated and
> > reimplement it's bg painting. Regretfully, it doesn't use a name and I
> > can't seem to use inherits()... not sure why but it's popping up as a
> 
> This is because QArrowWidget doesn't use the Q_OBJECT macro, which really
> should be done in all QObject descendants.
> 
> Ciao,
> Michael.
> --
> Index: qtoolbar.cpp
> ===================================================================
> RCS file: /home/kde/qt-copy/src/widgets/qtoolbar.cpp,v
> retrieving revision 1.19
> diff -u -r1.19 qtoolbar.cpp
> --- qtoolbar.cpp        2000/10/06 19:46:56     1.19
> +++ qtoolbar.cpp        2000/10/13 03:30:37
> @@ -54,6 +54,7 @@
> 
>  class QArrowWidget : public QWidget
>  {
> +    Q_OBJECT
>  public:
>      QArrowWidget( Qt::Orientation o, QWidget *parent ) : QWidget( parent
> ), orient( o ) {}

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic