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
44ce0c59
Commit
44ce0c59
authored
Jun 06, 2020
by
Jean-Baptiste Mardelle
Browse files
Smaller icons in notes widget toolbar
parent
72e0f42d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/project/notesplugin.cpp
View file @
44ce0c59
...
...
@@ -17,13 +17,19 @@ the Free Software Foundation, either version 3 of the License, or
#include "project/projectmanager.h"
#include "klocalizedstring.h"
#include <QStyle>
NotesPlugin
::
NotesPlugin
(
ProjectManager
*
projectManager
)
:
QObject
(
projectManager
)
{
QWidget
*
container
=
new
QWidget
();
auto
*
lay
=
new
QVBoxLayout
();
lay
->
setSpacing
(
0
);
m_tb
=
new
QToolBar
();
m_tb
->
setToolButtonStyle
(
Qt
::
ToolButtonIconOnly
);
int
size
=
container
->
style
()
->
pixelMetric
(
QStyle
::
PM_SmallIconSize
);
QSize
iconSize
(
size
,
size
);
m_tb
->
setIconSize
(
iconSize
);
lay
->
addWidget
(
m_tb
);
m_widget
=
new
NotesWidget
();
lay
->
addWidget
(
m_widget
);
...
...
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