mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-01-17 22:38:33 +01:00
Fix compilation on windows and linux
This commit is contained in:
parent
7cb4540c8f
commit
9da87be6a8
@ -23,12 +23,13 @@ THE SOFTWARE.
|
||||
|
||||
#include "qsearchfield.h"
|
||||
|
||||
#include <QLineEdit>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
#include "widgets/searchlineedit/SearchLineEdit.h"
|
||||
#include "utils/TomahawkUtilsGui.h"
|
||||
|
||||
#include <QLineEdit>
|
||||
#include <QVBoxLayout>
|
||||
#include <QEvent>
|
||||
|
||||
class DLLEXPORT QSearchFieldPrivate : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
@ -143,6 +144,24 @@ void QSearchField::setMenu(QMenu *menu)
|
||||
//FIXME nop
|
||||
}
|
||||
|
||||
void QSearchField::popupMenu()
|
||||
{
|
||||
// noop
|
||||
}
|
||||
|
||||
void QSearchField::changeEvent(QEvent* event)
|
||||
{
|
||||
if (event->type() == QEvent::EnabledChange) {
|
||||
Q_ASSERT(pimpl);
|
||||
if (!pimpl)
|
||||
return;
|
||||
|
||||
const bool enabled = isEnabled();
|
||||
pimpl->lineEdit->setEnabled(enabled);
|
||||
}
|
||||
QWidget::changeEvent(event);
|
||||
}
|
||||
|
||||
void QSearchField::resizeEvent(QResizeEvent* e)
|
||||
{
|
||||
QWidget::resizeEvent(e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user