Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-client-windows
Commits
43ecaf45
Commit
43ecaf45
authored
Dec 13, 2019
by
Ming Rui Zhang
Browse files
shortcut: block selecting elements that exceed the limit of smartlist
Change-Id: I2ac2442f78ebd678377b20b92ad3076767c68d9b
parent
56a8b8f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/callwidget.cpp
View file @
43ecaf45
...
...
@@ -1582,12 +1582,20 @@ CallWidget::registerShortCuts()
connect
(
focusOnSmartListNextElementSC
,
&
QShortcut
::
activated
,
[
this
]
{
ui
->
smartList
->
setCurrentIndex
(
ui
->
smartList
->
model
()
->
index
(
ui
->
smartList
->
currentIndex
().
row
()
+
1
,
0
));
if
(
ui
->
smartList
->
currentIndex
().
row
()
==
ui
->
smartList
->
model
()
->
rowCount
()
-
1
)
{
return
;
}
else
{
ui
->
smartList
->
setCurrentIndex
(
ui
->
smartList
->
model
()
->
index
(
ui
->
smartList
->
currentIndex
().
row
()
+
1
,
0
));
}
});
connect
(
focusOnSmartListPrevElementSC
,
&
QShortcut
::
activated
,
[
this
]
{
ui
->
smartList
->
setCurrentIndex
(
ui
->
smartList
->
model
()
->
index
(
ui
->
smartList
->
currentIndex
().
row
()
-
1
,
0
));
if
(
ui
->
smartList
->
currentIndex
().
row
()
==
0
)
{
return
;
}
else
{
ui
->
smartList
->
setCurrentIndex
(
ui
->
smartList
->
model
()
->
index
(
ui
->
smartList
->
currentIndex
().
row
()
-
1
,
0
));
}
});
connect
(
focusOnContactSearchBarSC
,
&
QShortcut
::
activated
,
...
...
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