EntryDelegate draws a single item in AssetBrowser. More...
#include <EntryDelegate.h>
Inherits QStyledItemDelegate.
Inherited by AzToolsFramework::AssetBrowser::FavoritesEntryDelegate, and AzToolsFramework::AssetBrowser::SearchEntryDelegate.
Signals | |
void | RenameEntry (const QString &value) const |
Public Member Functions | |
EntryDelegate (QWidget *parent=nullptr) | |
void | paintAssetBrowserEntry (QPainter *painter, int column, const AssetBrowserEntry *entry, const QStyleOptionViewItem &option) const |
QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override |
void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
void | SetShowSourceControlIcons (bool showSourceControl) |
Set whether to show source control icons, this is still temporary mainly to support existing functionality of material browser. | |
void | SetShowFavoriteIcons (bool showFavoriteIcons) |
void | SetSearchString (QString searchString) |
Protected Member Functions | |
int | DrawThumbnail (QPainter *painter, const QPoint &point, const QSize &size, const AssetBrowserEntry *entry) const |
Draw a thumbnail and return its width. | |
Protected Attributes | |
int | m_iconSize |
bool | m_showSourceControl = false |
bool | m_showFavoriteIcons = false |
AZStd::string | m_searchString |
EntryDelegate draws a single item in AssetBrowser.