blob: 6415ef28619822151f54b2b9e9de17a43e5bde1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#pragma once
#include "ui_searchwidget.h"
#include <QPalette>
#include <QWidget>
class QShowEvent;
class SearchWidget : public QWidget
{
Q_OBJECT
public:
SearchWidget(QWidget *parent=0);
void setFound(bool f);
void show();
signals:
void searchNext(const QString &str, Qt::CaseSensitivity cs = Qt::CaseInsensitive);
void searchPrev(const QString &str, Qt::CaseSensitivity cs = Qt::CaseInsensitive);
private slots:
void slotSearchNext();
void slotSearchPrev();
void slotCancel();
protected:
virtual bool eventFilter(QObject *object, QEvent* event);
virtual void showEvent(QShowEvent *event);
private:
Qt::CaseSensitivity caseSensitivity() const;
private:
Ui_SearchWidget m_ui;
QPalette m_origPalette;
};
|