uint AsemanNativeNotification::sendNotify(const QString &title, const QString &body, const QString &icon, uint replace_id, int timeOut, const QStringList &actions) { uint result = replace_id; AsemanNativeNotificationItem *item = p->items.value(replace_id); if(!item) { item = new AsemanNativeNotificationItem(); item->setFixedWidth(400); p->items.insert(p->last_id, item); result = p->last_id; p->last_id++; connect(item, SIGNAL(destroyed()), SLOT(itemClosed()) ); connect(item, SIGNAL(actionTriggered(QString)), SLOT(actionTriggered(QString)) ); } item->setTitle(title); item->setBody(body); item->setIcon(icon); item->setActions(actions); item->setTimeOut(timeOut); item->show(); return result; }
QList<QAction *> RemoveJobActionFactory::createActions() { QList<QAction*> result; if (m_attemptedJobAdditions == 1 && m_jobs.size() == 1) { QAction *newAction = new QAction ( tr("Remove '%1'...").arg(m_jobs.first().description()), NULL); newAction->setData(QVariant::fromValue(m_jobs)); connect(newAction, SIGNAL(triggered()), this, SLOT(actionTriggered())); result << newAction; } else if (m_attemptedJobAdditions > 1) { QAction *newAction = new QAction (NULL); if (static_cast<unsigned int>(m_jobs.size()) == m_attemptedJobAdditions) { newAction->setText(tr("Remove %1 jobs...").arg(m_jobs.size())); } else { newAction->setText(tr("Remove %1 of %2 selected jobs...") .arg(m_jobs.size()).arg(m_attemptedJobAdditions)); } newAction->setData(QVariant::fromValue(m_jobs)); connect(newAction, SIGNAL(triggered()), this, SLOT(actionTriggered())); result << newAction; } return result; }
void ImagePropertiesVersionsTab::addOpenImageAction() { ActionVersionsOverlay* const overlay = d->versionsWidget->addActionOverlay(KStandardGuiItem::open()); connect(overlay, SIGNAL(activated(ImageInfo)), this, SIGNAL(actionTriggered(ImageInfo))); }
void FiltersHistoryWidget::showCustomContextMenu(const QPoint& position) { QList<QAction*> actions; if (d->view->indexAt(position).isValid()) { QModelIndex index = d->view->indexAt(position); QString s(i18n("Remove filter")); RemoveFilterAction* removeFilterAction = new RemoveFilterAction(s, index, 0); removeFilterAction->setDisabled(true); if (!index.model()->parent(index).isValid()) { actions.append(removeFilterAction); connect(removeFilterAction, SIGNAL(triggered()), removeFilterAction, SLOT(triggerSlot())); connect(removeFilterAction, SIGNAL(actionTriggered(QModelIndex)), d->model, SLOT(removeEntry(QModelIndex))); } } if (actions.count() > 0) { QMenu::exec(actions, d->view->mapToGlobal(position)); } }
void QG_SnapToolBar::slotRestrictOrthogonal(bool checked) { if( restrictVertical) restrictVertical->setChecked(checked); if( restrictHorizontal) restrictHorizontal->setChecked(checked); if( restrictNothing) restrictNothing->setChecked(checked); actionTriggered(); }
void Notification::mouseReleaseEvent(QMouseEvent * event) { // qDebug() << "CLICKED" << event; QString appName; QString windowTitle; if (m_actionWidget && m_actionWidget->hasDefaultAction()) { emit actionTriggered(m_actionWidget->defaultAction()); return; } for (WId i : KWindowSystem::stackingOrder()) { KWindowInfo info = KWindowInfo(i, NET::WMName | NET::WMVisibleName); appName = info.name(); windowTitle = info.visibleName(); // qDebug() << " " << i << "APPNAME" << appName << "TITLE" << windowTitle; if (appName.isEmpty()) { QWidget::mouseReleaseEvent(event); return; } if (appName == appLabel->text() || windowTitle == appLabel->text()) { KWindowSystem::raiseWindow(i); closeButton_clicked(); return; } } }
/*! Triggers a slider \a action. Possible actions are \l SliderSingleStepAdd, \l SliderSingleStepSub, \l SliderPageStepAdd, \l SliderPageStepSub, \l SliderToMinimum, \l SliderToMaximum, and \l SliderMove. \sa actionTriggered() */ void QAbstractSlider::triggerAction(SliderAction action) { Q_D(QAbstractSlider); d->blocktracking = true; switch (action) { case SliderSingleStepAdd: setSliderPosition(d->overflowSafeAdd(d->effectiveSingleStep())); break; case SliderSingleStepSub: setSliderPosition(d->overflowSafeAdd(-d->effectiveSingleStep())); break; case SliderPageStepAdd: setSliderPosition(d->overflowSafeAdd(d->pageStep)); break; case SliderPageStepSub: setSliderPosition(d->overflowSafeAdd(-d->pageStep)); break; case SliderToMinimum: setSliderPosition(d->minimum); break; case SliderToMaximum: setSliderPosition(d->maximum); break; case SliderMove: case SliderNoAction: break; }; emit actionTriggered(action); d->blocktracking = false; setValue(d->position); }
void HudSlider::triggerAction(QAbstractSlider::SliderAction action) { switch (action) { case QAbstractSlider::SliderSingleStepAdd: setSliderPosition(d->mValue + d->mSingleStep); break; case QAbstractSlider::SliderSingleStepSub: setSliderPosition(d->mValue - d->mSingleStep); break; case QAbstractSlider::SliderPageStepAdd: setSliderPosition(d->mValue + d->mPageStep); break; case QAbstractSlider::SliderPageStepSub: setSliderPosition(d->mValue - d->mPageStep); break; case QAbstractSlider::SliderToMinimum: setSliderPosition(d->mMin); break; case QAbstractSlider::SliderToMaximum: setSliderPosition(d->mMax); break; case QAbstractSlider::SliderMove: case QAbstractSlider::SliderNoAction: break; }; actionTriggered(action); setValue(d->mSliderPosition); }
void StatusBarItemGroup::mouseReleaseEvent(QGraphicsSceneMouseEvent* event) { if(m_actionable && m_mouseDown) { actionTriggered(); } m_mouseDown = false; // update(); }
void AsemanNativeNotificationItem::buttonClicked() { QPushButton *btn = static_cast<QPushButton*>(sender()); if(!btn) return; const QString &action = p->actions.value(btn); emit actionTriggered(action); }
void NotificationActionsComboWidget::actionComboBoxActivated() { if (!m_comboBox) return; int ix = m_comboBox->currentIndex(); if (ix == -1) return; emit actionTriggered(m_actionMap.key(m_comboBox->itemText(ix))); }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow), m_tile(new QtDockTile(this)) { ui->setupUi(this); ui->menubar->setNativeMenuBar(false); ui->actionElementWithIcon->setIcon(QIcon::fromTheme("applications-internet")); m_tile->setMenu(ui->menu); connect(ui->pushButton, SIGNAL(clicked()), m_tile, SLOT(alert())); connect(ui->lineEdit, SIGNAL(textChanged(QString)), m_tile, SLOT(setBadge(QString))); connect(ui->horizontalSlider, SIGNAL(valueChanged(int)), m_tile, SLOT(setProgress(int))); connect(ui->element, SIGNAL(triggered()), SLOT(actionTriggered())); connect(ui->element1, SIGNAL(triggered()), SLOT(actionTriggered())); connect(ui->element2, SIGNAL(triggered()), SLOT(actionTriggered())); connect(ui->actionElementWithIcon, SIGNAL(triggered()), SLOT(actionTriggered())); }
void ImagePropertiesVersionsTab::addOpenAlbumAction(const ImageModel* referenceModel) { KGuiItem gui(i18n("Go To Albums"), "folder-image", i18nc("@info:tooltip", "Go to the album of this image")); ActionVersionsOverlay* const overlay = d->versionsWidget->addActionOverlay(gui); overlay->setReferenceModel(referenceModel); connect(overlay, SIGNAL(activated(ImageInfo)), this, SIGNAL(actionTriggered(ImageInfo))); }
void StatusBarItemGroup::mouseMoveEvent(QGraphicsSceneMouseEvent* event) { //Obey sysUiStatusBarSlide if(Preferences::instance()->sysUiStatusBarSlide()) { //If the user moves their fingers 15px vertically, trigger if(m_actionable && m_mouseDown && (int)event->pos().y() >= (int)event->buttonDownPos(Qt::LeftButton).y() + 15) { actionTriggered(); //As the 'gesture' is now done, set m_mouseDown to false m_mouseDown = false; } } }
int MC::WindowMain::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: grabInput((*reinterpret_cast< bool(*)>(_a[1]))); break; case 1: iconActivated((*reinterpret_cast< QSystemTrayIcon::ActivationReason(*)>(_a[1]))); break; case 2: actionTriggered(); break; default: ; } _id -= 3; } return _id; }
int HandleEstimator::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = Renderer::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: actionTriggered(); break; default: ; } _id -= 1; } return _id; }
QAction* ShortcutBar::addShortcut(const QString &name, const QString &command, QIcon *icon) { QIcon _icon; if(icon) _icon = *icon; else _icon = QIcon::fromTheme("player_play"); QAction *a = new QAction(_icon, name, this); a->setToolTip(name); a->setWhatsThis(command); a->setData(command); addAction(a); connect(a, SIGNAL(triggered()), this, SLOT(actionTriggered())); return a; }
void NotificationLayout::addNotification(uint id, const QString &application, const QString &summary, const QString &body, const QString &icon, int timeout, const QStringList& actions, const QVariantMap& hints) { // qDebug() << "NotificationLayout::addNotification" << id << application << summary << body << icon << timeout; if (m_notifications.contains(id)) { // TODO/FIXME: it can be deleted by timer in this block. Locking? Notification *n = m_notifications[id]; n->setValues(application, summary, body, icon, timeout, actions, hints); } else { Notification *n = new Notification(application, summary, body, icon, timeout, actions, hints, this); // NOTE: it's hard to use == operator for Notification* in QList... QHashIterator<uint, Notification*> it(m_notifications); while (it.hasNext()) { it.next(); if (it.value()->application() == application && it.value()->summary() == summary && it.value()->body() == body) { qDebug() << "Notification app" << application << "summary" << summary << "is already registered but this request is not an update. Broken app?"; delete n; return; } } connect(n, SIGNAL(timeout()), this, SLOT(removeNotificationTimeout())); connect(n, SIGNAL(userCanceled()), this, SLOT(removeNotificationUser())); connect(n, SIGNAL(actionTriggered(QString)), this, SLOT(notificationActionCalled(QString))); m_notifications[id] = n; m_layout->addWidget(n); n->show(); } emit notificationAvailable(); checkHeight(); }
bool StatusBarItemGroup::sceneEvent(QEvent *event) { bool ret = false; if (event->type() == QEvent::TouchBegin) { if (m_actionable && isVisible()) { m_mouseDown = true; ret = true; } } else if (event->type() == QEvent::TouchEnd) { if (m_actionable && m_mouseDown) { actionTriggered(); } m_mouseDown = false; ret = true; } return ret; }
bool InputSequence::process(InputHandler *inputHandler, qint64 currentTime) { if (!isEnabled()) return false; if (m_startTime != 0) { // Check if we are still inside the time limit for the sequence if ((currentTime - m_startTime) > m_timeout) { reset(); return false; } } bool triggered = false; for (const Qt3DCore::QNodeId &actionInputId : qAsConst(m_sequences)) { AbstractActionInput *actionInput = inputHandler->lookupActionInput(actionInputId); if (actionInput && actionInput->process(inputHandler, currentTime)) { triggered |= actionTriggered(actionInputId, currentTime); if (m_startTime == 0) m_startTime = currentTime; } } return triggered; }
void ProgressLineEdit::handleTriggeredButton (QAction *action) { emit actionTriggered (action, text ()); }
int QAbstractSlider::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break; case 1: sliderPressed(); break; case 2: sliderMoved((*reinterpret_cast< int(*)>(_a[1]))); break; case 3: sliderReleased(); break; case 4: rangeChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; case 5: actionTriggered((*reinterpret_cast< int(*)>(_a[1]))); break; case 6: setValue((*reinterpret_cast< int(*)>(_a[1]))); break; case 7: setOrientation((*reinterpret_cast< Qt::Orientation(*)>(_a[1]))); break; } _id -= 8; } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty) { void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< int*>(_v) = minimum(); break; case 1: *reinterpret_cast< int*>(_v) = maximum(); break; case 2: *reinterpret_cast< int*>(_v) = singleStep(); break; case 3: *reinterpret_cast< int*>(_v) = pageStep(); break; case 4: *reinterpret_cast< int*>(_v) = value(); break; case 5: *reinterpret_cast< int*>(_v) = sliderPosition(); break; case 6: *reinterpret_cast< bool*>(_v) = hasTracking(); break; case 7: *reinterpret_cast< Qt::Orientation*>(_v) = orientation(); break; case 8: *reinterpret_cast< bool*>(_v) = invertedAppearance(); break; case 9: *reinterpret_cast< bool*>(_v) = invertedControls(); break; case 10: *reinterpret_cast< bool*>(_v) = isSliderDown(); break; } _id -= 11; } else if (_c == QMetaObject::WriteProperty) { void *_v = _a[0]; switch (_id) { case 0: setMinimum(*reinterpret_cast< int*>(_v)); break; case 1: setMaximum(*reinterpret_cast< int*>(_v)); break; case 2: setSingleStep(*reinterpret_cast< int*>(_v)); break; case 3: setPageStep(*reinterpret_cast< int*>(_v)); break; case 4: setValue(*reinterpret_cast< int*>(_v)); break; case 5: setSliderPosition(*reinterpret_cast< int*>(_v)); break; case 6: setTracking(*reinterpret_cast< bool*>(_v)); break; case 7: setOrientation(*reinterpret_cast< Qt::Orientation*>(_v)); break; case 8: setInvertedAppearance(*reinterpret_cast< bool*>(_v)); break; case 9: setInvertedControls(*reinterpret_cast< bool*>(_v)); break; case 10: setSliderDown(*reinterpret_cast< bool*>(_v)); break; } _id -= 11; } else if (_c == QMetaObject::ResetProperty) { _id -= 11; } else if (_c == QMetaObject::QueryPropertyDesignable) { _id -= 11; } else if (_c == QMetaObject::QueryPropertyScriptable) { _id -= 11; } else if (_c == QMetaObject::QueryPropertyStored) { _id -= 11; } else if (_c == QMetaObject::QueryPropertyEditable) { _id -= 11; } else if (_c == QMetaObject::QueryPropertyUser) { _id -= 11; } #endif // QT_NO_PROPERTIES return _id; }
void QG_SnapToolBar::init() { snapFree = new QAction(QIcon(":/extui/snapfree.png"), tr("Free Snap"), this); snapFree->setCheckable(true); connect(snapFree, SIGNAL(triggered()), this, SLOT(actionTriggered())); this->addAction(snapFree); snapGrid = new QAction(QIcon(":/extui/snapgrid.png"), tr("Snap on grid"), this); snapGrid->setCheckable(true); connect(snapGrid, SIGNAL(triggered()), this, SLOT(actionTriggered())); this->addAction(snapGrid); snapEnd = new QAction(QIcon(":/extui/snapendpoint.png"), tr("Snap on Endpoints"), this); snapEnd->setCheckable(true); connect(snapEnd, SIGNAL(triggered()), this, SLOT(actionTriggered())); this->addAction(snapEnd); snapOnEntity = new QAction(QIcon(":/extui/snaponentity.png"), tr("Snap on Entity"), this); snapOnEntity->setCheckable(true); connect(snapOnEntity, SIGNAL(triggered()), this, SLOT(actionTriggered())); this->addAction(snapOnEntity); snapCenter = new QAction(QIcon(":/extui/snapcenter.png"), tr("Snap Center"), this); snapCenter->setCheckable(true); connect(snapCenter, SIGNAL(triggered()), this, SLOT(actionTriggered())); this->addAction(snapCenter); snapMiddle = new QAction(QIcon(":/extui/snapmiddle.png"), tr("Snap Middle"), this); snapMiddle->setCheckable(true); connect(snapMiddle, SIGNAL(triggered()), this, SLOT(actionTriggered())); this->addAction(snapMiddle); snapDistance = new QAction(QIcon(":/extui/snapdist.png"), tr("Snap Distance"), this); snapDistance ->setCheckable(true); connect(snapDistance, SIGNAL(triggered()), this, SLOT(actionTriggered())); this->addAction(snapDistance); snapIntersection = new QAction(QIcon(":/extui/snapintersection.png"), tr("Snap Intersection"), this); snapIntersection->setCheckable(true); connect(snapIntersection, SIGNAL(triggered()), this, SLOT(actionTriggered())); this->addAction(snapIntersection); this->addSeparator(); /* restrictOrthoagonal = new QAction(QIcon(":/extui/restrictorthogonal.png"), "Restrict Orthogonal", this); restrictOrthoagonal->setCheckable(true); connect(restrictOrthoagonal, SIGNAL(triggered(bool)), this, SLOT(restrictOrthoagonalTriggered(bool))); connect(restrictOrthoagonal, SIGNAL(triggered()), this, SLOT(actionTriggered())); this->addAction(restrictOrthoagonal); */ restrictHorizontal = new QAction(QIcon(":/extui/restricthorizontal.png"), tr("Restrict Horizontal"), this); restrictHorizontal->setCheckable(true); connect(restrictHorizontal, SIGNAL(triggered()), this, SLOT(actionTriggered())); this->addAction(restrictHorizontal); restrictVertical = new QAction(QIcon(":/extui/restrictvertical.png"), tr("Restrict Vertical"), this); restrictVertical->setCheckable(true); connect(restrictVertical, SIGNAL(triggered()), this, SLOT(actionTriggered())); this->addAction(restrictVertical); restrictOrthogonal = new QAction(QIcon(":/extui/restrictorthogonal.png"), tr("Restrict Orthogonal"), this); restrictOrthogonal->setCheckable(true); connect(restrictOrthogonal, SIGNAL(triggered(bool)), this, SLOT(slotRestrictOrthogonal(bool))); restrictNothing = new QAction(QIcon(":/extui/restrictnothing.png"), tr("Restrict Nothing"), this); restrictNothing->setCheckable(true); connect(restrictNothing, SIGNAL(triggered(bool)), this, SLOT(slotRestrictNothing(bool))); this->addSeparator(); bRelZero = new QAction(QIcon(":/extui/relzeromove.png"), tr("Set relative zero position"), this); bRelZero->setCheckable(false); connect(bRelZero, SIGNAL(triggered()), actionHandler, SLOT(slotSetRelativeZero())); //connect(bRelZero, SIGNAL(triggered()), this, SLOT(slotSetRelativeZero())); this->addAction(bRelZero); bLockRelZero = new QAction(QIcon(":/extui/relzerolock.png"), tr("Lock relative zero position"), this); bLockRelZero->setCheckable(true); connect(bLockRelZero, SIGNAL(toggled(bool)),actionHandler, SLOT(slotLockRelativeZero(bool))); this->addAction(bLockRelZero); //restore snapMode from saved preferences RS_SETTINGS->beginGroup("/Snap"); setSnaps(RS_Snapper::intToSnapMode(RS_SETTINGS->readNumEntry("/SnapMode",0))); RS_SETTINGS->endGroup(); }
void DevEdit::h_actionTriggered(int action) { emit actionTriggered(action, Qt::Horizontal); }
void DevEdit::v_actionTriggered(int action) { emit actionTriggered(action, Qt::Vertical); }
int QToolBar::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: actionTriggered((*reinterpret_cast< QAction*(*)>(_a[1]))); break; case 1: movableChanged((*reinterpret_cast< bool(*)>(_a[1]))); break; case 2: allowedAreasChanged((*reinterpret_cast< Qt::ToolBarAreas(*)>(_a[1]))); break; case 3: orientationChanged((*reinterpret_cast< Qt::Orientation(*)>(_a[1]))); break; case 4: iconSizeChanged((*reinterpret_cast< const QSize(*)>(_a[1]))); break; case 5: toolButtonStyleChanged((*reinterpret_cast< Qt::ToolButtonStyle(*)>(_a[1]))); break; case 6: topLevelChanged((*reinterpret_cast< bool(*)>(_a[1]))); break; case 7: setIconSize((*reinterpret_cast< const QSize(*)>(_a[1]))); break; case 8: setToolButtonStyle((*reinterpret_cast< Qt::ToolButtonStyle(*)>(_a[1]))); break; case 9: d_func()->_q_toggleView((*reinterpret_cast< bool(*)>(_a[1]))); break; case 10: d_func()->_q_updateIconSize((*reinterpret_cast< const QSize(*)>(_a[1]))); break; case 11: d_func()->_q_updateToolButtonStyle((*reinterpret_cast< Qt::ToolButtonStyle(*)>(_a[1]))); break; default: ; } _id -= 12; } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty) { void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< bool*>(_v) = isMovable(); break; case 1: *reinterpret_cast< Qt::ToolBarAreas*>(_v) = allowedAreas(); break; case 2: *reinterpret_cast< Qt::Orientation*>(_v) = orientation(); break; case 3: *reinterpret_cast< QSize*>(_v) = iconSize(); break; case 4: *reinterpret_cast< Qt::ToolButtonStyle*>(_v) = toolButtonStyle(); break; case 5: *reinterpret_cast< bool*>(_v) = isFloating(); break; case 6: *reinterpret_cast< bool*>(_v) = isFloatable(); break; } _id -= 7; } else if (_c == QMetaObject::WriteProperty) { void *_v = _a[0]; switch (_id) { case 0: setMovable(*reinterpret_cast< bool*>(_v)); break; case 1: setAllowedAreas(*reinterpret_cast< Qt::ToolBarAreas*>(_v)); break; case 2: setOrientation(*reinterpret_cast< Qt::Orientation*>(_v)); break; case 3: setIconSize(*reinterpret_cast< QSize*>(_v)); break; case 4: setToolButtonStyle(*reinterpret_cast< Qt::ToolButtonStyle*>(_v)); break; case 6: setFloatable(*reinterpret_cast< bool*>(_v)); break; } _id -= 7; } else if (_c == QMetaObject::ResetProperty) { _id -= 7; } else if (_c == QMetaObject::QueryPropertyDesignable) { bool *_b = reinterpret_cast<bool*>(_a[0]); switch (_id) { case 0: *_b = (qobject_cast<QMainWindow*>(parentWidget())!=0); break; case 1: *_b = (qobject_cast<QMainWindow*>(parentWidget())!=0); break; case 2: *_b = (qobject_cast<QMainWindow*>(parentWidget())==0); break; } _id -= 7; } else if (_c == QMetaObject::QueryPropertyScriptable) { _id -= 7; } else if (_c == QMetaObject::QueryPropertyStored) { _id -= 7; } else if (_c == QMetaObject::QueryPropertyEditable) { _id -= 7; } else if (_c == QMetaObject::QueryPropertyUser) { _id -= 7; } #endif // QT_NO_PROPERTIES return _id; }
void SessionsManager::connectActions() { connect(ActionsManager::getAction(CopyAsPlainTextAction), SIGNAL(triggered()), m_instance, SLOT(actionTriggered())); connect(ActionsManager::getAction(QuickFindAction), SIGNAL(triggered()), m_instance, SLOT(actionTriggered())); connect(ActionsManager::getAction(ActivateAddressFieldAction), SIGNAL(triggered()), m_instance, SLOT(actionTriggered())); connect(ActionsManager::getAction(PasteAndGoAction), SIGNAL(triggered()), m_instance, SLOT(actionTriggered())); connect(ActionsManager::getAction(ActivateTabOnLeftAction), SIGNAL(triggered()), m_instance, SLOT(actionTriggered())); connect(ActionsManager::getAction(ActivateTabOnRightAction), SIGNAL(triggered()), m_instance, SLOT(actionTriggered())); }
//============================================================================= //============================================================================= void ActionWrapper::gotTriggered() { FUNC_DEBUG; emit actionTriggered(this); }
void NotificationActionsButtonsWidget::actionButtonActivated(QAbstractButton* button) { emit actionTriggered(m_actionMap.key(button->text())); }
void MainWindow::on_actionAdd_Voxel_triggered(bool checked) { emit actionTriggered(GLWidget::ACTION_EDIT_VOXELS, checked); }