The TagLineEdit class.
More...
#include <taglineedit.h>
The TagLineEdit class.
- Author
- Matthieu Bachelier
- Copyright
- GNU General Public License v3
◆ TagLineEdit()
TagLineEdit::TagLineEdit |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ addTag()
void TagLineEdit::addTag |
( |
const QString & |
tag, |
|
|
int |
column = -1 |
|
) |
| |
◆ backspace()
void TagLineEdit::backspace |
( |
| ) |
|
Redefined to be able to move tag buttons. Backspace method is not virtual in QLineEdit, therefore keyPressEvent must be intercepted and eaten.
FIXME
◆ clearTextAndTags
void TagLineEdit::clearTextAndTags |
( |
const QString & |
txt | ) |
|
|
slot |
◆ closeTagButton()
void TagLineEdit::closeTagButton |
( |
TagButton * |
t | ) |
|
|
protectedvirtual |
◆ eventFilter()
bool TagLineEdit::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
event |
|
) |
| |
|
protectedvirtual |
◆ keyPressEvent()
void TagLineEdit::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
protectedvirtual |
Redefined to be able to move TagButton when typing.
TODO cursorWordForward / cursorWordBackard to stop on TagButton
◆ mousePressEvent()
void TagLineEdit::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
protectedvirtual |
Redefined to automatically move cursor outside TagButton.
◆ paintEvent()
void TagLineEdit::paintEvent |
( |
QPaintEvent * |
| ) |
|
|
protectedvirtual |
Redefined to display user input like closable "bubbles".
◆ tags()
QList<TagButton*> TagLineEdit::tags |
( |
| ) |
const |
|
inline |
◆ toStringList()
QStringList TagLineEdit::toStringList |
( |
| ) |
const |
|
protected |
◆ _tags
The documentation for this class was generated from the following files: