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

* Always apply ProxyStyle.

This commit is contained in:
Christian Muehlhaeuser
2011-07-21 00:43:03 +02:00
parent 2f95e0b191
commit 7f4d64d8dc

View File

@@ -160,13 +160,11 @@ TomahawkWindow::saveSettings()
void
TomahawkWindow::applyPlatformTweaks()
{
#ifdef Q_WS_X11
// 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() );
#endif
#ifdef Q_WS_MAC
setUnifiedTitleAndToolBarOnMac( true );