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:
@@ -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 )
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user