hide constructor from string, that uses KComponentData, if Qt version is too recent

wilder-pre-rebase
Hugo Pereira Da Costa 12 years ago
parent dffdb19951
commit a525bcd387
  1. 2
      kstyle/breezehelper.cpp
  2. 13
      kstyle/breezehelper.h

@ -43,10 +43,12 @@ namespace Breeze
{ init(); }
//____________________________________________________________________
#if QT_VERSION < 0x050000
Helper::Helper( const QByteArray& name ):
_componentData( name, 0, KComponentData::SkipMainComponentRegistration ),
_config( _componentData.config() )
{ init(); }
#endif
//____________________________________________________________________
KSharedConfig::Ptr Helper::config() const

@ -23,9 +23,12 @@
#include "breezeanimationdata.h"
#include <KColorScheme>
#include <KComponentData>
#include <KSharedConfig>
#if QT_VERSION < 0x050000
#include <KComponentData>
#endif
#include <QPainterPath>
#include <QWidget>
@ -46,8 +49,10 @@ namespace Breeze
//! constructor
explicit Helper( KSharedConfig::Ptr );
#if QT_VERSION < 0x050000
//! constructor
explicit Helper( const QByteArray& );
#endif
//! destructor
virtual ~Helper()
@ -249,8 +254,12 @@ namespace Breeze
private:
//! configuration
#if QT_VERSION < 0x050000
//! component data
KComponentData _componentData;
#endif
//! configuration
KSharedConfig::Ptr _config;
//!@name brushes

Loading…
Cancel
Save