11#include <QAbstractItemDelegate>
14#include <QStylePainter>
17#include <QTextDocument>
37 void setText(
const QString text);
91 QListWidget* listWidgetRef_;
94 bool eventBeingFiltered_;
97 QPointer<FakeToolTip> infoTipRef_;
109 void paint(QPainter *painter,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
111 QSize
sizeHint(
const QStyleOptionViewItem &option,
const QModelIndex &index )
const override;
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override
Definition texteditorautocompletecomponent.cpp:512
AutoCompleteDelegate(TextEditorController *controller, QObject *parent=0)
Definition texteditorautocompletecomponent.cpp:454
TextEditorController * controller() const
Definition texteditorautocompletecomponent.cpp:460
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Definition texteditorautocompletecomponent.cpp:465
This is the base and abstract class of a text document A TextDocument is the model part of the editor...
Definition textdocument.h:42
void showInfoTip()
Definition texteditorautocompletecomponent.cpp:140
QSize sizeHint() const
Definition texteditorautocompletecomponent.cpp:102
bool eventFilter(QObject *obj, QEvent *event)
we need to intercept keypresses if the widget is visible
Definition texteditorautocompletecomponent.cpp:318
bool shouldDisplayAutoComplete(TextRange &range, QString &word)
This method check if the autocomplete should be shown this method ALSO sets the word that's display.
Definition texteditorautocompletecomponent.cpp:111
void selectItemOnHover(QModelIndex modelIndex)
Definition texteditorautocompletecomponent.cpp:449
void insertCurrentSelectedListItem()
inserts the currently selected list item
Definition texteditorautocompletecomponent.cpp:385
void textKeyPressed()
this event is called when a key pressed
Definition texteditorautocompletecomponent.cpp:426
void listItemDoubleClicked(QListWidgetItem *item)
Definition texteditorautocompletecomponent.cpp:443
void positionWidgetForCaretOffset(int offset)
positions the widget so it's visible.
Definition texteditorautocompletecomponent.cpp:270
bool fillAutoCompleteList(TextDocument *document, const TextRange &range, const QString &word)
Fills the autocomplete list.
Definition texteditorautocompletecomponent.cpp:234
void updateList()
Definition texteditorautocompletecomponent.cpp:394
void hideInfoTip()
Definition texteditorautocompletecomponent.cpp:227
void backspacePressed()
processes backspaces
Definition texteditorautocompletecomponent.cpp:432
TextEditorAutoCompleteComponent(TextEditorController *controller, TextEditorComponent *parent, TextMarginComponent *margin)
Definition texteditorautocompletecomponent.cpp:32
void listItemClicked(QListWidgetItem *item)
Definition texteditorautocompletecomponent.cpp:437
TextEditorController * controller() const
Returns the current text editor controller.
Definition texteditorautocompletecomponent.cpp:97
void hideEvent(QHideEvent *event)
intercepts hide() calls to inform the tooltip to hide as well
Definition texteditorautocompletecomponent.cpp:311
This is the main texteditor-component (which is the true editor) This is the QWidget that recieves th...
Definition texteditorcomponent.h:29
The texteditor works via the controller. The controller is the central point/mediator which maps/cont...
Definition texteditorcontroller.h:39
This is the general edbee widget The core functionality of this widget is divided in several separate...
Definition texteditorwidget.h:36
The margin/line-number component This class is used for rendering line-numbers etc.
Definition textmargincomponent.h:53
A single text region A region constists of an anchor and a caret: The anchor defines the 'start' of t...
Definition textrange.h:29
#define EDBEE_EXPORT
Definition exports.h:15
QT Acessibility has an issue with reporting blank lines between elements lines. defining 'WINDOWS_EMP...
Definition commentcommand.cpp:20