Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
214cd6d5
Commit
214cd6d5
authored
Mar 08, 2021
by
Julius Künzel
Browse files
Project Bin: do not allow zoom 0 for icon view (nothing is visible)
parent
e771cc04
Pipeline
#53526
passed with stage
in 10 minutes and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/bin/bin.cpp
View file @
214cd6d5
...
...
@@ -2137,7 +2137,7 @@ void Bin::slotInitView(QAction *action)
}
m_itemView
->
setMouseTracking
(
true
);
m_itemView
->
viewport
()
->
installEventFilter
(
this
);
QSize
zoom
=
m_iconSize
*
(
m_slider
->
value
(
)
/
4.0
);
QSize
zoom
=
m_iconSize
*
(
(
m_listType
==
BinIconView
?
qMax
(
1
,
m_slider
->
value
())
:
m_slider
->
value
()
)
/
4.0
);
m_itemView
->
setIconSize
(
zoom
);
QPixmap
pix
(
zoom
);
pix
.
fill
(
Qt
::
lightGray
);
...
...
@@ -2253,7 +2253,7 @@ void Bin::slotSetIconSize(int size)
}
KdenliveSettings
::
setBin_zoom
(
size
);
QSize
zoom
=
m_iconSize
;
zoom
=
zoom
*
(
size
/
4.0
);
zoom
=
zoom
*
(
(
m_listType
==
BinIconView
?
qMax
(
1
,
size
)
:
size
)
/
4.0
);
m_itemView
->
setIconSize
(
zoom
);
if
(
m_listType
==
BinIconView
)
{
auto
*
view
=
static_cast
<
MyListView
*>
(
m_itemView
);
...
...
Write
Preview
Supports
Markdown
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