31 #include "ui_findnotification.h"
43 setFocusProxy (Ui_->Pattern_);
53 Ui_->Pattern_->setText (text);
58 return Ui_->Pattern_->text ();
63 QString ss = QString (
"QLineEdit {"
64 "background-color:rgb(");
70 Ui_->Pattern_->setStyleSheet (ss);
75 Ui_->Pattern_->setFocus ();
81 if (Ui_->MatchCase_->checkState () == Qt::Checked)
83 if (Ui_->WrapAround_->checkState () == Qt::Checked)
106 void FindNotification::on_Pattern__textChanged (
const QString& newText)
108 Ui_->FindButton_->setEnabled (!newText.isEmpty ());
111 void FindNotification::on_FindButton__released ()
114 if (Ui_->SearchBackwards_->checkState () == Qt::Checked)
120 void FindNotification::reject ()
122 Ui_->Pattern_->clear ();
void SetText(const QString &text)
Sets the text in the find field.
void findPrevious()
Search for the previous occurrence of the current search.
void SetSuccessful(bool successful)
Updates the widget to show whether the search has been successful.
QString GetText() const
Returns the currently entered text in the find field.
virtual void handleNext(const QString &text, FindFlags flags)=0
Called each time the user requests a search.
void findNext()
Search for the next occurrence of the current search.
FindFlags GetFlags() const
Returns the current find flags except the direction.
A horizontal bar with typical widgets for text search.
FindNotification(QWidget *)
Creates the search widget and embeds into parent layout.
void Focus()
Sets the focus to the search edit field.