|
Quark
0.1
|
A widget that provides a UI for doing forward and backward searches in a document. More...
#include <FindPanel.h++>

Public Slots | |
| void | setEnabled (bool enabled) |
| Toggles the enabled state of the panel. More... | |
| void | setFindStatus (bool found) |
| Toggles the find status to indicate whether the search text was found or not. More... | |
| void | focusTextField () |
| Requests keyboard focus for the input field. More... | |
| void | selectText () |
| Selects the text in the input field. More... | |
Signals | |
| void | find (const QString &text, bool caseSensitive, bool forward) |
| Emitted when the user has pressed Return/Enter in the input field or clicked one of the find buttons. More... | |
| void | findTextChanged (const QString &text) |
| Emitted when the user has modified the text in the input field. More... | |
Public Member Functions | |
| FindPanel (QWidget *parent=NULL) | |
| Constructor. More... | |
| virtual | ~FindPanel () |
| Destructor. More... | |
A widget that provides a UI for doing forward and backward searches in a document.
The layout consists of an input field, "find next" and "find previous" buttons, and a "case insensitive" checkbox.
| FindPanel | ( | QWidget * | parent = NULL | ) |
Constructor.
|
virtual |
Destructor.
|
signal |
Emitted when the user has pressed Return/Enter in the input field or clicked one of the find buttons.
| text | The text to search for. |
| caseSensitive | Whether the search should be case sensitive. |
| forward | A flag indicating whether the search should be forward or backward from the current position. |
|
signal |
Emitted when the user has modified the text in the input field.
| text | The new text. |
|
slot |
Requests keyboard focus for the input field.
|
slot |
Selects the text in the input field.
|
slot |
Toggles the enabled state of the panel.
|
slot |
Toggles the find status to indicate whether the search text was found or not.
| found | The find status. If false, the background color of the input field changes to a shade of red. |