mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Fix OSX build
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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>
|
||||||
|
Reference in New Issue
Block a user