mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
[Win][Qt5] Fixed invalid redrawing with transparent background.
This commit is contained in:
parent
3b28e242f7
commit
f95cf48f0e
@ -2358,6 +2358,17 @@ 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)
|
||||||
|
@ -210,10 +210,6 @@ private slots:
|
|||||||
void clearClosedTabsList();
|
void clearClosedTabsList();
|
||||||
void hideNavigationSlot();
|
void hideNavigationSlot();
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
|
||||||
void applyBlurToMainWindow(bool force = false);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool event(QEvent* event);
|
bool event(QEvent* event);
|
||||||
void resizeEvent(QResizeEvent* event);
|
void resizeEvent(QResizeEvent* event);
|
||||||
@ -238,6 +234,10 @@ private:
|
|||||||
#else
|
#else
|
||||||
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 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