- //! Provide a list of actions applying to the given item
- /**
- * Note that this list ist not persistent, hence it should only be used immediately after
- * calling this function (e.g. in a context menu). Optionally one can provide a QObject and a slot
- * (that should take a QAction * as parameter) that is invoked for actions that require external
- * handling.
- * @param index The item index in the NetworkModel
- * @param receiver The optional object that is notified for actions that need to be handled externally.
- * The action type will be stored in the QAction's data().
- * @param slot The receiving slot name; should be "mySlot" rather than SLOT(mySlot(QAction *))
- * @return A list of actions applying to the given item
- */
- void addActions(QMenu *, const QModelIndex &index, QObject *receiver = 0, const char *slot = 0, bool allowBufferHide = false);
- void addActions(QMenu *, const QList<QModelIndex> &indexList, QObject *receiver = 0, const char *slot = 0, bool allowBufferHide = false);
- void addActions(QMenu *, BufferId id, QObject *receiver = 0, const char *slot = 0);
- void addActions(QMenu *, MessageFilter *filter, BufferId msgBuffer, QObject *receiver = 0, const char *slot = 0);
- void addActions(QMenu *, MessageFilter *filter, BufferId msgBuffer, const QString &chanOrNick, QObject *receiver = 0, const char *slot = 0);
+ //! Provide a list of actions applying to the given item
+ /**
+ * Note that this list ist not persistent, hence it should only be used immediately after
+ * calling this function (e.g. in a context menu). Optionally one can provide a QObject and a slot
+ * (that should take a QAction * as parameter) that is invoked for actions that require external
+ * handling.
+ * @param index The item index in the NetworkModel
+ * @param receiver The optional object that is notified for actions that need to be handled externally.
+ * The action type will be stored in the QAction's data().
+ * @param slot The receiving slot name; should be "mySlot" rather than SLOT(mySlot(QAction *))
+ * @return A list of actions applying to the given item
+ */
+ void addActions(QMenu *, const QModelIndex &index, QObject *receiver = nullptr, const char *slot = nullptr, bool allowBufferHide = false);
+ void addActions(QMenu *, const QList<QModelIndex> &indexList, QObject *receiver = nullptr, const char *slot = nullptr, bool allowBufferHide = false);
+ void addActions(QMenu *, BufferId id, QObject *receiver = nullptr, const char *slot = nullptr);
+ void addActions(QMenu *, MessageFilter *filter, BufferId msgBuffer, QObject *receiver = nullptr, const char *slot = nullptr);
+ void addActions(QMenu *, MessageFilter *filter, BufferId msgBuffer, const QString &chanOrNick, QObject *receiver = nullptr, const char *slot = nullptr);