1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-21 00:12:06 +02:00

Fix OSX build

This commit is contained in:
Leo Franchi 2012-12-05 14:01:38 -05:00
parent 0cced2538b
commit d42e2b33c5
2 changed files with 6 additions and 5 deletions

View File

@ -31,6 +31,7 @@
#include <QLayout>
#include <QPainter>
#include <QPixmap>
#include <QBitmap>
#include <QPalette>
#include <QApplication>
#include <QScrollBar>
@ -51,6 +52,10 @@
#include <shellapi.h>
#endif
#ifdef QT_MAC_USE_COCOA
#include "widgets/SourceTreePopupDialog_mac.h"
#endif
// Defined in qpixmapfilter.cpp, private but exported
extern void qt_blurImage( QPainter *p, QImage &blurImage, qreal radius, bool quality, bool alphaOnly, int transposed = 0 );
@ -908,7 +913,7 @@ drawCompositedPopup( QWidget* widget,
// Work around bug in Qt/Mac Cocoa where opening subsequent popups
// would incorrectly calculate the background due to it not being
// invalidated.
SourceTreePopupHelper::clearBackground( this );
SourceTreePopupHelper::clearBackground( widget );
#endif
}

View File

@ -21,10 +21,6 @@
#include "utils/TomahawkUtilsGui.h"
#ifdef QT_MAC_USE_COCOA
#include "widgets/SourceTreePopupDialog_mac.h"
#endif
#include <QDebug>
#include <QPainter>
#include <QPaintEvent>