Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kalendar
Commits
e03e10c9
Commit
e03e10c9
authored
Nov 15, 2021
by
Tobias Fella
Browse files
Port away from onFoo in connections
parent
9a217d17
Pipeline
#98001
failed with stage
in 4 minutes and 6 seconds
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/GlobalMenu.qml
View file @
e03e10c9
...
...
@@ -33,7 +33,7 @@ Labs.MenuBar {
title
:
i18nc
(
"
@action:menu
"
,
"
Edit
"
)
Connections
{
target
:
parentWindow
onActiveFocusItemChanged
:
{
function
onActiveFocusItemChanged
()
{
if
(
parentWindow
.
activeFocusItem
instanceof
TextEdit
||
parentWindow
.
activeFocusItem
instanceof
TextInput
)
{
editMenu
.
field
=
parentWindow
.
activeFocusItem
;
}
...
...
src/contents/ui/Sidebar.qml
View file @
e03e10c9
...
...
@@ -118,7 +118,9 @@ Kirigami.OverlayDrawer {
Connections
{
target
:
Config
onShowMenubarChanged
:
if
(
!
Kirigami
.
Settings
.
isMobile
&&
!
Kirigami
.
Settings
.
hasPlatformMenuBar
)
menu
.
visible
=
!
Config
.
showMenubar
function
onShowMenubarChanged
()
{
if
(
!
Kirigami
.
Settings
.
isMobile
&&
!
Kirigami
.
Settings
.
hasPlatformMenuBar
)
menu
.
visible
=
!
Config
.
showMenubar
}
}
Layout.fillHeight
:
true
...
...
src/contents/ui/WindowMenu.qml
View file @
e03e10c9
...
...
@@ -32,7 +32,7 @@ QQC2.MenuBar {
title
:
i18nc
(
"
@action:menu
"
,
"
Edit
"
)
Connections
{
target
:
parentWindow
onActiveFocusItemChanged
:
{
function
onActiveFocusItemChanged
()
{
if
(
parentWindow
.
activeFocusItem
instanceof
TextEdit
||
parentWindow
.
activeFocusItem
instanceof
TextInput
)
{
editMenu
.
field
=
parentWindow
.
activeFocusItem
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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