Limo
A simple mod manager
Loading...
Searching...
No Matches
ListAction Class Reference

QAction derivate that emits a signal containing an index when triggered. More...

#include <listaction.h>

Inheritance diagram for ListAction:
Collaboration diagram for ListAction:

Signals

void triggeredAt (int index)
 Emits this action's index.
 

Public Member Functions

 ListAction (int index, QObject *parent=nullptr)
 Constructs a new action with the given index.
 

Private Slots

void onTriggeredAt ()
 Emits triggeredAt.
 

Private Attributes

int index_
 Index belonging to this action.
 

Detailed Description

QAction derivate that emits a signal containing an index when triggered.

Constructor & Destructor Documentation

◆ ListAction()

ListAction::ListAction ( int index,
QObject * parent = nullptr )
explicit

Constructs a new action with the given index.

Parameters
indexTarget index.
parentParent of this object.

Member Function Documentation

◆ triggeredAt

void ListAction::triggeredAt ( int index)
signal

Emits this action's index.

Parameters
indexThe index.

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