Commit e0a25d35 authored by Denis Khachko's avatar Denis Khachko

defalult course

parent 17d0fbd6
......@@ -3,6 +3,7 @@
#include <QtGlobal>
#include <QObject>
#include <QApplication>
#include <extensionsystem/kplugin.h>
#include <interfaces/coursesinterface.h>
#include <widgets/declarativesettingspage.h>
......@@ -43,8 +44,9 @@ public:
mainWindow()->showNormal();
}
inline void activateCourseFromList(QString file) { loadCource(file); }
inline QStringList getListOfCourses() const {
return mySettings()->value("Courses/LastFiles","").toString().split(";",QString::SkipEmptyParts);
inline QStringList getListOfCourses() const {
QString defaultCur=qApp->property("sharePath").toString()+"/courses/practicum/practicum.kurs.xml;";
return mySettings()->value("Courses/LastFiles",defaultCur).toString().split(";",QString::SkipEmptyParts);
}
void rebuildRescentMenu();
bool isSafeToQuit();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment