Canorus 0.0
Public Slots | Signals | Public Member Functions | List of all members
CATextEdit Class Reference

A text edit widget based on QLineEdit. More...

#include <scoreview.h>

Inheritance diagram for CATextEdit:
Inheritance graph
[legend]

Public Slots

void keyPressEvent (QKeyEvent *)
 

Signals

void CAKeyPressEvent (QKeyEvent *)
 

Public Member Functions

 CATextEdit (QWidget *parent=0)
 
 ~CATextEdit ()
 

Detailed Description

A text edit widget based on QLineEdit.

This widget is extended QLineEdit with custom actions on keypress events - caught and determined usually by the main window then. A new signal CAKeyPressEvent() was introduced for this.

Widget is usually used for editing the lyrics syllables or writing other text in the score. For syllable editing, when left/right cursors are hit at the beginning/end of the line, the next/previous syllable in the score should be selected. This isn't possible to achieve with standard QLineEdit as we need to control KeyPressEvent. This behaviour is again determined in the main window.

Constructor & Destructor Documentation

◆ CATextEdit()

CATextEdit::CATextEdit ( QWidget *  parent = 0)

◆ ~CATextEdit()

CATextEdit::~CATextEdit ( )

Member Function Documentation

◆ CAKeyPressEvent

void CATextEdit::CAKeyPressEvent ( QKeyEvent *  )
signal

Referenced by keyPressEvent().

Here is the caller graph for this function:

◆ keyPressEvent

void CATextEdit::keyPressEvent ( QKeyEvent *  e)
slot

References CAKeyPressEvent().


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