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