mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +02:00
No more Mr. Nice Guy, No more Mr. Cleaaaheean ... except today
This commit is contained in:
@@ -95,9 +95,11 @@ Tomahawk::ExternalResolverGui::setupClickHandlerOnUrlButtons( QObject* widget )
|
|||||||
QPushButton* button = qobject_cast< QPushButton* >( widget );
|
QPushButton* button = qobject_cast< QPushButton* >( widget );
|
||||||
Q_ASSERT( button );
|
Q_ASSERT( button );
|
||||||
|
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
|
||||||
connect( button, &QPushButton::clicked, [=]() {
|
connect( button, &QPushButton::clicked, [=]() {
|
||||||
QDesktopServices::openUrl( widget->property( "url" ).toUrl() );
|
QDesktopServices::openUrl( widget->property( "url" ).toUrl() );
|
||||||
});
|
});
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// and recurse
|
// and recurse
|
||||||
|
Reference in New Issue
Block a user