LibrePCB Developers Documentation
CheckableItemsEditorWidget Class Referencefinal

A widget to modify a list of checkable string items. More...

#include <checkableitemseditorwidget.h>

Inherits QFrame.

+ Collaboration diagram for CheckableItemsEditorWidget:

Public Types

typedef std::tuple< QVariant, QString, Qt::CheckState > Item
 Key, text, check state. More...
 
typedef QVector< ItemItemList
 

Public Member Functions

 CheckableItemsEditorWidget ()=delete
 
 CheckableItemsEditorWidget (QWidget *parent=nullptr) noexcept
 
 CheckableItemsEditorWidget (const CheckableItemsEditorWidget &other)=delete
 
 ~CheckableItemsEditorWidget () noexcept
 
const ItemListgetItems () const noexcept
 
void setItems (const ItemList &items) noexcept
 
CheckableItemsEditorWidgetoperator= (const CheckableItemsEditorWidget &rhs)=delete
 

Private Member Functions

void updateWidgets () noexcept
 

Private Attributes

QPointer< QVBoxLayout > mLayout
 
ItemList mItems
 

Detailed Description

A widget to modify a list of checkable string items.

Used for librepcb::editor::CheckableItemsDelegate.

Member Typedef Documentation

◆ Item

typedef std::tuple<QVariant, QString, Qt::CheckState> Item

Key, text, check state.

◆ ItemList

typedef QVector<Item> ItemList

Constructor & Destructor Documentation

◆ CheckableItemsEditorWidget() [1/3]

◆ CheckableItemsEditorWidget() [2/3]

CheckableItemsEditorWidget ( QWidget *  parent = nullptr)
explicitnoexcept

◆ CheckableItemsEditorWidget() [3/3]

◆ ~CheckableItemsEditorWidget()

Member Function Documentation

◆ getItems()

const ItemList & getItems ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ setItems()

void setItems ( const ItemList items)
noexcept
+ Here is the caller graph for this function:

◆ operator=()

CheckableItemsEditorWidget & operator= ( const CheckableItemsEditorWidget rhs)
delete

◆ updateWidgets()

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

Member Data Documentation

◆ mLayout

QPointer<QVBoxLayout> mLayout
private

◆ mItems

ItemList mItems
private

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