Utils: Fix colorbutton slot warning.

Fix up e8cc99632c.
This commit is contained in:
Friedemann Kleint
2011-05-16 09:40:29 +02:00
parent 68dd1284f7
commit f5a37db6c4

View File

@@ -45,7 +45,13 @@ class QtColorButtonPrivate: public QObject
Q_OBJECT Q_OBJECT
QtColorButton *q_ptr; QtColorButton *q_ptr;
Q_DECLARE_PUBLIC(QtColorButton) Q_DECLARE_PUBLIC(QtColorButton)
public slots:
void slotEditColor();
public: public:
QColor shownColor() const;
QPixmap generatePixmap() const;
QColor m_color; QColor m_color;
#ifndef QT_NO_DRAGANDDROP #ifndef QT_NO_DRAGANDDROP
QColor m_dragColor; QColor m_dragColor;
@@ -54,10 +60,6 @@ public:
#endif #endif
bool m_backgroundCheckered; bool m_backgroundCheckered;
bool m_alphaAllowed; bool m_alphaAllowed;
void slotEditColor();
QColor shownColor() const;
QPixmap generatePixmap() const;
}; };
void QtColorButtonPrivate::slotEditColor() void QtColorButtonPrivate::slotEditColor()
@@ -132,7 +134,7 @@ QtColorButton::QtColorButton(QWidget *parent)
setAcceptDrops(true); setAcceptDrops(true);
connect(this, SIGNAL(clicked()), this, SLOT(slotEditColor())); connect(this, SIGNAL(clicked()), d_ptr, SLOT(slotEditColor()));
setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred)); setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred));
} }