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
KNotes
Commits
67f22524
Commit
67f22524
authored
Nov 08, 2020
by
Laurent Montel
😁
Browse files
Fix build on windows
parent
57a76c31
Pipeline
#40082
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/notes/knote.cpp
View file @
67f22524
...
...
@@ -320,9 +320,9 @@ void KNote::slotUpdateReadOnly()
void
KNote
::
updateAllAttributes
()
{
#if KDEPIM_HAVE_X11
auto
*
attribute
=
mItem
.
attribute
<
NoteShared
::
NoteDisplayAttribute
>
(
Akonadi
::
Item
::
AddIfMissing
);
#if KDEPIM_HAVE_X11
KWindowInfo
info
(
winId
(),
NET
::
WMDesktop
);
const
int
count
=
KWindowSystem
::
numberOfDesktops
();
for
(
int
n
=
1
;
n
<=
count
;
++
n
)
{
...
...
@@ -568,7 +568,7 @@ void KNote::updateKeepAboveBelow(bool save)
#if KDEPIM_HAVE_X11
NET
::
States
state
=
KWindowInfo
(
winId
(),
NET
::
WMState
).
state
();
#else
NET
::
States
state
=
0
;
// neutral state, TODO
NET
::
States
state
=
{}
;
// neutral state, TODO
#endif
auto
*
attribute
=
mItem
.
attribute
<
NoteShared
::
NoteDisplayAttribute
>
(
Akonadi
::
Item
::
AddIfMissing
);
...
...
@@ -610,6 +610,7 @@ void KNote::slotUpdateShowInTaskbar()
void
KNote
::
slotUpdateDesktopActions
()
{
#if KDEPIM_HAVE_X11
m_toDesktop
->
clear
();
QAction
*
act
=
m_toDesktop
->
addAction
(
i18n
(
"&All Desktops"
));
...
...
@@ -631,6 +632,7 @@ void KNote::slotUpdateDesktopActions()
desktopAct
->
setChecked
(
true
);
}
}
#endif
}
// -------------------- private methods -------------------- //
...
...
Laurent Montel
😁
@mlaurent
mentioned in commit
e1178c32
·
Nov 08, 2020
mentioned in commit
e1178c32
mentioned in commit e1178c32ae72799422e933de9e505cd4e9a854a2
Toggle commit list
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