void toEditableMenu::remove() { QAction *active = this->activeAction(); if(!active) return; emit actionRemoved(active); this->removeAction(active); }
void DockingMenuActionRepository::removeAction(QAction *action) { if (!m_actions.contains(action)) return; m_actions.removeAll(action); emit actionRemoved(action); }
bool DaemonAdaptor::removeAction(qulonglong id) { bool result; emit onRemoveAction(result, id); if (result) { emit actionRemoved(id); } return result; }
DefaultModel::DefaultModel(Actions *actions, const QColor &grayedOutColour, const QFont &highlightedFont, const QFont &italicFont, const QFont &highlightedItalicFont, QObject *parent) : QAbstractTableModel(parent) , mActions(actions) , mGrayedOutColour(grayedOutColour) , mHighlightedFont(highlightedFont) , mItalicFont(italicFont) , mHighlightedItalicFont(highlightedItalicFont) { connect(actions, SIGNAL(daemonDisappeared()), SLOT(daemonDisappeared())); connect(actions, SIGNAL(daemonAppeared()), SLOT(daemonAppeared())); connect(actions, SIGNAL(actionAdded(qulonglong)), SLOT(actionAdded(qulonglong))); connect(actions, SIGNAL(actionModified(qulonglong)), SLOT(actionModified(qulonglong))); connect(actions, SIGNAL(actionEnabled(qulonglong, bool)), SLOT(actionEnabled(qulonglong, bool))); connect(actions, SIGNAL(actionsSwapped(qulonglong, qulonglong)), SLOT(actionsSwapped(qulonglong, qulonglong))); connect(actions, SIGNAL(actionRemoved(qulonglong)), SLOT(actionRemoved(qulonglong))); mVerboseType["command"] = tr("Command"); mVerboseType["method"] = tr("DBus call"); mVerboseType["client"] = tr("Client"); }
void QDesignerToolBar::addAction( QAction *a ) { actionList.append( a ); connect( a, SIGNAL( destroyed() ), this, SLOT( actionRemoved() ) ); if ( ::qt_cast<QActionGroup*>(a) ) { ( (QDesignerActionGroup*)a )->widget()->installEventFilter( this ); actionMap.insert( ( (QDesignerActionGroup*)a )->widget(), a ); } else if ( ::qt_cast<QSeparatorAction*>(a) ) { ( (QSeparatorAction*)a )->widget()->installEventFilter( this ); actionMap.insert( ( (QSeparatorAction*)a )->widget(), a ); } else { ( (QDesignerAction*)a )->widget()->installEventFilter( this ); actionMap.insert( ( (QDesignerAction*)a )->widget(), a ); } }
Actions::Actions(QObject *parent) : QObject(parent) , mServiceWatcher(new QDBusServiceWatcher(QLatin1String("org.lxqt.global_key_shortcuts"), QDBusConnection::sessionBus(), QDBusServiceWatcher::WatchForOwnerChange, this)) , mMultipleActionsBehaviour(MULTIPLE_ACTIONS_BEHAVIOUR_FIRST) { connect(mServiceWatcher, SIGNAL(serviceUnregistered(QString)), this, SLOT(on_daemonDisappeared(QString))); connect(mServiceWatcher, SIGNAL(serviceRegistered(QString)), this, SLOT(on_daemonAppeared(QString))); mDaemonProxy = new org::lxqt::global_key_shortcuts::daemon(QLatin1String("org.lxqt.global_key_shortcuts"), QStringLiteral("/daemon"), QDBusConnection::sessionBus(), this); connect(mDaemonProxy, SIGNAL(actionAdded(qulonglong)), this, SLOT(on_actionAdded(qulonglong))); connect(mDaemonProxy, SIGNAL(actionEnabled(qulonglong, bool)), this, SLOT(on_actionEnabled(qulonglong, bool))); connect(mDaemonProxy, SIGNAL(clientActionSenderChanged(qulonglong, QString)), this, SLOT(on_clientActionSenderChanged(qulonglong, QString))); connect(mDaemonProxy, SIGNAL(actionModified(qulonglong)), this, SLOT(on_actionModified(qulonglong))); connect(mDaemonProxy, SIGNAL(actionRemoved(qulonglong)), this, SLOT(on_actionRemoved(qulonglong))); connect(mDaemonProxy, SIGNAL(actionShortcutChanged(qulonglong)), this, SLOT(on_actionShortcutChanged(qulonglong))); connect(mDaemonProxy, SIGNAL(actionsSwapped(qulonglong, qulonglong)), this, SLOT(on_actionsSwapped(qulonglong, qulonglong))); connect(mDaemonProxy, SIGNAL(multipleActionsBehaviourChanged(uint)), this, SLOT(on_multipleActionsBehaviourChanged(uint))); QTimer::singleShot(0, this, SLOT(delayedInit())); }
void MObjectMenuModel::removeAction(MAction *action) { _actions().removeOne(action); emit actionRemoved(action); }
void ClassTreeView::actionRemove() { emit actionRemoved(); }
void Actions::on_actionRemoved(qulonglong id) { do_actionRemoved(id); emit actionRemoved(id); }
void DaemonAdaptor::emit_actionRemoved(qulonglong id) { emit actionRemoved(id); }