Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dtk-widgets
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
11
Issues
11
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
dtk
dtk-widgets
Commits
d7d82914
Commit
d7d82914
authored
May 29, 2019
by
NICLAUSSE Nicolas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not take snapshot if region is not visible
parent
5e51e200
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/dtkWidgets/dtkWidgetsWorkspaceStackBar.cpp
src/dtkWidgets/dtkWidgetsWorkspaceStackBar.cpp
+2
-0
No files found.
src/dtkWidgets/dtkWidgetsWorkspaceStackBar.cpp
View file @
d7d82914
...
...
@@ -113,6 +113,8 @@ void dtkWidgetsWorkspaceStackBarItem::setSource(QWidget *source)
timer
->
setSingleShot
(
false
);
connect
(
timer
,
&
QTimer
::
timeout
,
[
=
]
(
void
)
{
if
(
this
->
visibleRegion
().
isNull
())
return
;
QPixmap
pixmap
(
this
->
source
->
size
());
this
->
source
->
render
(
&
pixmap
);
this
->
overview
->
setPixmap
(
pixmap
.
scaledToWidth
(
280
));
...
...
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