Added: High DPI support for the Configuration Editor. Icons and proportions should look better now when DPI scaling is used.
Improved: Updated Qt to version 5.7 Fixed: The GUI for the Channel command was showing the wrong channels as selected when channel numbers were used instead of names.
This commit is contained in:
1 parent
fb8d573fba
commit
3d8ef28d1b
112 files changed
+779
-212
No files matched your search
@@ -19,6 +19,7 @@
|
||||
|
||||
#include <QWheelEvent>
|
||||
|
||||
#include "Editor/helpers/DPIHelper.h"
|
||||
#include "FrequencyPlotView.h"
|
||||
#include "FrequencyPlotScene.h"
|
||||
#include "FrequencyPlotVRuler.h"
|
||||
@@ -37,7 +38,7 @@ void FrequencyPlotVRuler::paintEvent(QPaintEvent*)
|
||||
|
||||
QPointF topLeft = view->mapToScene(0, 0);
|
||||
QPointF bottomRight = view->mapToScene(view->viewport()->width(), view->viewport()->height());
|
||||
double dbStep = abs(s->yToDb(0) - s->yToDb(30));
|
||||
double dbStep = abs(s->yToDb(0) - s->yToDb(DPIHelper::scale(30)));
|
||||
|
||||
double dbBase = pow(10, floor(log10(dbStep)));
|
||||
if (dbStep >= 5 * dbBase)
|
||||
|
||||
Reference in new issue
Block a user