1
0
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:
Uwe L. Korn
2013-07-26 16:06:13 +02:00
parent 6bcc662f7b
commit 0dd64c8e36

View File

@@ -105,7 +105,11 @@ XmlConsole::XmlConsole(Client* client, QWidget *parent) :
m_stackOutgoing.paramColor = QColor(0xdd8811);
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);
#endif
connect(action, SIGNAL(triggered()), SLOT(close()));
addAction(action);
}