Commit 4916dd0f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add missing include + fix some compile error against qt6

parent d22ca62d
......@@ -21,6 +21,7 @@
#include <QDebug>
#include <QCoreApplication>
#include <QRegExp>
ExpLexer::ExpLexer(const QString &source)
: AbstractLexer(source), m_pos(0)
......
......@@ -23,6 +23,7 @@
#include <QStringList>
#include "abstractlexer.h"
#include "analitzaexport.h"
#include <QRegExp>
class ANALITZA_EXPORT ExpLexer : public AbstractLexer
{
......
......@@ -66,7 +66,7 @@ void PlotsDictionaryModel::createDictionary(const QString& file)
void PlotsDictionaryModel::createAllDictionaries()
{
// QStringList res = KGlobal::dirs()->findAllResources("data", "libanalitza/plots/*.plots");
QStringList res = QStandardPaths::locateAll(QStandardPaths::DataLocation, QStringLiteral("libanalitza/plots"));
QStringList res = QStandardPaths::locateAll(QStandardPaths::AppLocalDataLocation, QStringLiteral("libanalitza/plots"));
foreach(const QString& dir, res) {
QDir d(dir);
foreach(const QString& f, d.entryList(QStringList("*.plots"))) {
......
Supports Markdown
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