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:
Ivan Leontiev 2016-01-12 02:19:15 +03:00
parent 3463b720c9
commit 93aa5031c7
2 changed files with 0 additions and 9 deletions

View File

@ -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);

View File

@ -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_