mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
* Hard-coded posting to Twitter in SocialWidget.
This commit is contained in:
@@ -230,6 +230,20 @@ SocialWidget::accept()
|
|||||||
{
|
{
|
||||||
tDebug() << "Sharing social link!";
|
tDebug() << "Sharing social link!";
|
||||||
|
|
||||||
|
QVariantMap shareInfo;
|
||||||
|
Tomahawk::InfoSystem::InfoStringHash trackInfo;
|
||||||
|
|
||||||
|
trackInfo["title"] = m_query->track();
|
||||||
|
trackInfo["artist"] = m_query->artist();
|
||||||
|
trackInfo["album"] = m_query->album();
|
||||||
|
|
||||||
|
shareInfo["trackinfo"] = QVariant::fromValue< Tomahawk::InfoSystem::InfoStringHash >( trackInfo );
|
||||||
|
shareInfo["message"] = ui->textEdit->toPlainText();
|
||||||
|
shareInfo["accountlist"] = QStringList( "all" );
|
||||||
|
|
||||||
|
Tomahawk::InfoSystem::InfoPushData pushData( uuid(), Tomahawk::InfoSystem::InfoShareTrack, shareInfo, Tomahawk::InfoSystem::PushNoFlag );
|
||||||
|
Tomahawk::InfoSystem::InfoSystem::instance()->pushInfo( pushData );
|
||||||
|
|
||||||
deleteLater();
|
deleteLater();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user