#include <vlc_intf_strings.h>
-#if QT_VERSION < 0x040700
+#if !HAS_QT47
ClickLineEdit::ClickLineEdit( const QString &msg, QWidget *parent) : QLineEdit( parent )
{
void ClickLineEdit::paintEvent( QPaintEvent *pe )
{
QLineEdit::paintEvent( pe );
- if ( mDrawClickMsg == true && !hasFocus() ) {
+ if ( mDrawClickMsg && !hasFocus() ) {
QPainter p( this );
QPen tmp = p.pen();
p.setPen( palette().color( QPalette::Disabled, QPalette::Text ) );
void ClickLineEdit::focusInEvent( QFocusEvent *ev )
{
- if ( mDrawClickMsg == true ) {
+ if ( mDrawClickMsg ) {
mDrawClickMsg = false;
repaint();
}
}
#endif
+#ifndef Q_WS_MAC
SearchLineEdit::SearchLineEdit( QWidget *parent ) : QLineEdit( parent )
{
- clearButton = new QVLCFramelessButton( this );
+ clearButton = new QFramelessButton( this );
clearButton->setIcon( QIcon( ":/toolbar/clear" ) );
clearButton->setIconSize( QSize( 16, 16 ) );
clearButton->setCursor( Qt::ArrowCursor );
emit searchDelayedChanged( text() );
}
+#endif