mirror of
https://github.com/YACReader/yacreader
synced 2025-07-21 06:24:39 -04:00
Fix unarr detection on Linux systems that use qmake without pkg-config support
This commit is contained in:
40
custom_widgets/yacreader_search_line_edit.h
Normal file
40
custom_widgets/yacreader_search_line_edit.h
Normal file
@ -0,0 +1,40 @@
|
||||
#ifndef YACREADER_SEARCH_LINE_EDIT_H
|
||||
#define YACREADER_SEARCH_LINE_EDIT_H
|
||||
|
||||
#include <QLineEdit>
|
||||
#include <QCompleter>
|
||||
|
||||
#include "yacreader_global.h"
|
||||
|
||||
class QToolButton;
|
||||
class QLabel;
|
||||
|
||||
class YACReaderSearchLineEdit : public QLineEdit
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
YACReaderSearchLineEdit(QWidget *parent = 0);
|
||||
void clearText(); //no signal emited;
|
||||
const QString text();
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent *);
|
||||
|
||||
signals:
|
||||
void filterChanged(const YACReader::SearchModifiers, QString);
|
||||
|
||||
private slots:
|
||||
void updateCloseButton(const QString &text);
|
||||
void processText(const QString & text);
|
||||
|
||||
private:
|
||||
QToolButton *clearButton;
|
||||
QLabel * searchLabel;
|
||||
QCompleter * modifiersCompleter;
|
||||
QStringList modifiers;
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif // YACREADER_SEARCH_LINE_EDIT_H
|
Reference in New Issue
Block a user