mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-07 03:22:16 +08:00
update
This commit is contained in:
@ -1,12 +1,11 @@
|
||||
#include "FluTreeModel.h"
|
||||
|
||||
#include <QMetaEnum>
|
||||
#include <utility>
|
||||
|
||||
FluTreeNode::FluTreeNode(QObject *parent) : QObject{parent} {
|
||||
}
|
||||
|
||||
FluTreeModel::FluTreeModel(QObject *parent) : QAbstractItemModel{parent} {
|
||||
FluTreeModel::FluTreeModel(QObject *parent) : QAbstractTableModel{parent} {
|
||||
_dataSourceSize = 0;
|
||||
}
|
||||
|
||||
@ -17,7 +16,7 @@ QModelIndex FluTreeModel::parent(const QModelIndex &child) const {
|
||||
QModelIndex FluTreeModel::index(int row, int column, const QModelIndex &parent) const {
|
||||
if (!hasIndex(row, column, parent) || parent.isValid())
|
||||
return {};
|
||||
return createIndex(row, column, _rows.at(row));
|
||||
return createIndex(row, column);
|
||||
}
|
||||
|
||||
int FluTreeModel::rowCount(const QModelIndex &parent) const {
|
||||
|
Reference in New Issue
Block a user