Open 3D Engine AzQtComponents 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.
AzQtComponents::ToolBar Class Reference

Class to provide extra functionality for working with ToolBar controls. More...

#include <ToolBar.h>

Classes

struct  Config
 Style configuration for the ToolBar class. More...
 
struct  ToolBarConfig
 Style configuration for a specific ToolBar group. More...
 

Public Types

enum class  ToolBarIconSize { IconNormal , IconLarge , Default = IconNormal }
 Enum used to specify the ToolBar icon size. Icon sizing is also affected by the toolbar group (primary/secondary).
 

Static Public Member Functions

static Config loadConfig (QSettings &settings)
 
static Config defaultConfig ()
 Gets the default ToolBar style configuration.
 
static void addMainToolBarStyle (QToolBar *toolbar)
 Applies the primary styling to a ToolBar.
 
static void setToolBarIconSize (QToolBar *toolbar, ToolBarIconSize size)
 Sets the icon size on the toolbar to the size provided.
 
static QToolButton * getToolBarExpansionButton (QToolBar *toolBar)
 

Friends

class Style
 

Detailed Description

Class to provide extra functionality for working with ToolBar controls.

Member Function Documentation

◆ getToolBarExpansionButton()

static QToolButton * AzQtComponents::ToolBar::getToolBarExpansionButton ( QToolBar *  toolBar)
static

Returns a pointer to the toolbar's expander button. Used to override the default toolbar overflow behavior.

◆ loadConfig()

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

Sets the ToolBar style configuration.

Parameters
settingsThe settings object to load the configuration from.
Returns
The new configuration of the ToolBar.

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