void SideDockWidget::moveAction() { QAction *action = static_cast<QAction*>(sender()); if (!action) { return; } Qt::DockWidgetArea area = (Qt::DockWidgetArea)action->data().toInt(); emit moveActionTo(area,current); }
void ToolDockWidget::unsplitAction() { QAction *action = static_cast<QAction*>(sender()); if (!action) { return; } Qt::DockWidgetArea area = (Qt::DockWidgetArea)action->data().toInt(); emit moveActionTo(area,current,false); }