2
0
forked from Ivasoft/DSView

Merge branch 'dev-tai' of https://github.com/DreamSourceLab/DSView into dev-tai

This commit is contained in:
DreamSourceLab
2022-04-23 17:23:23 +08:00
24 changed files with 610 additions and 307 deletions

View File

@@ -47,6 +47,7 @@
#include "dsvdef.h"
#include "config/appconfig.h"
#include "ui/msgbox.h"
#include "appcontrol.h"
#include <algorithm>
@@ -61,6 +62,8 @@ MainFrame::MainFrame()
_titleBar = NULL;
_mainWindow = NULL;
AppControl::Instance()->SetTopWindow(this);
setAttribute(Qt::WA_TranslucentBackground);
// Make this a borderless window which can't
// be resized or moved via the window system
@@ -77,8 +80,6 @@ MainFrame::MainFrame()
QIcon icon;
icon.addFile(QString::fromUtf8(":/icons/logo.svg"), QSize(), QIcon::Normal, QIcon::Off);
setWindowIcon(icon);
app::get_app_window_instance(this, true);
// Title
_titleBar = new toolbars::TitleBar(true, this);