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
Plasma
KWayland Server
Commits
e86c1e46
Commit
e86c1e46
authored
May 01, 2021
by
Aleix Pol Gonzalez
🐧
Browse files
textinputv2: readability
Remove unnecessary casts
parent
762f4648
Pipeline
#60405
passed with stage
in 5 minutes and 26 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/server/textinput_v2_interface.cpp
View file @
e86c1e46
...
...
@@ -284,7 +284,7 @@ TextInputV2InterfacePrivate::TextInputV2InterfacePrivate(SeatInterface *seat, Te
void
TextInputV2InterfacePrivate
::
zwp_text_input_v2_enable
(
Resource
*
resource
,
wl_resource
*
s
)
{
Q_UNUSED
(
resource
)
surface
=
QPointer
<
SurfaceInterface
>
(
SurfaceInterface
::
get
(
s
)
)
;
surface
=
SurfaceInterface
::
get
(
s
);
enabled
=
true
;
emit
q
->
enabledChanged
();
}
...
...
@@ -316,7 +316,7 @@ void TextInputV2InterfacePrivate::zwp_text_input_v2_hide_input_panel(Resource *r
void
TextInputV2InterfacePrivate
::
zwp_text_input_v2_set_surrounding_text
(
Resource
*
resource
,
const
QString
&
text
,
int32_t
cursor
,
int32_t
anchor
)
{
Q_UNUSED
(
resource
)
surroundingText
=
QString
(
text
)
;
surroundingText
=
text
;
surroundingTextCursorPosition
=
cursor
;
surroundingTextSelectionAnchor
=
anchor
;
emit
q
->
surroundingTextChanged
();
...
...
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