game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
DraggableToolbarSection Class Reference

#include <draggable_toolbar.h>

Inheritance diagram for DraggableToolbarSection:
Collaboration diagram for DraggableToolbarSection:

Public Member Functions

 DraggableToolbarSection (const QString &id, const QString &displayName, DraggableToolbar *toolbar, QWidget *parent=nullptr, ThemeManager *themeManager=nullptr)
void applyTheme ()
QHBoxLayout * contentLayout ()
QString displayName () const
QString id () const
bool isFixed () const
bool isResizable () const
void resized (int newWidth)
void setFixed (bool fixed)
void setResizable (bool resizable, int minWidth=50, int maxWidth=400)

Protected Member Functions

void enterEvent (QEnterEvent *event) override
void leaveEvent (QEvent *event) override
void mouseMoveEvent (QMouseEvent *event) override
void mousePressEvent (QMouseEvent *event) override
void mouseReleaseEvent (QMouseEvent *event) override
void paintEvent (QPaintEvent *event) override

Detailed Description

Definition at line 130 of file draggable_toolbar.h.

Constructor & Destructor Documentation

◆ DraggableToolbarSection()

DraggableToolbarSection::DraggableToolbarSection ( const QString & id,
const QString & displayName,
DraggableToolbar * toolbar,
QWidget * parent = nullptr,
ThemeManager * themeManager = nullptr )
explicit

Definition at line 502 of file draggable_toolbar.cpp.

References displayName(), and id().

Member Function Documentation

◆ applyTheme()

void DraggableToolbarSection::applyTheme ( )

Definition at line 549 of file draggable_toolbar.cpp.

◆ contentLayout()

QHBoxLayout * DraggableToolbarSection::contentLayout ( )
inline

Definition at line 149 of file draggable_toolbar.h.

◆ displayName()

QString DraggableToolbarSection::displayName ( ) const
inline

Definition at line 143 of file draggable_toolbar.h.

Referenced by DraggableToolbarSection().

◆ enterEvent()

void DraggableToolbarSection::enterEvent ( QEnterEvent * event)
overrideprotected

Definition at line 613 of file draggable_toolbar.cpp.

◆ id()

QString DraggableToolbarSection::id ( ) const
inline

Definition at line 139 of file draggable_toolbar.h.

Referenced by DraggableToolbarSection().

◆ isFixed()

bool DraggableToolbarSection::isFixed ( ) const
inline

Definition at line 166 of file draggable_toolbar.h.

◆ isResizable()

bool DraggableToolbarSection::isResizable ( ) const
inline

Definition at line 156 of file draggable_toolbar.h.

◆ leaveEvent()

void DraggableToolbarSection::leaveEvent ( QEvent * event)
overrideprotected

Definition at line 623 of file draggable_toolbar.cpp.

◆ mouseMoveEvent()

void DraggableToolbarSection::mouseMoveEvent ( QMouseEvent * event)
overrideprotected

Definition at line 571 of file draggable_toolbar.cpp.

References resized().

◆ mousePressEvent()

void DraggableToolbarSection::mousePressEvent ( QMouseEvent * event)
overrideprotected

Definition at line 554 of file draggable_toolbar.cpp.

◆ mouseReleaseEvent()

void DraggableToolbarSection::mouseReleaseEvent ( QMouseEvent * event)
overrideprotected

Definition at line 605 of file draggable_toolbar.cpp.

◆ paintEvent()

void DraggableToolbarSection::paintEvent ( QPaintEvent * event)
overrideprotected

Definition at line 631 of file draggable_toolbar.cpp.

References ThemeColors::textMuted.

◆ resized()

void DraggableToolbarSection::resized ( int newWidth)

Referenced by mouseMoveEvent().

◆ setFixed()

void DraggableToolbarSection::setFixed ( bool fixed)
inline

Definition at line 162 of file draggable_toolbar.h.

◆ setResizable()

void DraggableToolbarSection::setResizable ( bool resizable,
int minWidth = 50,
int maxWidth = 400 )

Definition at line 518 of file draggable_toolbar.cpp.


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