qtquick: Don't assume in the C++ that the tab bar has a list view

Getting the tab index by QPoint is now done in QML, so it can
be overridden by the user.
This commit is contained in:
Sergio Martins
2022-07-18 10:05:16 +01:00
parent dd1363de6c
commit 82ad2242dd
4 changed files with 54 additions and 58 deletions

View File

@@ -72,9 +72,7 @@ protected:
void init() override;
private:
QHash<int, QQuickItem *> qmlTabs() const;
QQuickItem *tabAt(int index) const;
QQuickItem *listView() const;
QPointer<QQuickItem> m_tabBarQmlItem;
KDBindings::ScopedConnection m_tabBarAutoHideChanged;
};