Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Raptor Engineering Public Development
dsview
Commits
95e17968
Commit
95e17968
authored
6 years ago
by
DreamSourceLab
Browse files
Options
Download
Email Patches
Plain Diff
Fix the double border issue #130
parent
e82536c7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
+4
-8
DSView/pv/dialogs/dsdialog.cpp
DSView/pv/dialogs/dsdialog.cpp
+1
-2
DSView/pv/dialogs/dsmessagebox.cpp
DSView/pv/dialogs/dsmessagebox.cpp
+2
-4
DSView/pv/mainframe.cpp
DSView/pv/mainframe.cpp
+1
-2
No files found.
DSView/pv/dialogs/dsdialog.cpp
View file @
95e17968
...
...
@@ -36,8 +36,7 @@ DSDialog::DSDialog(QWidget *parent, bool hasClose) :
QDialog
(
parent
),
_moving
(
false
)
{
setWindowFlags
(
Qt
::
FramelessWindowHint
|
Qt
::
Dialog
|
Qt
::
WindowSystemMenuHint
|
Qt
::
WindowMinimizeButtonHint
|
Qt
::
WindowMaximizeButtonHint
);
setWindowFlags
(
Qt
::
Dialog
|
Qt
::
FramelessWindowHint
|
Qt
::
WindowSystemMenuHint
);
setAttribute
(
Qt
::
WA_TranslucentBackground
);
build_main
(
hasClose
);
...
...
This diff is collapsed.
Click to expand it.
DSView/pv/dialogs/dsmessagebox.cpp
View file @
95e17968
...
...
@@ -36,8 +36,7 @@ DSMessageBox::DSMessageBox(QWidget *parent) :
QDialog
(
parent
),
_moving
(
false
)
{
setWindowFlags
(
Qt
::
FramelessWindowHint
|
Qt
::
Dialog
|
Qt
::
WindowSystemMenuHint
|
Qt
::
WindowMinimizeButtonHint
|
Qt
::
WindowMaximizeButtonHint
);
setWindowFlags
(
Qt
::
Dialog
|
Qt
::
FramelessWindowHint
|
Qt
::
WindowSystemMenuHint
);
setAttribute
(
Qt
::
WA_TranslucentBackground
);
_main
=
new
QWidget
(
this
);
QVBoxLayout
*
mlayout
=
new
QVBoxLayout
(
_main
);
...
...
@@ -51,8 +50,7 @@ DSMessageBox::DSMessageBox(QWidget *parent) :
_main
->
setGraphicsEffect
(
bodyShadow
);
_msg
=
new
QMessageBox
(
this
);
_msg
->
setWindowFlags
(
Qt
::
FramelessWindowHint
|
Qt
::
Widget
|
Qt
::
WindowSystemMenuHint
|
Qt
::
WindowMinimizeButtonHint
|
Qt
::
WindowMaximizeButtonHint
);
_msg
->
setWindowFlags
(
Qt
::
Dialog
|
Qt
::
FramelessWindowHint
|
Qt
::
WindowSystemMenuHint
);
_titlebar
=
new
toolbars
::
TitleBar
(
false
,
this
);
_titlebar
->
setTitle
(
tr
(
"Message"
));
...
...
This diff is collapsed.
Click to expand it.
DSView/pv/mainframe.cpp
View file @
95e17968
...
...
@@ -45,8 +45,7 @@ MainFrame::MainFrame(DeviceManager &device_manager,
setAttribute
(
Qt
::
WA_TranslucentBackground
);
// Make this a borderless window which can't
// be resized or moved via the window system
setWindowFlags
(
Qt
::
FramelessWindowHint
|
Qt
::
WindowSystemMenuHint
|
Qt
::
WindowMinimizeButtonHint
|
Qt
::
WindowMaximizeButtonHint
);
setWindowFlags
(
Qt
::
Window
|
Qt
::
FramelessWindowHint
|
Qt
::
WindowSystemMenuHint
);
setMinimumHeight
(
minHeight
);
setMinimumWidth
(
minWidth
);
//resize(1024, 768);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment