1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 06:07:37 +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 <QLayout>
#include <QPainter> #include <QPainter>
#include <QPixmap> #include <QPixmap>
#include <QBitmap>
#include <QPalette> #include <QPalette>
#include <QApplication> #include <QApplication>
#include <QScrollBar> #include <QScrollBar>
@@ -51,6 +52,10 @@
#include <shellapi.h> #include <shellapi.h>
#endif #endif
#ifdef QT_MAC_USE_COCOA
#include "widgets/SourceTreePopupDialog_mac.h"
#endif
// Defined in qpixmapfilter.cpp, private but exported // Defined in qpixmapfilter.cpp, private but exported
extern void qt_blurImage( QPainter *p, QImage &blurImage, qreal radius, bool quality, bool alphaOnly, int transposed = 0 ); 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 // Work around bug in Qt/Mac Cocoa where opening subsequent popups
// would incorrectly calculate the background due to it not being // would incorrectly calculate the background due to it not being
// invalidated. // invalidated.
SourceTreePopupHelper::clearBackground( this ); SourceTreePopupHelper::clearBackground( widget );
#endif #endif
} }

View File

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