Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Konheko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
Konheko
Commits
ced5cde9
Commit
ced5cde9
authored
4 years ago
by
Nicolas Werner
Browse files
Options
Downloads
Patches
Plain Diff
Fix attachement menu opening when typing message
parent
5366f2bb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
qml/pages/ChatPage.qml
+33
-46
33 additions, 46 deletions
qml/pages/ChatPage.qml
with
33 additions
and
46 deletions
qml/pages/ChatPage.qml
+
33
−
46
View file @
ced5cde9
...
...
@@ -22,18 +22,7 @@ Page {
PageHeader
{
id
:
header
title
:
room
.
roomName
()
anchors
{
left
:
parent
.
left
right
:
parent
.
right
}
Connections
{
target
:
room
onRoomNameChanged
:
header
.
title
=
name
}
title
:
room
.
name
}
SilicaListView
{
...
...
@@ -42,7 +31,7 @@ Page {
property
bool
atEnd
:
false
property
int
maxIndex
:
-
1
height
:
parent
.
height
-
bot
.
height
-
header
.
height
height
:
parent
.
height
-
header
.
height
contentHeight
:
height
cacheBuffer
:
1000
clip
:
true
...
...
@@ -100,6 +89,37 @@ Page {
flickable
:
chatView
}
footer
:
Row
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
height
:
messageText
.
height
TextArea
{
id
:
messageText
anchors.bottom
:
parent
.
bottom
placeholderText
:
qsTr
(
"
Enter your message
"
)
label
:
qsTr
(
"
Matrix
"
)
labelVisible
:
true
wrapMode
:
Text
.
Wrap
width
:
parent
.
width
-
sendButton
.
width
}
IconButton
{
id
:
sendButton
anchors.top
:
parent
.
top
icon.source
:
"
image://theme/icon-m-send
"
onClicked
:
{
if
(
messageText
.
text
!=
""
)
room
.
sendTextMessage
(
messageText
.
text
);
messageText
.
text
=
""
;
}
}
}
delegate
:
ListItem
{
id
:
messageItem
...
...
@@ -184,39 +204,6 @@ Page {
}
Row
{
id
:
bot
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
height
:
messageText
.
height
TextArea
{
id
:
messageText
anchors.bottom
:
parent
.
bottom
placeholderText
:
qsTr
(
"
Enter your message
"
)
label
:
qsTr
(
"
Matrix
"
)
labelVisible
:
true
wrapMode
:
Text
.
Wrap
width
:
parent
.
width
-
sendButton
.
width
}
IconButton
{
id
:
sendButton
anchors.top
:
parent
.
top
icon.source
:
"
image://theme/icon-m-send
"
onClicked
:
{
if
(
messageText
.
text
!=
""
)
room
.
sendTextMessage
(
messageText
.
text
);
messageText
.
text
=
""
;
}
}
}
}
PushUpMenu
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment