Open 3D Engine AzToolsFramework API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzToolsFramework::AssetBrowser::EntryDelegate Class Reference

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
 

Detailed Description

EntryDelegate draws a single item in AssetBrowser.


The documentation for this class was generated from the following file: