Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
J
jami-client-windows
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
savoirfairelinux
jami-client-windows
Commits
4be7202c
Commit
4be7202c
authored
Jan 19, 2016
by
Edric Milaret
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
im: add indication when no text message are present
Change-Id: I3b971d238edd65cdedfca531cfa33420928f9e68 Tuleap: #232
parent
23fd3fa9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
2 deletions
+31
-2
callwidget.cpp
callwidget.cpp
+14
-2
callwidget.ui
callwidget.ui
+17
-0
No files found.
callwidget.cpp
View file @
4be7202c
...
...
@@ -608,9 +608,21 @@ CallWidget::on_contactMethodComboBox_currentIndexChanged(const QString& number)
SIGNAL
(
messageInserted
(
QMap
<
QString
,
QString
>
,
ContactMethod
*
,
Media
::
Media
::
Direction
)),
this
,
SLOT
(
slotAccountMessageReceived
(
QMap
<
QString
,
QString
>
,
ContactMethod
*
,
Media
::
Media
::
Direction
)));
auto
messagesPresent
=
txtRecording
->
instantMessagingModel
()
->
rowCount
()
>
0
;
if
(
messagesPresent
)
{
ui
->
listMessageView
->
scrollToBottom
();
txtRecording
->
setAllRead
();
}
ui
->
listMessageView
->
setVisible
(
messagesPresent
);
ui
->
noMessagesLabel
->
setVisible
(
!
messagesPresent
);
if
(
not
messagesPresent
)
{
QMetaObject
::
Connection
connection
=
connect
(
txtRecording
->
instantMessagingModel
(),
&
QAbstractItemModel
::
rowsInserted
,
[
&
]()
{
ui
->
listMessageView
->
setVisible
(
messagesPresent
);
ui
->
noMessagesLabel
->
setVisible
(
!
messagesPresent
);
disconnect
(
connection
);
});
}
}
}
void
...
...
callwidget.ui
View file @
4be7202c
...
...
@@ -755,6 +755,23 @@
</item>
</layout>
</item>
<item
alignment=
"Qt::AlignHCenter|Qt::AlignVCenter"
>
<widget
class=
"QLabel"
name=
"noMessagesLabel"
>
<property
name=
"enabled"
>
<bool>
true
</bool>
</property>
<property
name=
"font"
>
<font>
<pointsize>
12
</pointsize>
<weight>
75
</weight>
<bold>
true
</bold>
</font>
</property>
<property
name=
"text"
>
<string>
Start the conversation !
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QListView"
name=
"listMessageView"
>
<property
name=
"sizePolicy"
>
...
...
Write
Preview
Markdown
is supported
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