Skip to content

Commit 95e1796

Browse files
Fix the double border issue DreamSourceLab#130
1 parent e82536c commit 95e1796

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

DSView/pv/dialogs/dsdialog.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ DSDialog::DSDialog(QWidget *parent, bool hasClose) :
3636
QDialog(parent),
3737
_moving(false)
3838
{
39-
setWindowFlags(Qt::FramelessWindowHint | Qt::Dialog | Qt::WindowSystemMenuHint |
40-
Qt::WindowMinimizeButtonHint | Qt::WindowMaximizeButtonHint);
39+
setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint | Qt::WindowSystemMenuHint);
4140
setAttribute(Qt::WA_TranslucentBackground);
4241

4342
build_main(hasClose);

DSView/pv/dialogs/dsmessagebox.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ DSMessageBox::DSMessageBox(QWidget *parent) :
3636
QDialog(parent),
3737
_moving(false)
3838
{
39-
setWindowFlags(Qt::FramelessWindowHint | Qt::Dialog | Qt::WindowSystemMenuHint |
40-
Qt::WindowMinimizeButtonHint | Qt::WindowMaximizeButtonHint);
39+
setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint | Qt::WindowSystemMenuHint);
4140
setAttribute(Qt::WA_TranslucentBackground);
4241
_main = new QWidget(this);
4342
QVBoxLayout *mlayout = new QVBoxLayout(_main);
@@ -51,8 +50,7 @@ DSMessageBox::DSMessageBox(QWidget *parent) :
5150
_main->setGraphicsEffect(bodyShadow);
5251

5352
_msg = new QMessageBox(this);
54-
_msg->setWindowFlags(Qt::FramelessWindowHint | Qt::Widget | Qt::WindowSystemMenuHint |
55-
Qt::WindowMinimizeButtonHint | Qt::WindowMaximizeButtonHint);
53+
_msg->setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint | Qt::WindowSystemMenuHint);
5654

5755
_titlebar = new toolbars::TitleBar(false, this);
5856
_titlebar->setTitle(tr("Message"));

DSView/pv/mainframe.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ MainFrame::MainFrame(DeviceManager &device_manager,
4545
setAttribute(Qt::WA_TranslucentBackground);
4646
// Make this a borderless window which can't
4747
// be resized or moved via the window system
48-
setWindowFlags(Qt::FramelessWindowHint | Qt::WindowSystemMenuHint |
49-
Qt::WindowMinimizeButtonHint | Qt::WindowMaximizeButtonHint);
48+
setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::WindowSystemMenuHint);
5049
setMinimumHeight(minHeight);
5150
setMinimumWidth(minWidth);
5251
//resize(1024, 768);

0 commit comments

Comments
 (0)