mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
[Windows] Fixed building on Windows.
This commit is contained in:
parent
98d4725c18
commit
9069a5de54
|
@ -2381,17 +2381,6 @@ void QupZilla::moveToVirtualDesktop(int desktopId)
|
||||||
bool QupZilla::winEvent(MSG* message, long* result)
|
bool QupZilla::winEvent(MSG* message, long* result)
|
||||||
{
|
{
|
||||||
#else
|
#else
|
||||||
void QupZilla::paintEvent(QPaintEvent* event)
|
|
||||||
{
|
|
||||||
if (m_usingTransparentBackground && !m_actionShowFullScreen->isChecked()) {
|
|
||||||
QPainter p(this);
|
|
||||||
p.setCompositionMode(QPainter::CompositionMode_Clear);
|
|
||||||
p.fillRect(event->rect(), QColor(0, 0, 0, 0));
|
|
||||||
}
|
|
||||||
|
|
||||||
QMainWindow::paintEvent(event);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool QupZilla::nativeEvent(const QByteArray &eventType, void* _message, long* result)
|
bool QupZilla::nativeEvent(const QByteArray &eventType, void* _message, long* result)
|
||||||
{
|
{
|
||||||
Q_UNUSED(eventType)
|
Q_UNUSED(eventType)
|
||||||
|
@ -2441,6 +2430,17 @@ bool QupZilla::nativeEvent(const QByteArray &eventType, void* _message, long* re
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void QupZilla::paintEvent(QPaintEvent* event)
|
||||||
|
{
|
||||||
|
if (m_usingTransparentBackground && !m_actionShowFullScreen->isChecked()) {
|
||||||
|
QPainter p(this);
|
||||||
|
p.setCompositionMode(QPainter::CompositionMode_Clear);
|
||||||
|
p.fillRect(event->rect(), QColor(0, 0, 0, 0));
|
||||||
|
}
|
||||||
|
|
||||||
|
QMainWindow::paintEvent(event);
|
||||||
|
}
|
||||||
|
|
||||||
void QupZilla::applyBlurToMainWindow(bool force)
|
void QupZilla::applyBlurToMainWindow(bool force)
|
||||||
{
|
{
|
||||||
if (isClosing()) {
|
if (isClosing()) {
|
||||||
|
|
|
@ -235,12 +235,11 @@ private:
|
||||||
#if (QT_VERSION < 0x050000)
|
#if (QT_VERSION < 0x050000)
|
||||||
bool winEvent(MSG* message, long* result);
|
bool winEvent(MSG* message, long* result);
|
||||||
#else
|
#else
|
||||||
void paintEvent(QPaintEvent* event);
|
|
||||||
bool nativeEvent(const QByteArray &eventType, void* _message, long* result);
|
bool nativeEvent(const QByteArray &eventType, void* _message, long* result);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void applyBlurToMainWindow(bool force = false);
|
void applyBlurToMainWindow(bool force = false);
|
||||||
|
void paintEvent(QPaintEvent* event);
|
||||||
bool eventFilter(QObject* object, QEvent* event);
|
bool eventFilter(QObject* object, QEvent* event);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user