fix qt4 build

due to the removal of explicit moc includes the qt4 build broke as the
plugin helpers were multi-defined (not that I knew why). easy way out is
moving Q_EXPORT_PLUGIN2 from the .h to the .cpp as recommended by the qt
docs anyway.

> There should be exactly one occurrence of this macro in the source code
> for a Qt plugin, and it should be used where the implementation is
> written rather than in a header file.

http://build.kde.org/job/breeze_master/82/console

CCMAIL: kfunk@kde.org
wilder-pre-rebase
Harald Sitter 11 years ago
parent d827875638
commit 1e911bc695
  1. 4
      kstyle/breezestyleplugin.cpp
  2. 4
      kstyle/breezestyleplugin.h

@ -23,6 +23,10 @@
#include <QApplication>
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2( breeze-qt, Breeze::StylePlugin )
#endif
namespace Breeze
{

@ -54,8 +54,4 @@ namespace Breeze
}
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2( breeze-qt, Breeze::StylePlugin )
#endif
#endif

Loading…
Cancel
Save