Reduced the moc abuse in qtcolorbutton

This commit is contained in:
Alessandro Portale
2011-05-13 18:29:28 +02:00
parent 86fc5fee08
commit e8cc99632c
2 changed files with 3 additions and 3 deletions

View File

@@ -40,8 +40,9 @@
namespace Utils {
class QtColorButtonPrivate
class QtColorButtonPrivate: public QObject
{
Q_OBJECT
QtColorButton *q_ptr;
Q_DECLARE_PUBLIC(QtColorButton)
public:
@@ -286,4 +287,4 @@ void QtColorButton::dropEvent(QDropEvent *event)
} // namespace Utils
#include "moc_qtcolorbutton.cpp"
#include "qtcolorbutton.moc"

View File

@@ -75,7 +75,6 @@ private:
class QtColorButtonPrivate *d_ptr;
friend class QtColorButtonPrivate;
Q_DISABLE_COPY(QtColorButton)
Q_PRIVATE_SLOT(d_ptr, void slotEditColor())
};
} // namespace Utils