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:
jthedering committed 2016-07-09 11:07:21 +00:00
1 parent fb8d573fba
commit 3d8ef28d1b
112 files changed
+779 -212

No files matched your search

+14 -7
View File
@@ -17,6 +17,7 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "Editor/helpers/DPIHelper.h"
#include "FrequencyPlotView.h"
#include "FrequencyPlotScene.h"
@@ -37,6 +38,9 @@ vector<double> FrequencyPlotScene::bandsVar;
FrequencyPlotScene::FrequencyPlotScene(QObject* parent)
: QGraphicsScene(parent)
{
zoomX = DPIHelper::scaleZoom(1.0);
zoomY = DPIHelper::scaleZoom(1.0);
updateSceneRect();
}
@@ -83,14 +87,17 @@ double FrequencyPlotScene::getZoomY() const
void FrequencyPlotScene::setZoom(double zoomX, double zoomY)
{
this->zoomX = zoomX;
this->zoomY = zoomY;
updateSceneRect();
for (QGraphicsItem* item : items())
if (zoomX != this->zoomX || zoomY != this->zoomY)
{
FrequencyPlotItem* plotItem = (FrequencyPlotItem*)item;
plotItem->updatePos();
this->zoomX = zoomX;
this->zoomY = zoomY;
updateSceneRect();
for (QGraphicsItem* item : items())
{
FrequencyPlotItem* plotItem = (FrequencyPlotItem*)item;
plotItem->updatePos();
}
}
}