mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-14 01:54:07 +02:00
* Always apply ProxyStyle.
This commit is contained in:
@@ -160,13 +160,11 @@ TomahawkWindow::saveSettings()
|
|||||||
void
|
void
|
||||||
TomahawkWindow::applyPlatformTweaks()
|
TomahawkWindow::applyPlatformTweaks()
|
||||||
{
|
{
|
||||||
#ifdef Q_WS_X11
|
|
||||||
// HACK QtCurve causes an infinite loop on startup. This is because setStyle calls setPalette, which calls ensureBaseStyle,
|
// 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
|
// 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.
|
// 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" ) )
|
if ( !QString( qApp->style()->metaObject()->className() ).toLower().contains( "qtcurve" ) )
|
||||||
qApp->setStyle( new ProxyStyle() );
|
qApp->setStyle( new ProxyStyle() );
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef Q_WS_MAC
|
#ifdef Q_WS_MAC
|
||||||
setUnifiedTitleAndToolBarOnMac( true );
|
setUnifiedTitleAndToolBarOnMac( true );
|
||||||
|
Reference in New Issue
Block a user