Compile-time connect in PlasmaComponents.Menu

This commit is contained in:
Sebastian Kügler 2014-02-18 01:05:26 +01:00
parent 21eb2d7ce5
commit bc7a54bb09

View File

@ -31,8 +31,7 @@ QMenuProxy::QMenuProxy (QObject *parent)
m_status(DialogStatus::Closed)
{
m_menu = new QMenu(0);
connect(m_menu, SIGNAL(triggered(QAction *)),
this, SLOT(itemTriggered(QAction *)));
connect(m_menu, &QMenu::triggered, this, &QMenuProxy::itemTriggered);
}
QMenuProxy::~QMenuProxy()