1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 21:57:41 +02:00

tweak icons, make things work more

This commit is contained in:
Leo Franchi
2011-05-03 18:41:01 -04:00
parent 811ac70fa6
commit 3b734df57e
14 changed files with 28 additions and 8 deletions

View File

@@ -19,8 +19,8 @@ add_definitions(-DGOOGLE_WRAPPER)
qt4_add_resources( RCX_SRCS "resources.qrc" ) qt4_add_resources( RCX_SRCS "resources.qrc" )
qt4_wrap_cpp( googleMoc googlewrapper.h ) qt4_wrap_cpp( googleMoc ../jabber.h ../avatarmanager.h googlewrapper.h )
add_library( tomahawk_sipgoogle SHARED ${googleSources} ${googleMoc} ${jabberMoc} ${RCX_SRCS} ) add_library( tomahawk_sipgoogle SHARED ${googleSources} ${googleMoc} ${googleMoc} ${RCX_SRCS} )
target_link_libraries( tomahawk_sipgoogle target_link_libraries( tomahawk_sipgoogle
${QT_LIBRARIES} ${QT_LIBRARIES}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@@ -31,7 +31,7 @@ GoogleWrapperFactory::createPlugin( const QString& pluginId )
QIcon QIcon
GoogleWrapperFactory::icon() const GoogleWrapperFactory::icon() const
{ {
return QIcon( ":/gmail-logo.jpg" ); return QIcon( ":/gmail-logo.png" );
} }
GoogleWrapper::GoogleWrapper ( const QString& pluginID ) GoogleWrapper::GoogleWrapper ( const QString& pluginID )
@@ -45,7 +45,7 @@ GoogleWrapper::GoogleWrapper ( const QString& pluginID )
QIcon QIcon
GoogleWrapper::icon() const GoogleWrapper::icon() const
{ {
return QIcon( ":/gmail-logo.jpg" ); return QIcon( ":/gmail-logo.png" );
} }

View File

@@ -1,5 +1,5 @@
<!DOCTYPE RCC><RCC version="1.0"> <!DOCTYPE RCC><RCC version="1.0">
<qresource> <qresource>
<file>gmail-logo.jpg</file> <file>gmail-logo.png</file>
</qresource> </qresource>
</RCC> </RCC>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@@ -1,5 +1,5 @@
<!DOCTYPE RCC><RCC version="1.0"> <!DOCTYPE RCC><RCC version="1.0">
<qresource> <qresource>
<file>twitter-icon.jpg</file> <file>twitter-icon.png</file>
</qresource> </qresource>
</RCC> </RCC>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@@ -43,7 +43,7 @@ TwitterFactory::createPlugin( const QString& pluginId )
QIcon TwitterFactory::icon() const QIcon TwitterFactory::icon() const
{ {
return QIcon( ":/twitter-icon.jpg" ); return QIcon( ":/twitter-icon.png" );
} }
@@ -124,7 +124,7 @@ TwitterPlugin::accountName() const
QIcon QIcon
TwitterPlugin::icon() const TwitterPlugin::icon() const
{ {
return QIcon( ":/twitter-icon.jpg" ); return QIcon( ":/twitter-icon.png" );
} }

View File

@@ -0,0 +1,5 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>zeroconf-icon.png</file>
</qresource>
</RCC>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@@ -52,6 +52,12 @@ ZeroconfPlugin::connectionState() const
return m_state; return m_state;
} }
QIcon
ZeroconfFactory::icon() const
{
return QIcon( ":/zeroconf-icon.png" );
}
bool bool
ZeroconfPlugin::connectPlugin( bool /*startup*/ ) ZeroconfPlugin::connectPlugin( bool /*startup*/ )
@@ -82,6 +88,13 @@ ZeroconfPlugin::disconnectPlugin()
m_zeroconf = 0; m_zeroconf = 0;
} }
QIcon
ZeroconfPlugin::icon() const
{
return QIcon( ":/zeroconf-icon.png" );
}
void void
ZeroconfPlugin::lanHostFound( const QString& host, int port, const QString& name, const QString& nodeid ) ZeroconfPlugin::lanHostFound( const QString& host, int port, const QString& name, const QString& nodeid )
{ {

View File

@@ -38,6 +38,7 @@ public:
virtual QString prettyName() const { return "Local Network"; } virtual QString prettyName() const { return "Local Network"; }
virtual bool isCreatable() const { return false; }; virtual bool isCreatable() const { return false; };
virtual SipPlugin* createPlugin ( const QString& pluginId = QString() ); virtual SipPlugin* createPlugin ( const QString& pluginId = QString() );
virtual QIcon icon() const;
}; };
class SIPDLLEXPORT ZeroconfPlugin : public SipPlugin class SIPDLLEXPORT ZeroconfPlugin : public SipPlugin
@@ -64,6 +65,7 @@ public:
virtual const QString accountName() const; virtual const QString accountName() const;
virtual ConnectionState connectionState() const; virtual ConnectionState connectionState() const;
virtual bool isValid() const { return true; }; virtual bool isValid() const { return true; };
virtual QIcon icon() const;
public slots: public slots:
virtual bool connectPlugin( bool startup ); virtual bool connectPlugin( bool startup );