Fixed an issue with a "tiny" text, added the pixelRatio initialization within the MU4
This commit is contained in:
parent
745e365e61
commit
9985019702
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue