class FancyLineEditPrivate;
+#if QT_VERSION >= 0x040600
class IconButton: public QAbstractButton
{
Q_OBJECT
bool m_autoHide;
QPixmap m_pixmap;
};
-
+#endif
/* A line edit with an embedded pixmap on one side that is connected to
* a menu. Additionally, it can display a grayed hintText (like "Type Here to")
public:
enum Side {Left = 0, Right = 1};
+Q_SIGNALS:
+ void buttonClicked(Side side);
+ void leftButtonClicked();
+ void rightButtonClicked();
+
+#if QT_VERSION >= 0x040600
+public:
explicit FancyLineEdit(QWidget *parent = 0);
~FancyLineEdit();
void setAutoHideButton(Side side, bool h);
bool hasAutoHideButton(Side side) const;
-Q_SIGNALS:
- void buttonClicked(Side side);
- void leftButtonClicked();
- void rightButtonClicked();
-
private Q_SLOTS:
void checkButtons(const QString &);
void iconClicked();
FancyLineEditPrivate *m_d;
QString m_oldText;
+#else
+public:
+ explicit FancyLineEdit(QWidget *parent = 0)
+ : QLineEdit(parent)
+ {}
+#endif // QT_VERSION >= 0x040600*/
};
}