SeExpr
Signals | Public Member Functions | Public Attributes | Protected Member Functions | Private Slots | Private Attributes | List of all members
ExprShortTextEdit Class Reference

#include <ExprShortEdit.h>

Inheritance diagram for ExprShortTextEdit:

Signals

void editingFinished ()
 

Public Member Functions

 ExprShortTextEdit (QWidget *parent)
 

Public Attributes

QCompleter * completer
 
ExprCompletionModelcompletionModel
 

Protected Member Functions

void showTip (const QString &string)
 
void hideTip ()
 
void paintEvent (QPaintEvent *e)
 
virtual void keyPressEvent (QKeyEvent *e)
 
virtual void focusInEvent (QFocusEvent *e)
 
virtual void focusOutEvent (QFocusEvent *e)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseDoubleClickEvent (QMouseEvent *event)
 
virtual void wheelEvent (QWheelEvent *e)
 
void setColor (bool editing)
 
void finishEdit ()
 

Private Slots

void insertCompletion (const QString &completion)
 

Private Attributes

ExprHighlighterhighlighter
 
bool editing
 
QString savedText
 
ExprPopupDoc_tip
 
QStyle * lastStyleForHighlighter
 

Detailed Description

Definition at line 121 of file ExprShortEdit.h.

Constructor & Destructor Documentation

ExprShortTextEdit::ExprShortTextEdit ( QWidget *  parent)

Member Function Documentation

void ExprShortTextEdit::editingFinished ( )
signal

Referenced by finishEdit().

void ExprShortTextEdit::finishEdit ( )
protected

Definition at line 543 of file ExprShortEdit.cpp.

References editing, editingFinished(), and setColor().

Referenced by focusOutEvent(), and keyPressEvent().

void ExprShortTextEdit::focusInEvent ( QFocusEvent *  e)
protectedvirtual

Definition at line 371 of file ExprShortEdit.cpp.

References completer.

void ExprShortTextEdit::focusOutEvent ( QFocusEvent *  e)
protectedvirtual

Definition at line 378 of file ExprShortEdit.cpp.

References finishEdit(), hideTip(), and setColor().

void ExprShortTextEdit::hideTip ( )
protected

Definition at line 525 of file ExprShortEdit.cpp.

References _tip.

Referenced by focusOutEvent(), keyPressEvent(), mouseDoubleClickEvent(), and mousePressEvent().

void ExprShortTextEdit::insertCompletion ( const QString &  completion)
privateslot

Definition at line 530 of file ExprShortEdit.cpp.

References completer.

Referenced by ExprShortTextEdit().

void ExprShortTextEdit::keyPressEvent ( QKeyEvent *  e)
protectedvirtual
void ExprShortTextEdit::mouseDoubleClickEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 396 of file ExprShortEdit.cpp.

References hideTip().

void ExprShortTextEdit::mousePressEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 390 of file ExprShortEdit.cpp.

References hideTip().

void ExprShortTextEdit::paintEvent ( QPaintEvent *  e)
protected
void ExprShortTextEdit::setColor ( bool  editing)
protected

Definition at line 553 of file ExprShortEdit.cpp.

Referenced by finishEdit(), focusOutEvent(), and keyPressEvent().

void ExprShortTextEdit::showTip ( const QString &  string)
protected

Definition at line 511 of file ExprShortEdit.cpp.

References _tip.

Referenced by keyPressEvent().

virtual void ExprShortTextEdit::wheelEvent ( QWheelEvent *  e)
inlineprotectedvirtual

Definition at line 148 of file ExprShortEdit.h.

Member Data Documentation

ExprPopupDoc* ExprShortTextEdit::_tip
private

Definition at line 129 of file ExprShortEdit.h.

Referenced by hideTip(), and showTip().

QCompleter* ExprShortTextEdit::completer
ExprCompletionModel* ExprShortTextEdit::completionModel
bool ExprShortTextEdit::editing
private

Definition at line 127 of file ExprShortEdit.h.

Referenced by finishEdit(), and keyPressEvent().

ExprHighlighter* ExprShortTextEdit::highlighter
private

Definition at line 123 of file ExprShortEdit.h.

Referenced by ExprShortTextEdit(), and paintEvent().

QStyle* ExprShortTextEdit::lastStyleForHighlighter
private

Definition at line 130 of file ExprShortEdit.h.

Referenced by ExprShortTextEdit(), and paintEvent().

QString ExprShortTextEdit::savedText
private

Definition at line 128 of file ExprShortEdit.h.

Referenced by keyPressEvent().


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