summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/PopupWindow.cpp5
-rw-r--r--src/desktop/BrowserWindow.cpp5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/core/PopupWindow.cpp b/src/core/PopupWindow.cpp
index 221355f..e440fe4 100644
--- a/src/core/PopupWindow.cpp
+++ b/src/core/PopupWindow.cpp
@@ -22,6 +22,11 @@ PopupWindow::PopupWindow(QWindow* parent)
: QQuickCanvas(parent)
{
setWindowFlags(Qt::Popup);
+ QSurfaceFormat surfaceFormat;
+ surfaceFormat.setAlphaBufferSize(8);
+ setFormat(surfaceFormat);
+ setClearBeforeRendering(true);
+ setClearColor(QColor(Qt::transparent));
}
void PopupWindow::showEvent(QShowEvent* ev)
diff --git a/src/desktop/BrowserWindow.cpp b/src/desktop/BrowserWindow.cpp
index 00f915e..710adfa 100644
--- a/src/desktop/BrowserWindow.cpp
+++ b/src/desktop/BrowserWindow.cpp
@@ -38,6 +38,11 @@ BrowserWindow::BrowserWindow(const QStringList& arguments)
, m_browserView(0)
{
setWindowFlags(Qt::Window | Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint);
+ QSurfaceFormat surfaceFormat;
+ surfaceFormat.setAlphaBufferSize(8);
+ setFormat(surfaceFormat);
+ setClearBeforeRendering(true);
+ setClearColor(QColor(Qt::transparent));
qmlRegisterType<Shortcut>("Snowshoe", 1, 0, "Shortcut");
restoreWindowGeometry();
setupDeclarativeEnvironment();