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

Inherits QAbstractItemView.

Classes

struct  Config
 
struct  DropIndicator
 

Public Slots

void setGammaEnabled (bool enabled)
 
void setGamma (qreal gamma)
 
void tryAddColor (const AZ::Color &color)
 

Signals

void selectedColorsChanged (const QVector< AZ::Color > &selectedColors)
 
void unselectedContextMenuRequested (const QPoint &position)
 

Public Member Functions

 PaletteView (Palette *palette, Internal::ColorController *controller, QUndoStack *undoStack, QWidget *parent=nullptr)
 
bool isGammaEnabled () const
 
qreal gamma () const
 
void addDefaultRGBColors ()
 
void setModel (QAbstractItemModel *model) override
 
void setSelectionModel (QItemSelectionModel *selectionModel) override
 
QModelIndex indexAt (const QPoint &point) const override
 
void scrollTo (const QModelIndex &index, ScrollHint hint=EnsureVisible) override
 
QRect visualRect (const QModelIndex &index) const override
 
void setMarginSize (const QSize &size)
 
void setItemSize (const QSize &size)
 
void setItemHorizontalSpacing (int spacing)
 
void setItemVerticalSpacing (int spacing)
 
bool contains (const AZ::Color &color) const
 
QMenu * contextMenu () const
 

Static Public Member Functions

static Config loadConfig (QSettings &settings)
 
static Config defaultConfig ()
 
static bool polish (Style *style, QWidget *widget, const Config &config)
 
static bool drawDropIndicator (const Style *style, const QStyleOption *option, QPainter *painter, const QWidget *widget, const Config &config)
 

Protected Slots

void handleSelectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
 

Protected Member Functions

QSize sizeHint () const override
 
QSize minimumSizeHint () const override
 
int horizontalOffset () const override
 
int verticalOffset () const override
 
QModelIndex moveCursor (QAbstractItemView::CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override
 
void updateGeometries () override
 
bool isIndexHidden (const QModelIndex &index) const override
 
void setSelection (const QRect &rect, QItemSelectionModel::SelectionFlags flags) override
 
QRegion visualRegionForSelection (const QItemSelection &selection) const override
 
void paintEvent (QPaintEvent *event) override
 
void rowsInserted (const QModelIndex &parent, int start, int end) override
 
void rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end) override
 
void resizeEvent (QResizeEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void contextMenuEvent (QContextMenuEvent *event) override
 
void startDrag (Qt::DropActions supportedActions) override
 
void dragEnterEvent (QDragEnterEvent *event) override
 
void dragMoveEvent (QDragMoveEvent *event) override
 
void dragLeaveEvent (QDragLeaveEvent *event) override
 
void dropEvent (QDropEvent *event) override
 

Properties

bool gammaEnabled
 
qreal gamma
 

Member Function Documentation

◆ defaultConfig()

static Config AzQtComponents::PaletteView::defaultConfig ( )
static

Returns default palette view config data.

◆ loadConfig()

static Config AzQtComponents::PaletteView::loadConfig ( QSettings &  settings)
static

Loads the palette view config data from a settings object.


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