mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-26 15:25:04 +02:00
fixes for linux
This commit is contained in:
@@ -180,7 +180,7 @@ IF( APPLE )
|
|||||||
SET( tomahawkHeaders ${tomahawkHeaders} ${SPARKLE}/Headers )
|
SET( tomahawkHeaders ${tomahawkHeaders} ${SPARKLE}/Headers )
|
||||||
ENDIF(HAVE_SPARKLE)
|
ENDIF(HAVE_SPARKLE)
|
||||||
ELSE( APPLE )
|
ELSE( APPLE )
|
||||||
SET( tomahawkSources ${tomahawkSources} mac/tomahawkapp_mac.mm mac/macshortcuthandler.cpp Qocoa/qsearchfield.mm )
|
SET( tomahawkSources ${tomahawkSources} Qocoa/qsearchfield.cpp )
|
||||||
ENDIF( APPLE )
|
ENDIF( APPLE )
|
||||||
|
|
||||||
IF(GLOOX_FOUND)
|
IF(GLOOX_FOUND)
|
||||||
|
@@ -48,10 +48,13 @@ QSearchField::QSearchField(QWidget *parent) : QWidget(parent)
|
|||||||
|
|
||||||
QVBoxLayout *layout = new QVBoxLayout(this);
|
QVBoxLayout *layout = new QVBoxLayout(this);
|
||||||
layout->addWidget(lineEdit);
|
layout->addWidget(lineEdit);
|
||||||
// TomahawkUtils::unmarginLayout(layout);
|
TomahawkUtils::unmarginLayout(layout);
|
||||||
|
setContentsMargins(0, 0, 0, 0);
|
||||||
|
|
||||||
lineEdit->setStyleSheet( "QLineEdit { border: 1px solid gray; border-radius: 6px; margin-right: 2px; }" );
|
lineEdit->setStyleSheet( "QLineEdit { border: 1px solid gray; border-radius: 6px; margin-right: 2px; }" );
|
||||||
lineEdit->setContentsMargins(0, 0, 0, 0);
|
lineEdit->setContentsMargins(0, 0, 0, 0);
|
||||||
|
lineEdit->setMinimumHeight(27);
|
||||||
|
setFixedHeight(27);
|
||||||
}
|
}
|
||||||
|
|
||||||
void QSearchField::setText(const QString &text)
|
void QSearchField::setText(const QString &text)
|
||||||
@@ -59,9 +62,9 @@ void QSearchField::setText(const QString &text)
|
|||||||
pimpl->lineEdit->setText(text);
|
pimpl->lineEdit->setText(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
void QSearchField::setInputHint(const QString& text)
|
void QSearchField::setPlaceholderText(const QString& text)
|
||||||
{
|
{
|
||||||
pimpl->lineEdit->setPlaceholderText( text );
|
pimpl->lineEdit->setInactiveText( text );
|
||||||
}
|
}
|
||||||
|
|
||||||
void QSearchField::clear()
|
void QSearchField::clear()
|
||||||
|
Reference in New Issue
Block a user