From 4e19bf4594eee13ff526e860c23eaa1fd240500f Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Thu, 20 Aug 2020 16:24:31 +0100 Subject: [PATCH] Remove dependency between common and app --- app/configeditorwidget.cpp | 2 -- common/tikzpreview.cpp | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/configeditorwidget.cpp b/app/configeditorwidget.cpp index 84829c2..030d832 100644 --- a/app/configeditorwidget.cpp +++ b/app/configeditorwidget.cpp @@ -103,8 +103,6 @@ QVariant ConfigEditorWidget::defaultSetting(const QString &key) } else if (key == QLatin1String("UseCompletion")) return true; - else if (key == QLatin1String("PreviewBackgroundColor")) - return QColor(Qt::white); return QVariant(); } diff --git a/common/tikzpreview.cpp b/common/tikzpreview.cpp index e7b9618..6566779 100644 --- a/common/tikzpreview.cpp +++ b/common/tikzpreview.cpp @@ -32,7 +32,7 @@ #include #include -#include "app/configeditorwidget.h" +//#include "app/configeditorwidget.h" #include "tikzpreviewrenderer.h" #include "utils/action.h" #include "utils/icon.h" @@ -61,7 +61,7 @@ TikzPreview::TikzPreview(QWidget *parent) QSettings settings(QString::fromLocal8Bit(ORGNAME), QString::fromLocal8Bit(APPNAME)); settings.beginGroup(QLatin1String("Preview")); m_zoomFactor = settings.value(QLatin1String("ZoomFactor"), 1).toDouble(); - setBackgroundColor(settings.value(QLatin1String("PreviewBackgroundColor"), ConfigEditorWidget::defaultSetting(QLatin1String("PreviewBackgroundColor"))).value()); + setBackgroundColor(settings.value(QLatin1String("PreviewBackgroundColor"), QColor(Qt::white)).value()); settings.endGroup(); createActions();