Commit 6225a55b authored by jan.koester's avatar jan.koester
Browse files

test

parent 34e23b3e
Loading
Loading
Loading
Loading
+5 −0
Changes for editor/gitfilesystemmodel.cpp: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -111,6 +111,11 @@ QVariant GitFileSystemModel::data(const QModelIndex &index, int role) const {
    return QFileSystemModel::data(index, role);
}

int GitFileSystemModel::columnCount(const QModelIndex &parent) const {
    Q_UNUSED(parent);
    return 1;
}

void GitFileSystemModel::updateGitIgnore(const QString &repoPath) {
    QString gitPath = findGitRepo(repoPath);
    if (gitPath.isEmpty()) {
+1 −0
Changes for editor/gitfilesystemmodel.h: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ public:

    QHash<int, QByteArray> roleNames() const override;
    QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
    int columnCount(const QModelIndex &parent = QModelIndex()) const override;

    Q_INVOKABLE void refreshGitStatus();