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
PIM
PIM EventViews
Commits
7ebc4302
Commit
7ebc4302
authored
Oct 24, 2021
by
Friedrich W. H. Kossebau
Browse files
Show decoration elements without frame in all widget styles
parent
78c9be33
Pipeline
#91380
canceled with stage
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/agenda/agendaview.cpp
View file @
7ebc4302
...
...
@@ -1088,12 +1088,11 @@ void AgendaView::placeDecorations(DecorationList &decoList, QDate date, QWidget
for
(
CalendarDecoration
::
Decoration
*
deco
:
std
::
as_const
(
decoList
))
{
const
CalendarDecoration
::
Element
::
List
elements
=
forWeek
?
deco
->
weekElements
(
date
)
:
deco
->
dayElements
(
date
);
if
(
!
elements
.
isEmpty
())
{
auto
decoHBox
=
new
Q
Frame
(
labelBox
);
auto
decoHBox
=
new
Q
Widget
(
labelBox
);
labelBox
->
layout
()
->
addWidget
(
decoHBox
);
auto
layout
=
new
QHBoxLayout
(
decoHBox
);
layout
->
setSpacing
(
0
);
layout
->
setContentsMargins
(
0
,
0
,
0
,
0
);
decoHBox
->
setFrameShape
(
QFrame
::
StyledPanel
);
decoHBox
->
setMinimumWidth
(
1
);
for
(
CalendarDecoration
::
Element
*
it
:
elements
)
{
...
...
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