Custom paint delegate for settings search result items.
More...
#include <settings_search_delegate.h>
|
| | SettingsSearchDelegate (QObject *parent=nullptr) |
| void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
| QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override |
| void | setPageNames (const QStringList &names) |
| | Sets the translated page names for breadcrumb display.
|
| void | setPageIcons (const QStringList &iconResources) |
| | Sets the icons shown in front of results, indexed by page position.
|
|
| QStringList | pageNames |
| | Translated page names indexed by page position.
|
| QList< QPixmap > | pageIcons |
| | Icons of the related settings pages.
|
Custom paint delegate for settings search result items.
Renders each search result with a breadcrumb line ("Page > Group"), the setting label, and a subtle separator. Supports selected/hovered states.
◆ SettingsSearchDelegate()
| SettingsSearchDelegate::SettingsSearchDelegate |
( |
QObject * | parent = nullptr | ) |
|
|
explicit |
◆ paint()
| void SettingsSearchDelegate::paint |
( |
QPainter * | painter, |
|
|
const QStyleOptionViewItem & | option, |
|
|
const QModelIndex & | index ) const |
|
override |
◆ setPageIcons()
| void SettingsSearchDelegate::setPageIcons |
( |
const QStringList & | iconResources | ) |
|
Sets the icons shown in front of results, indexed by page position.
◆ setPageNames()
| void SettingsSearchDelegate::setPageNames |
( |
const QStringList & | names | ) |
|
Sets the translated page names for breadcrumb display.
◆ sizeHint()
| QSize SettingsSearchDelegate::sizeHint |
( |
const QStyleOptionViewItem & | option, |
|
|
const QModelIndex & | index ) const |
|
override |
◆ pageIcons
| QList<QPixmap> SettingsSearchDelegate::pageIcons |
|
private |
Icons of the related settings pages.
◆ pageNames
| QStringList SettingsSearchDelegate::pageNames |
|
private |
Translated page names indexed by page position.
The documentation for this class was generated from the following files: