Fix autoscroll fail to follow the selection in "InternetView"
The cause of this issue was the missing call of the parent class method in "InternetView::currentChanged". Removed "InternetView::CurrentIndexChanged" signal along with the "InternetView::currentChanged" method since it looks redundant, the "InternetView::selectionModel" and its "currentChanged" signal can be used instead, also it isn't used anywhere in the code. Resolves: #4485
This commit is contained in:
parent
3463b720c9
commit
93aa5031c7
|
@ -47,11 +47,6 @@ void InternetView::contextMenuEvent(QContextMenuEvent* e) {
|
|||
e->globalPos());
|
||||
}
|
||||
|
||||
void InternetView::currentChanged(const QModelIndex& current,
|
||||
const QModelIndex&) {
|
||||
emit CurrentIndexChanged(current);
|
||||
}
|
||||
|
||||
void InternetView::setModel(QAbstractItemModel* model) {
|
||||
AutoExpandingTreeView::setModel(model);
|
||||
|
||||
|
|
|
@ -33,11 +33,7 @@ class InternetView : public AutoExpandingTreeView {
|
|||
void contextMenuEvent(QContextMenuEvent* e);
|
||||
|
||||
// QTreeView
|
||||
void currentChanged(const QModelIndex& current, const QModelIndex& previous);
|
||||
void setModel(QAbstractItemModel* model);
|
||||
|
||||
signals:
|
||||
void CurrentIndexChanged(const QModelIndex& index);
|
||||
};
|
||||
|
||||
#endif // INTERNET_CORE_INTERNETVIEW_H_
|
||||
|
|
Loading…
Reference in New Issue