mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
Fix compilation on windows and linux
This commit is contained in:
@@ -23,12 +23,13 @@ THE SOFTWARE.
|
|||||||
|
|
||||||
#include "qsearchfield.h"
|
#include "qsearchfield.h"
|
||||||
|
|
||||||
#include <QLineEdit>
|
|
||||||
#include <QVBoxLayout>
|
|
||||||
|
|
||||||
#include "widgets/searchlineedit/SearchLineEdit.h"
|
#include "widgets/searchlineedit/SearchLineEdit.h"
|
||||||
#include "utils/TomahawkUtilsGui.h"
|
#include "utils/TomahawkUtilsGui.h"
|
||||||
|
|
||||||
|
#include <QLineEdit>
|
||||||
|
#include <QVBoxLayout>
|
||||||
|
#include <QEvent>
|
||||||
|
|
||||||
class DLLEXPORT QSearchFieldPrivate : public QObject
|
class DLLEXPORT QSearchFieldPrivate : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@@ -143,6 +144,24 @@ void QSearchField::setMenu(QMenu *menu)
|
|||||||
//FIXME nop
|
//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)
|
void QSearchField::resizeEvent(QResizeEvent* e)
|
||||||
{
|
{
|
||||||
QWidget::resizeEvent(e);
|
QWidget::resizeEvent(e);
|
||||||
|
Reference in New Issue
Block a user