SettingsDelegate Class Reference

Public Slots

void updateFonts ()
 
void updateModel ()
 
void updateScope (BinaryViewRef, BNSettingsScope)
 
void updateSize ()
 
void updateViewMode (bool enabled) const
 

Signals

void refreshAllSettings () const
 
void scopeChanged (BinaryViewRef, BNSettingsScope)
 
void sizeChanged ()
 
void viewModeChanged (bool enabled) const
 
void notifyNeedsRestart () const
 
void notifySettingChanged (QString settingId) const
 
void performHoverAction (QModelIndex index) const
 

Public Member Functions

 SettingsDelegate (QWidget *parent, SettingsRef settings, SettingsFilterProxyModel *filterModel, const std::function< void(const QModelIndex &index)> &hoverAction=nullptr)
 
 ~SettingsDelegate ()
 
void setDefaultSelection (const std::function< void()> &selectionAction)
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
void setEditorData (QWidget *editor, const QModelIndex &index) const override
 
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
 
void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 

Protected Member Functions

bool eventFilter (QObject *object, QEvent *event) override
 

Constructor & Destructor Documentation

◆ SettingsDelegate()

SettingsDelegate::SettingsDelegate ( QWidget *  parent,
SettingsRef  settings,
SettingsFilterProxyModel filterModel,
const std::function< void(const QModelIndex &index)> &  hoverAction = nullptr 
)

◆ ~SettingsDelegate()

SettingsDelegate::~SettingsDelegate ( )

Member Function Documentation

◆ createEditor()

QWidget * SettingsDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

◆ eventFilter()

bool SettingsDelegate::eventFilter ( QObject *  object,
QEvent *  event 
)
overrideprotected

◆ notifyNeedsRestart

void SettingsDelegate::notifyNeedsRestart ( ) const
signal

◆ notifySettingChanged

void SettingsDelegate::notifySettingChanged ( QString  settingId) const
signal

◆ paint()

void SettingsDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

◆ performHoverAction

void SettingsDelegate::performHoverAction ( QModelIndex  index) const
signal

◆ refreshAllSettings

void SettingsDelegate::refreshAllSettings ( ) const
signal

◆ scopeChanged

void SettingsDelegate::scopeChanged ( BinaryViewRef  ,
BNSettingsScope   
)
signal

◆ setDefaultSelection()

void SettingsDelegate::setDefaultSelection ( const std::function< void()> &  selectionAction)

◆ setEditorData()

void SettingsDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const
override

◆ setModelData()

void SettingsDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const
override

◆ sizeChanged

void SettingsDelegate::sizeChanged ( )
signal

◆ sizeHint()

QSize SettingsDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

◆ updateEditorGeometry()

void SettingsDelegate::updateEditorGeometry ( QWidget *  editor,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

◆ updateFonts

void SettingsDelegate::updateFonts ( )
slot

◆ updateModel

void SettingsDelegate::updateModel ( )
slot

◆ updateScope

void SettingsDelegate::updateScope ( BinaryViewRef  ,
BNSettingsScope   
)
slot

◆ updateSize

void SettingsDelegate::updateSize ( )
slot

◆ updateViewMode

void SettingsDelegate::updateViewMode ( bool  enabled) const
slot

◆ viewModeChanged

void SettingsDelegate::viewModeChanged ( bool  enabled) const
signal

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