Applies styled row painting and a card-image preview to a card completer.
More...
#include <card_completer_styler.h>
|
| static void | apply (QCompleter *completer) |
| | Styles completer and follows its current selection.
|
Applies styled row painting and a card-image preview to a card completer.
The completer popup rows are painted by CardCompleterDelegate and the image of the currently selected (or hovered) row is shown beside the popup.
◆ CardCompleterStyler()
| CardCompleterStyler::CardCompleterStyler |
( |
QCompleter * | completer, |
|
|
QObject * | parent = nullptr ) |
|
explicitprivate |
◆ ~CardCompleterStyler()
| CardCompleterStyler::~CardCompleterStyler |
( |
| ) |
|
|
overrideprivate |
◆ apply()
| void CardCompleterStyler::apply |
( |
QCompleter * | completer | ) |
|
|
static |
Styles completer and follows its current selection.
The styler is parented to the completer so it lives exactly as long as the completer itself.
◆ ensureClosestSelected()
| void CardCompleterStyler::ensureClosestSelected |
( |
| ) |
|
|
private |
◆ eventFilter()
| bool CardCompleterStyler::eventFilter |
( |
QObject * | obj, |
|
|
QEvent * | ev ) |
|
overrideprotected |
◆ handlePopupKeyPress()
| bool CardCompleterStyler::handlePopupKeyPress |
( |
QKeyEvent * | event | ) |
|
|
private |
◆ hidePreview()
| void CardCompleterStyler::hidePreview |
( |
| ) |
|
|
private |
◆ isPopupAboveWidget()
| bool CardCompleterStyler::isPopupAboveWidget |
( |
| ) |
const |
|
private |
◆ onCompletionReset
| void CardCompleterStyler::onCompletionReset |
( |
| ) |
|
|
privateslot |
◆ reposition()
| void CardCompleterStyler::reposition |
( |
| ) |
|
|
private |
◆ showPreview()
| void CardCompleterStyler::showPreview |
( |
| ) |
|
|
private |
◆ stopPreviewFade()
| void CardCompleterStyler::stopPreviewFade |
( |
| ) |
|
|
private |
◆ updateOrientation()
| void CardCompleterStyler::updateOrientation |
( |
| ) |
|
|
private |
◆ updatePreview
| void CardCompleterStyler::updatePreview |
( |
const QModelIndex & | index | ) |
|
|
privateslot |
◆ updatePreviewFromHover
| void CardCompleterStyler::updatePreviewFromHover |
( |
const QPoint & | pos | ) |
|
|
privateslot |
◆ above
| bool CardCompleterStyler::above |
|
private |
◆ completer
| QCompleter* CardCompleterStyler::completer |
|
private |
◆ preview
◆ previewedIndex
| QModelIndex CardCompleterStyler::previewedIndex |
|
private |
◆ reversedModel
The documentation for this class was generated from the following files: