Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
visimpl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SimVisSuite
visimpl
Commits
b5bdba9a
Commit
b5bdba9a
authored
1 year ago
by
Felix de las Pozas
Browse files
Options
Downloads
Patches
Plain Diff
Fix save screenshot icon missing in windows build.
parent
cd1db310
No related branches found
Branches containing commit
Tags
1.8.12
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
visimpl/MainWindow.cpp
+6
-2
6 additions, 2 deletions
visimpl/MainWindow.cpp
with
6 additions
and
2 deletions
visimpl/MainWindow.cpp
+
6
−
2
View file @
b5bdba9a
...
...
@@ -1037,7 +1037,11 @@ namespace visimpl
QPixmap
pixmap
(
_openGLWidget
->
size
());
_openGLWidget
->
render
(
&
pixmap
);
const
QIcon
icon
(
":/icons/screenshot.svg"
);
SaveScreenshotDialog
dialog
(
pixmap
.
width
(),
pixmap
.
height
(),
pixmap
.
toImage
(),
this
);
dialog
.
setWindowIcon
(
icon
);
if
(
dialog
.
exec
()
==
QDialog
::
Rejected
)
return
;
...
...
@@ -1071,7 +1075,7 @@ namespace visimpl
auto
message
=
tr
(
"Couln't save screenshot file '%1'. Problem writing format '%2'."
).
arg
(
fileInfo
.
fileName
()).
arg
(
extension
);
QMessageBox
msgBox
(
this
);
msgBox
.
setWindowIcon
(
QIcon
(
":/icons/screenshot.svg"
)
);
msgBox
.
setWindowIcon
(
icon
);
msgBox
.
setWindowTitle
(
dialogTitle
);
msgBox
.
setText
(
problemText
);
msgBox
.
setDetailedText
(
message
);
...
...
@@ -1083,7 +1087,7 @@ namespace visimpl
auto
message
=
tr
(
"Couln't save screenshot file '%1'. Unrecognized extension '%1'."
).
arg
(
fileName
.
split
(
'/'
).
last
()).
arg
(
extension
);
QMessageBox
msgBox
(
this
);
msgBox
.
setWindowIcon
(
QIcon
(
":/icons/screenshot.png"
)
);
msgBox
.
setWindowIcon
(
icon
);
msgBox
.
setWindowTitle
(
dialogTitle
);
msgBox
.
setText
(
problemText
);
msgBox
.
setDetailedText
(
message
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment