mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 07:36:48 +02:00
Add workaround for QtCurve, so we don't set our own proxy style. Warning: WILL LOOK LIKE CRAP
This commit is contained in:
@@ -82,7 +82,12 @@ TomahawkWindow::TomahawkWindow( QWidget* parent )
|
|||||||
, m_trayIcon( new TomahawkTrayIcon( this ) )
|
, m_trayIcon( new TomahawkTrayIcon( this ) )
|
||||||
, m_sourcetree( 0 )
|
, m_sourcetree( 0 )
|
||||||
{
|
{
|
||||||
qApp->setStyle( new ProxyStyle() );
|
// HACK QtCurve causes an infinite loop on startup. This is because setStyle calls setPalette, which calls ensureBaseStyle,
|
||||||
|
// which loads QtCurve. QtCurve calls setPalette, which creates an infinite loop. The UI will look like CRAP with QtCurve, but
|
||||||
|
// the user is asking for it explicitly... so he's gonna be stuck with an ugly UI.
|
||||||
|
if ( !QString( qApp->style()->metaObject()->className() ).toLower().contains( "qtcurve" ) )
|
||||||
|
qApp->setStyle( new ProxyStyle() );
|
||||||
|
|
||||||
setWindowIcon( QIcon( RESPATH "icons/tomahawk-icon-128x128.png" ) );
|
setWindowIcon( QIcon( RESPATH "icons/tomahawk-icon-128x128.png" ) );
|
||||||
|
|
||||||
#ifdef Q_WS_MAC
|
#ifdef Q_WS_MAC
|
||||||
|
Reference in New Issue
Block a user