Skip to content

Commit

Permalink
Remove dependency between common and app
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmcarreira committed Aug 20, 2020
1 parent 46454db commit 4e19bf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions app/configeditorwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
4 changes: 2 additions & 2 deletions common/tikzpreview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <QScrollBar>
#include <QToolBar>

#include "app/configeditorwidget.h"
//#include "app/configeditorwidget.h"
#include "tikzpreviewrenderer.h"
#include "utils/action.h"
#include "utils/icon.h"
Expand Down Expand Up @@ -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<QColor>());
setBackgroundColor(settings.value(QLatin1String("PreviewBackgroundColor"), QColor(Qt::white)).value<QColor>());
settings.endGroup();

createActions();
Expand Down

0 comments on commit 4e19bf4

Please sign in to comment.