1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

jreen hack for qt5

This commit is contained in:
Dominik Schmidt
2013-05-25 18:45:17 +02:00
parent 16417ef7ab
commit 578c89c1b2
3 changed files with 4 additions and 3 deletions

View File

@@ -38,6 +38,7 @@ namespace Accounts
class ACCOUNTDLLEXPORT XmppAccountFactory : public AccountFactory
{
Q_PLUGIN_METADATA( IID "org.tomahawk-player.Player.AccountFactory" )
Q_OBJECT
Q_INTERFACES( Tomahawk::Accounts::AccountFactory )

View File

@@ -105,7 +105,7 @@ XmlConsole::XmlConsole(Client* client, QWidget *parent) :
m_stackOutgoing.paramColor = QColor(0xdd8811);
QAction *action = new QAction(tr("Close"),this);
action->setSoftKeyRole(QAction::NegativeSoftKey);
// action->setSoftKeyRole(QAction::NegativeSoftKey);
connect(action, SIGNAL(triggered()), SLOT(close()));
addAction(action);
}

View File

@@ -100,7 +100,7 @@ XmppSipPlugin::XmppSipPlugin( Account* account )
, m_pubSubManager( 0 )
#endif
{
Jreen::Logger::addHandler( JreenMessageHandler );
// Jreen::Logger::addHandler( JreenMessageHandler );
m_currentUsername = readUsername();
m_currentServer = readServer();
@@ -115,7 +115,7 @@ XmppSipPlugin::XmppSipPlugin( Account* account )
setupClientHelper();
m_client->registerPayload( new TomahawkXmppMessageFactory );
m_currentResource = QString::fromAscii( "tomahawk%1" ).arg( QString::number( qrand() % 10000 ) );
m_currentResource = QString::fromLatin1( "tomahawk%1" ).arg( QString::number( qrand() % 10000 ) );
m_client->setResource( m_currentResource );
#ifndef ENABLE_HEADLESS