work save: bookmark model
This commit is contained in:
parent
45da8562d5
commit
e3c64fa01a
|
@ -68,6 +68,7 @@ SOURCES += \
|
||||||
todoparser.cpp \
|
todoparser.cpp \
|
||||||
toolsmanager.cpp \
|
toolsmanager.cpp \
|
||||||
widgets/aboutdialog.cpp \
|
widgets/aboutdialog.cpp \
|
||||||
|
widgets/bookmarkmodel.cpp \
|
||||||
widgets/classbrowser.cpp \
|
widgets/classbrowser.cpp \
|
||||||
widgets/codecompletionlistview.cpp \
|
widgets/codecompletionlistview.cpp \
|
||||||
widgets/codecompletionpopup.cpp \
|
widgets/codecompletionpopup.cpp \
|
||||||
|
@ -180,6 +181,7 @@ HEADERS += \
|
||||||
todoparser.h \
|
todoparser.h \
|
||||||
toolsmanager.h \
|
toolsmanager.h \
|
||||||
widgets/aboutdialog.h \
|
widgets/aboutdialog.h \
|
||||||
|
widgets/bookmarkmodel.h \
|
||||||
widgets/classbrowser.h \
|
widgets/classbrowser.h \
|
||||||
widgets/codecompletionlistview.h \
|
widgets/codecompletionlistview.h \
|
||||||
widgets/codecompletionpopup.h \
|
widgets/codecompletionpopup.h \
|
||||||
|
|
|
@ -47,7 +47,7 @@ TodoThread::TodoThread(const QString& filename, QObject *parent): QThread(parent
|
||||||
void TodoThread::run()
|
void TodoThread::run()
|
||||||
{
|
{
|
||||||
PSynHighlighter highlighter = highlighterManager.getCppHighlighter();
|
PSynHighlighter highlighter = highlighterManager.getCppHighlighter();
|
||||||
emit parseStarted();
|
emit parseStarted(mFilename);
|
||||||
auto action = finally([this]{
|
auto action = finally([this]{
|
||||||
emit parseFinished();
|
emit parseFinished();
|
||||||
});
|
});
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
#include "bookmarkmodel.h"
|
||||||
|
|
||||||
|
BookmarkModel::BookmarkModel(QObject* parent):QAbstractItemModel(parent)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
|
@ -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
|
Loading…
Reference in New Issue