mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-02-23 19:40:07 +01:00
fixes for linux
This commit is contained in:
parent
bc2ea013ac
commit
5fd7505f7f
@ -180,7 +180,7 @@ IF( APPLE )
|
||||
SET( tomahawkHeaders ${tomahawkHeaders} ${SPARKLE}/Headers )
|
||||
ENDIF(HAVE_SPARKLE)
|
||||
ELSE( APPLE )
|
||||
SET( tomahawkSources ${tomahawkSources} mac/tomahawkapp_mac.mm mac/macshortcuthandler.cpp Qocoa/qsearchfield.mm )
|
||||
SET( tomahawkSources ${tomahawkSources} Qocoa/qsearchfield.cpp )
|
||||
ENDIF( APPLE )
|
||||
|
||||
IF(GLOOX_FOUND)
|
||||
|
@ -48,10 +48,13 @@ QSearchField::QSearchField(QWidget *parent) : QWidget(parent)
|
||||
|
||||
QVBoxLayout *layout = new QVBoxLayout(this);
|
||||
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->setContentsMargins(0, 0, 0, 0);
|
||||
lineEdit->setMinimumHeight(27);
|
||||
setFixedHeight(27);
|
||||
}
|
||||
|
||||
void QSearchField::setText(const QString &text)
|
||||
@ -59,9 +62,9 @@ void QSearchField::setText(const QString &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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user