Revert "Typedef QSearchField to old LineEdit on non Mac, and make it compatible with QSearchField"
This reverts commit 59517f5b4e
.
Update issue 3047
Status: Accepted
Breaks the mac build. We should do a proper fix for this.
This commit is contained in:
parent
497928d693
commit
6b87318710
|
@ -3,18 +3,6 @@
|
|||
|
||||
#include <QWidget>
|
||||
#include <QPointer>
|
||||
#include <QtGlobal>
|
||||
|
||||
#ifndef Q_OS_MAC
|
||||
|
||||
// Currently the old LineEdit is better than the current qsearchfield_nonmac
|
||||
// IMHO: add this (ugly) hack to force non Mac systems to use the old LineEdit.
|
||||
// TODO: Fix this in a better way (improve qsearchfield_nonmac definitely?)
|
||||
|
||||
class LineEdit;
|
||||
typedef LineEdit QSearchField;
|
||||
|
||||
#else // Q_OS_MAC
|
||||
|
||||
class QSearchFieldPrivate;
|
||||
class QSearchField : public QWidget
|
||||
|
@ -48,6 +36,4 @@ private:
|
|||
Q_PROPERTY(QString placeholderText READ placeholderText WRITE setPlaceholderText);
|
||||
};
|
||||
|
||||
#endif // Q_OS_MAC
|
||||
|
||||
#endif // QSEARCHFIELD_H
|
||||
|
|
|
@ -32,9 +32,6 @@ THE SOFTWARE.
|
|||
#include <QDir>
|
||||
#include <QDebug>
|
||||
|
||||
#if 0
|
||||
// All the code below isn't used currently (see qsearchfield.h)
|
||||
|
||||
class QSearchFieldPrivate : public QObject
|
||||
{
|
||||
public:
|
||||
|
@ -172,5 +169,3 @@ bool QSearchField::eventFilter(QObject *o, QEvent *e)
|
|||
}
|
||||
return QWidget::eventFilter(o, e);
|
||||
}
|
||||
|
||||
#endif // 0
|
||||
|
|
|
@ -22,8 +22,6 @@
|
|||
|
||||
#include <QWidget>
|
||||
|
||||
#include "widgets/lineedit.h"
|
||||
|
||||
class LineEditInterface;
|
||||
class Ui_IcecastFilterWidget;
|
||||
|
||||
|
|
|
@ -20,8 +20,6 @@
|
|||
|
||||
#include <QWidget>
|
||||
|
||||
#include "widgets/lineedit.h"
|
||||
|
||||
class InternetService;
|
||||
class DidYouMean;
|
||||
class Ui_SearchBoxWidget;
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
#include "librarymodel.h"
|
||||
#include "widgets/lineedit.h"
|
||||
|
||||
class GroupByDialog;
|
||||
class SettingsDialog;
|
||||
|
|
|
@ -21,8 +21,6 @@
|
|||
#include <QWidget>
|
||||
#include <QSettings>
|
||||
|
||||
#include "widgets/lineedit.h"
|
||||
|
||||
class Ui_PlaylistContainer;
|
||||
|
||||
class DidYouMean;
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#include "core/song.h"
|
||||
#include "covers/albumcoverloaderoptions.h"
|
||||
#include "covers/coversearchstatistics.h"
|
||||
#include "widgets/lineedit.h"
|
||||
|
||||
class AlbumCoverChoiceController;
|
||||
class AlbumCoverFetcher;
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
#include "covers/albumcoverfetcher.h"
|
||||
#include "covers/albumcoverloaderoptions.h"
|
||||
#include "widgets/lineedit.h"
|
||||
|
||||
#include <QDialog>
|
||||
#include <QIcon>
|
||||
|
|
|
@ -104,8 +104,6 @@ public:
|
|||
QString text() const { return QLineEdit::text(); }
|
||||
void set_text(const QString& text) { QLineEdit::setText(text); }
|
||||
void set_enabled(bool enabled) { QLineEdit::setEnabled(enabled); }
|
||||
void clear() { LineEditInterface::clear(); }
|
||||
void setPlaceholderText(const QString& text) { set_hint(text); }
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent*);
|
||||
|
|
Loading…
Reference in New Issue