work save: bookmark model

This commit is contained in:
royqh1979 2021-10-21 08:19:15 +08:00
parent 45da8562d5
commit e3c64fa01a
4 changed files with 22 additions and 1 deletions

View File

@ -68,6 +68,7 @@ SOURCES += \
todoparser.cpp \
toolsmanager.cpp \
widgets/aboutdialog.cpp \
widgets/bookmarkmodel.cpp \
widgets/classbrowser.cpp \
widgets/codecompletionlistview.cpp \
widgets/codecompletionpopup.cpp \
@ -180,6 +181,7 @@ HEADERS += \
todoparser.h \
toolsmanager.h \
widgets/aboutdialog.h \
widgets/bookmarkmodel.h \
widgets/classbrowser.h \
widgets/codecompletionlistview.h \
widgets/codecompletionpopup.h \

View File

@ -47,7 +47,7 @@ TodoThread::TodoThread(const QString& filename, QObject *parent): QThread(parent
void TodoThread::run()
{
PSynHighlighter highlighter = highlighterManager.getCppHighlighter();
emit parseStarted();
emit parseStarted(mFilename);
auto action = finally([this]{
emit parseFinished();
});

View File

@ -0,0 +1,6 @@
#include "bookmarkmodel.h"
BookmarkModel::BookmarkModel(QObject* parent):QAbstractItemModel(parent)
{
}

View File

@ -0,0 +1,13 @@
#ifndef BOOKMARKMODEL_H
#define BOOKMARKMODEL_H
#include <QAbstractItemModel>
class BookmarkModel : public QAbstractItemModel
{
Q_OBJECT
public:
BookmarkModel(QObject* parent=nullptr);
};
#endif // BOOKMARKMODEL_H