Skip to content

Commit

Permalink
Update canvassettingswidget.cpp
Browse files Browse the repository at this point in the history
Fix for scaling
  • Loading branch information
rodlie committed Nov 19, 2023
1 parent 8d2665e commit bef6aeb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/GUI/Settings/canvassettingswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@

#include <QLabel>

#include "GUI/global.h"

CanvasSettingsWidget::CanvasSettingsWidget(QWidget* const parent) :
SettingsWidget(parent) {

Expand Down Expand Up @@ -73,6 +75,11 @@ CanvasSettingsWidget::CanvasSettingsWidget(QWidget* const parent) :

mRtlSupport = new QCheckBox("RTL language support", this);
addWidget(mRtlSupport);

eSizesUI::widget.add(mRtlSupport, [this](const int size) {
mRtlSupport->setFixedHeight(size);
mRtlSupport->setStyleSheet(QString("QCheckBox::indicator { width: %1px; height: %1px;}").arg(size/1.5));
});
}

void CanvasSettingsWidget::applySettings() {
Expand Down

0 comments on commit bef6aeb

Please sign in to comment.