#include "FancyLineEdit.h"
+#if QT_VERSION >= 0x040600
+
#include <QtCore/QEvent>
#include <QtCore/QDebug>
#include <QtCore/QString>
void IconButton::paintEvent(QPaintEvent *)
{
QPainter painter(this);
- // Note isDown should really use the active state but in most styles
- // this has no proper feedback
- QIcon::Mode state = QIcon::Disabled;
- if (isEnabled())
- state = isDown() ? QIcon::Selected : QIcon::Normal;
QRect pixmapRect = QRect(0, 0, m_pixmap.width(), m_pixmap.height());
pixmapRect.moveCenter(rect().center());
}
+#endif // QT_VERSION >= 0x040600
+
#include "moc_FancyLineEdit.cpp"