Commit 1890e0d6 authored by Thomas BOUTROUE's avatar Thomas BOUTROUE

Fix includes issues

parent 557d9012
#include "BibleEngine.h"
#include "BibleWorker.h"
#include "BibleLanguage.h"
#include "BibleText.h"
#include "BibleBook.h"
#include "BibleChapter.h"
#include "BibleVerse.h"
#include "BibleGroup.h"
#include <QFile>
#include <QDebug>
#include <QThread>
......@@ -22,6 +14,7 @@ BibleEngine::BibleEngine (QObject * parent)
, m_isSearching { false }
, m_showLocalOnly { false }
, m_nightMode { false }
, m_swipeChapters { true }
, m_textFontSize { 0 }
, m_refreshPercent { 0 }
, m_searchPercent { 0 }
......@@ -93,11 +86,15 @@ BibleEngine::BibleEngine (QObject * parent)
connect (this, &BibleEngine::nightModeChanged, [this] (void) {
m_settings->setValue (QStringLiteral ("nightMode"), m_nightMode);
});
connect (this, &BibleEngine::swipeChaptersChanged, [this] (void) {
m_settings->setValue (QStringLiteral ("swipeChapters"), m_swipeChapters);
});
connect (this, &BibleEngine::currentTranslationCodeChanged, [this] (void) {
m_settings->setValue (QStringLiteral ("locale"), m_currentTranslationCode);
});
m_showLocalOnly = m_settings->value (QStringLiteral ("showLocalOnly"), m_showLocalOnly).value<bool> ();
m_nightMode = m_settings->value (QStringLiteral ("nightMode"), m_nightMode).value<bool> ();
m_swipeChapters = m_settings->value (QStringLiteral ("swipeChapters"), m_swipeChapters).value<bool> ();
m_textFontSize = m_settings->value (QStringLiteral ("textFontSize"), m_textFontSize).value<int> ();
m_currentTextKey = m_settings->value (QStringLiteral ("currentTextKey"), m_currentTextKey).value<QString> ();
m_currentTranslationCode = m_settings->value (QStringLiteral ("locale"), m_currentTranslationCode).value<QString> ();
......
......@@ -11,14 +11,13 @@
#include "QQmlObjectListModel.h"
#include "BibleScope.h"
class BibleWorker;
class BibleLanguage;
class BibleText;
class BibleBook;
class BibleChapter;
class BibleVerse;
class BibleGroup;
#include "BibleWorker.h"
#include "BibleLanguage.h"
#include "BibleText.h"
#include "BibleBook.h"
#include "BibleChapter.h"
#include "BibleVerse.h"
#include "BibleGroup.h"
class BibleEngine : public QObject {
Q_OBJECT
......@@ -27,6 +26,7 @@ class BibleEngine : public QObject {
QML_READONLY_VAR_PROPERTY (bool, isSearching)
QML_WRITABLE_VAR_PROPERTY (bool, showLocalOnly)
QML_WRITABLE_VAR_PROPERTY (bool, nightMode)
QML_WRITABLE_VAR_PROPERTY (bool, swipeChapters)
QML_WRITABLE_VAR_PROPERTY (int, textFontSize)
QML_READONLY_VAR_PROPERTY (int, refreshPercent)
QML_READONLY_VAR_PROPERTY (int, searchPercent)
......
#include "BibleGroup.h"
#include "BibleVerse.h"
BibleGroup::BibleGroup (const QString & bookId,
QObject * parent)
: QObject { parent }
......
......@@ -9,7 +9,7 @@
#include "QQmlConstRefPropertyHelpers.h"
#include "QQmlObjectListModel.h"
class BibleVerse;
#include "BibleVerse.h"
class BibleGroup : public QObject {
Q_OBJECT
......
#include "BibleLanguage.h"
#include "BibleText.h"
BibleLanguage::BibleLanguage (const QString & languageId,
const QString & languageTitle,
QObject * parent)
......
......@@ -9,7 +9,7 @@
#include "QQmlConstRefPropertyHelpers.h"
#include "QQmlObjectListModel.h"
class BibleText;
#include "BibleText.h"
class BibleLanguage : public QObject {
Q_OBJECT
......
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