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-daemon
Commits
a99d40fe
Commit
a99d40fe
authored
Jul 19, 2012
by
Emmanuel Lepage Vallee
Browse files
[ #13690 ] Fix IM scrolling
parent
67430e52
Changes
2
Hide whitespace changes
Inline
Side-by-side
kde/src/widgets/IMTab.cpp
View file @
a99d40fe
...
...
@@ -85,4 +85,12 @@ IMTab::IMTab(InstantMessagingModel* model,QWidget* parent) : QListView(parent)
// setWrapping(true);
setUniformItemSizes
(
false
);
setItemDelegate
(
new
ImDelegates
(
this
));
setVerticalScrollMode
(
ScrollPerPixel
);
connect
(
model
,
SIGNAL
(
dataChanged
(
QModelIndex
,
QModelIndex
)),
this
,
SLOT
(
scrollBottom
()));
}
void
IMTab
::
scrollBottom
()
{
scrollTo
(
model
()
->
index
(
model
()
->
rowCount
()
-
1
,
0
));
}
\ No newline at end of file
kde/src/widgets/IMTab.h
View file @
a99d40fe
...
...
@@ -44,6 +44,8 @@ class IMTab : public QListView
Q_OBJECT
public:
IMTab
(
InstantMessagingModel
*
model
,
QWidget
*
parent
=
nullptr
);
private
slots
:
void
scrollBottom
();
};
#endif // IM_MANAGER
\ No newline at end of file
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