Songbook-Client  0.7
This application is a manager of customguitar songbooks
 All Classes Files Functions Variables Enumerations Enumerator Pages
Public Slots | Public Member Functions
CSearchWidget Class Reference

CSearchWidget is a widget to perform search over a text editor. More...

#include <search-widget.hh>

List of all members.

Public Slots

void find ()

Public Member Functions

 CSearchWidget (QWidget *parent=0)
 Constructor.
virtual ~CSearchWidget ()
 Destructor.
void setTextEditor (QPlainTextEdit *editor)
void writeSettings ()
void readSettings ()
void setFocus ()
void keyPressEvent (QKeyEvent *event)

Detailed Description

CSearchWidget is a widget to perform search over a text editor.

search-widget.png

Member Function Documentation

void CSearchWidget::find ( )
slot

Finds the next occurrence in the editor's contents

void CSearchWidget::keyPressEvent ( QKeyEvent *  event)

Performs find() when hitting the return key. If the escape key is pressed, forward event to parent.

See also:
find
void CSearchWidget::readSettings ( )

Reads the settings of the widget.

See also:
writeSettings
void CSearchWidget::setFocus ( )

Sets the focus on the line edit.

void CSearchWidget::setTextEditor ( QPlainTextEdit *  editor)

Sets editor as the text editor upon which find operations are applied.

void CSearchWidget::writeSettings ( )

Saves the settings of the widget.

See also:
readSettings

The documentation for this class was generated from the following files: