[Digikam-devel] Re: KCategoryDrawer and memory leak...
    Marcel Wiesweg 
    marcel.wiesweg at gmx.de
       
    Mon Nov  8 17:21:01 GMT 2010
    
    
  
> Marcel,
> 
> Why we use Q_DECLARE_PRIVATE() macro under imagedelegate.h ?
> 
> This macro is used only internally in Qt4 and is not documented :
> 
> http://www.qtcentre.org/threads/14928-Q_declare_private%28%29
> 
> Same for Q_D() macro of course used in imagedelegate.cpp...
Well we need the exact same functionality as this macro provides - syntactic 
sugar for a d-pointer shared by the subclass - so I used it and it works.
As you see it's used in nearly any Qt class, so I doubt they'll change it. If 
they do, we can define it ourselves.
    
    
More information about the Digikam-devel
mailing list