swift
|
CActionBind binds a member function to an action. More...
Public Types | |
template<typename U > | |
using | MembFunc = void(U::*)(bool) |
Signature of receiving member function. | |
Public Member Functions | |
template<typename Receiver > | |
CActionBind (const QString &action, swift::misc::CIcons::IconIndex icon, Receiver *receiver, MembFunc< Receiver > slot=nullptr, const std::function< void()> &deleteCallback={}, QObject *parent=nullptr) | |
Constructor. | |
CActionBind (const QString &action, swift::misc::CIcons::IconIndex icon, QObject *parent=nullptr) | |
Signature just to set an icon for an action. | |
~CActionBind () | |
Destructor. | |
void | unbind () |
Unbind from swift::core::CInputManager. | |
bool | isBound () const |
Bound with swift::core::CInputManager. | |
int | getIndex () const |
Index. | |
CActionBind (const CActionBind &)=delete | |
Not copyable. | |
CActionBind & | operator= (const CActionBind &)=delete |
Not copyable. | |
CActionBind binds a member function to an action.
Definition at line 17 of file actionbind.h.