Fixed an issue with a "tiny" text, added the pixelRatio initialization within the MU4

This commit is contained in:
pereverzev_v 2020-07-09 14:28:34 +02:00 committed by pereverzev+v
parent 745e365e61
commit 9985019702

View file

@ -21,6 +21,8 @@
#include <QPointF>
#include <QPainter>
#include <QFileInfo>
#include <QGuiApplication>
#include <QScreen>
#include "log.h"
@ -75,6 +77,10 @@ Notation::Notation()
notifyAboutNotationChanged();
});
m_interaction->textEditingChanged().onNotify(this, [this]() {
notifyAboutNotationChanged();
});
m_interaction->dropChanged().onNotify(this, [this]() {
notifyAboutNotationChanged();
});
@ -92,6 +98,8 @@ void Notation::init()
MScore::setNudgeStep(.1); // cursor key (default 0.1)
MScore::setNudgeStep10(1.0); // Ctrl + cursor key (default 1.0)
MScore::setNudgeStep50(0.01); // Alt + cursor key (default 0.01)
MScore::pixelRatio = DPI / QGuiApplication::primaryScreen()->logicalDotsPerInch();
}
mu::Ret Notation::load(const io::path& path)