forked from qt-creator/qt-creator
Core: Use Qt5-style connects
The heavy lifting was done by clazy. Change-Id: I2dde14919d917816d02117338205f8f861d8af0a Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
7a9cc3499e
commit
5646480f27
@@ -62,21 +62,21 @@ WindowSupport::WindowSupport(QWidget *window, const Context &context)
|
||||
if (UseMacShortcuts) {
|
||||
m_minimizeAction = new QAction(this);
|
||||
ActionManager::registerAction(m_minimizeAction, Constants::MINIMIZE_WINDOW, context);
|
||||
connect(m_minimizeAction, SIGNAL(triggered()), m_window, SLOT(showMinimized()));
|
||||
connect(m_minimizeAction, &QAction::triggered, m_window, &QWidget::showMinimized);
|
||||
|
||||
m_zoomAction = new QAction(this);
|
||||
ActionManager::registerAction(m_zoomAction, Constants::ZOOM_WINDOW, context);
|
||||
connect(m_zoomAction, SIGNAL(triggered()), m_window, SLOT(showMaximized()));
|
||||
connect(m_zoomAction, &QAction::triggered, m_window, &QWidget::showMaximized);
|
||||
|
||||
m_closeAction = new QAction(this);
|
||||
ActionManager::registerAction(m_closeAction, Constants::CLOSE_WINDOW, context);
|
||||
connect(m_closeAction, SIGNAL(triggered()), m_window, SLOT(close()), Qt::QueuedConnection);
|
||||
connect(m_closeAction, &QAction::triggered, m_window, &QWidget::close, Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
m_toggleFullScreenAction = new QAction(this);
|
||||
updateFullScreenAction();
|
||||
ActionManager::registerAction(m_toggleFullScreenAction, Constants::TOGGLE_FULLSCREEN, context);
|
||||
connect(m_toggleFullScreenAction, SIGNAL(triggered()), this, SLOT(toggleFullScreen()));
|
||||
connect(m_toggleFullScreenAction, &QAction::triggered, this, &WindowSupport::toggleFullScreen);
|
||||
|
||||
WindowList::addWindow(window);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user