LibrePCB Developers Documentation
KeySequencesEditorWidget Class Referencefinal

A widget to modify a list of QKeySequence objects. More...

#include <keysequenceseditorwidget.h>

Inherits QWidget.

+ Collaboration diagram for KeySequencesEditorWidget:

Signals

void applyTriggered ()
 
void cancelTriggered ()
 

Public Member Functions

 KeySequencesEditorWidget ()=delete
 
 KeySequencesEditorWidget (const QList< QKeySequence > &defaultSequences, QWidget *parent=nullptr) noexcept
 
 KeySequencesEditorWidget (const KeySequencesEditorWidget &other)=delete
 
 ~KeySequencesEditorWidget () noexcept
 
const tl::optional< QList< QKeySequence > > & getOverrides () const noexcept
 
void setOverrides (const tl::optional< QList< QKeySequence > > &overrides) noexcept
 
void setRowHeight (int height) noexcept
 
KeySequencesEditorWidgetoperator= (const KeySequencesEditorWidget &rhs)=delete
 

Private Member Functions

void updateWidgets () noexcept
 

Private Attributes

QPointer< QVBoxLayout > mLayout
 
QList< QKeySequence > mDefault
 
tl::optional< QList< QKeySequence > > mOverrides
 
int mRowHeight
 

Detailed Description

A widget to modify a list of QKeySequence objects.

Used for librepcb::editor::KeySequenceDelegate.

Constructor & Destructor Documentation

◆ KeySequencesEditorWidget() [1/3]

◆ KeySequencesEditorWidget() [2/3]

KeySequencesEditorWidget ( const QList< QKeySequence > &  defaultSequences,
QWidget *  parent = nullptr 
)
explicitnoexcept

◆ KeySequencesEditorWidget() [3/3]

◆ ~KeySequencesEditorWidget()

~KeySequencesEditorWidget ( )
noexcept

Member Function Documentation

◆ getOverrides()

const tl::optional< QList< QKeySequence > > & getOverrides ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ setOverrides()

void setOverrides ( const tl::optional< QList< QKeySequence > > &  overrides)
noexcept
+ Here is the caller graph for this function:

◆ setRowHeight()

void setRowHeight ( int  height)
noexcept
+ Here is the caller graph for this function:

◆ operator=()

KeySequencesEditorWidget & operator= ( const KeySequencesEditorWidget rhs)
delete

◆ applyTriggered

void applyTriggered ( )
signal
+ Here is the caller graph for this function:

◆ cancelTriggered

void cancelTriggered ( )
signal
+ Here is the caller graph for this function:

◆ updateWidgets()

void updateWidgets ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mLayout

QPointer<QVBoxLayout> mLayout
private

◆ mDefault

QList<QKeySequence> mDefault
private

◆ mOverrides

tl::optional<QList<QKeySequence> > mOverrides
private

◆ mRowHeight

int mRowHeight
private

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