mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-17 19:37:09 +02:00
Deprecate Softkeys with Qt5
This commit is contained in:
@@ -105,7 +105,11 @@ XmlConsole::XmlConsole(Client* client, QWidget *parent) :
|
|||||||
m_stackOutgoing.paramColor = QColor(0xdd8811);
|
m_stackOutgoing.paramColor = QColor(0xdd8811);
|
||||||
|
|
||||||
QAction *action = new QAction(tr("Close"),this);
|
QAction *action = new QAction(tr("Close"),this);
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
|
||||||
|
// Softkeys were removed in Qt 5
|
||||||
|
// See: http://qt.gitorious.org/qt/qtbase/blobs/stable/dist/changes-5.0.0#line510
|
||||||
action->setSoftKeyRole(QAction::NegativeSoftKey);
|
action->setSoftKeyRole(QAction::NegativeSoftKey);
|
||||||
|
#endif
|
||||||
connect(action, SIGNAL(triggered()), SLOT(close()));
|
connect(action, SIGNAL(triggered()), SLOT(close()));
|
||||||
addAction(action);
|
addAction(action);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user