Commit cbbaab67 authored by Scott Petrovic's avatar Scott Petrovic

BUG:347084 - update the rest of the PX and % suffixes to use i18n()

parent 68534667
......@@ -514,15 +514,15 @@ PerformanceTab::PerformanceTab(QWidget *parent, const char *name)
const int totalRAM = cfg.totalRAM();
lblTotalMemory->setText(i18n("%1 MiB", totalRAM));
sliderMemoryLimit->setSuffix(" %");
sliderMemoryLimit->setSuffix(i18n(" %"));
sliderMemoryLimit->setRange(1, 100, 2);
sliderMemoryLimit->setSingleStep(0.01);
sliderPoolLimit->setSuffix(" %");
sliderPoolLimit->setSuffix(i18n(" %"));
sliderPoolLimit->setRange(0, 20, 2);
sliderMemoryLimit->setSingleStep(0.01);
sliderUndoLimit->setSuffix(" %");
sliderUndoLimit->setSuffix(i18n(" %"));
sliderUndoLimit->setRange(0, 50, 2);
sliderMemoryLimit->setSingleStep(0.01);
......@@ -764,18 +764,18 @@ GridSettingsTab::GridSettingsTab(QWidget* parent) : WdgGridSettingsBase(parent)
colorSubdivision->setColor(cfg.getGridSubdivisionColor());
intHSpacing->setValue(cfg.getGridHSpacing());
intHSpacing->setSuffix(" px");
intHSpacing->setSuffix(i18n(" px"));
intVSpacing->setValue(cfg.getGridVSpacing());
intVSpacing->setSuffix(" px");
intVSpacing->setSuffix(i18n(" px"));
spacingAspectButton->setKeepAspectRatio(cfg.getGridSpacingAspect());
linkSpacingToggled(cfg.getGridSpacingAspect());
intSubdivision->setValue(cfg.getGridSubdivisions());
intXOffset->setValue(cfg.getGridOffsetX());
intXOffset->setSuffix(" px");
intXOffset->setSuffix(i18n(" px"));
intYOffset->setValue(cfg.getGridOffsetY());
intYOffset->setSuffix(" px");
intYOffset->setSuffix(i18n(" px"));
offsetAspectButton->setKeepAspectRatio(cfg.getGridOffsetAspect());
linkOffsetToggled(cfg.getGridOffsetAspect());
......
......@@ -78,11 +78,11 @@ void KisAutogradient::slotSelectedSegment(KoGradientSegment* segment)
int leftOpacity = (startColor.alpha() * 100) / OPACITY_OPAQUE_U8;
intNumInputLeftOpacity->setValue(leftOpacity);
intNumInputLeftOpacity->setSuffix(" %");
intNumInputLeftOpacity->setSuffix(i18n(" %"));
int rightOpacity = (endColor.alpha() * 100) / OPACITY_OPAQUE_U8;
intNumInputRightOpacity->setValue(rightOpacity);
intNumInputRightOpacity->setSuffix(" %");
intNumInputRightOpacity->setSuffix(i18n(" %"));
paramChanged();
}
......
......@@ -216,7 +216,7 @@ KisPaintopBox::KisPaintopBox(KisViewManager *view, QWidget *parent, const char *
slSize->setSingleStep(1);
slSize->setExponentRatio(3.0);
slSize->setSuffix(" px");
slSize->setSuffix(i18n(" px"));
slSize->setMinimumWidth(qMax(sliderWidth, slSize->sizeHint().width()));
slSize->setFixedHeight(iconsize);
slSize->setBlockUpdateSignalOnDrag(true);
......
......@@ -41,14 +41,14 @@ KisWdgGaussianBlur::KisWdgGaussianBlur(QWidget * parent) : KisConfigWidget(paren
m_widget->horizontalRadius->setRange(0.0, 100.0, 2);
m_widget->horizontalRadius->setSingleStep(0.2);
m_widget->horizontalRadius->setValue(0.5);
m_widget->horizontalRadius->setSuffix(" px");
m_widget->horizontalRadius->setSuffix(i18n(" px"));
connect(m_widget->horizontalRadius, SIGNAL(valueChanged(qreal)), this, SLOT(horizontalRadiusChanged(qreal)));
m_widget->verticalRadius->setRange(0.0, 100.0, 2);
m_widget->verticalRadius->setSingleStep(0.2);
m_widget->verticalRadius->setValue(0.5);
m_widget->verticalRadius->setSuffix(" px");
m_widget->verticalRadius->setSuffix(i18n(" px"));
connect(m_widget->verticalRadius, SIGNAL(valueChanged(qreal)), this, SLOT(verticalRadiusChanged(qreal)));
connect(m_widget->aspectButton, SIGNAL(keepAspectRatioChanged(bool)), this, SLOT(aspectLockChanged(bool)));
......
......@@ -40,7 +40,7 @@ KisChalkOpOption::KisChalkOpOption()
// initialize values
m_options->radiusSpinBox->setRange(0, 400);
m_options->radiusSpinBox->setValue(5);
m_options->radiusSpinBox->setSuffix(" px");
m_options->radiusSpinBox->setSuffix(i18n(" px"));
connect(m_options->radiusSpinBox, SIGNAL(valueChanged(int)), SLOT(emitSettingChanged()));
connect(m_options->inkDepletionCHBox, SIGNAL(clicked(bool)), SLOT(emitSettingChanged()));
......
......@@ -30,7 +30,7 @@ public:
lineWidthSlider->setRange(1, 100);
lineWidthSlider->setValue(1);
lineWidthSlider->setSuffix(" px");
lineWidthSlider->setSuffix(i18n(" px"));
curvesOpacitySlider->setRange(0.0, 1.0, 2);
curvesOpacitySlider->setValue(1.0);
......
......@@ -40,13 +40,13 @@ KisGridOpOption::KisGridOpOption()
// initialize slider values
m_options->gridWidthSPBox->setRange(1, 999, 0);
m_options->gridWidthSPBox->setValue(25);
m_options->gridWidthSPBox->setSuffix(" px");
m_options->gridWidthSPBox->setSuffix(i18n(" px"));
m_options->gridWidthSPBox->setExponentRatio(3.0);
m_options->gridHeightSPBox->setRange(1, 999, 0);
m_options->gridHeightSPBox->setValue(25);
m_options->gridHeightSPBox->setSuffix(" px");
m_options->gridHeightSPBox->setSuffix(i18n(" px"));
m_options->gridHeightSPBox->setExponentRatio(3.0);
m_options->divisionLevelSPBox->setRange(0, 25, 0);
......
......@@ -30,7 +30,7 @@ public:
setupUi(this);
QString degree = QChar(Qt::Key_degree);
QString px = " px";
QString px = i18n(" px");
//setRange(minimum, maximum, decimals)
......
......@@ -54,7 +54,7 @@ KisAutoBrushWidget::KisAutoBrushWidget(QWidget *parent, const char* name)
inputRadius->setExponentRatio(3.0);
inputRadius->setSingleStep(1);
inputRadius->setValue(5);
inputRadius->setSuffix(" px");
inputRadius->setSuffix(i18n(" px"));
connect(inputRadius, SIGNAL(valueChanged(qreal)), this, SLOT(spinBoxRadiusChanged(qreal)));
inputRatio->setRange(0.0, 1.0, 2);
......
......@@ -108,7 +108,7 @@ KisBrushChooser::KisBrushChooser(QWidget *parent, const char *name)
m_slSize->setRange(0, 1000, 2);
m_slSize->setValue(5);
m_slSize->setExponentRatio(3.0);
m_slSize->setSuffix(" px");
m_slSize->setSuffix(i18n(" px"));
m_slSize->setExponentRatio(3.0);
......
......@@ -47,7 +47,7 @@ KisBrushSizeOption::KisBrushSizeOption()
m_options->diameter->setRange(1.0, 1000, 0);
m_options->diameter->setValue(20);
m_options->diameter->setExponentRatio(3.0);
m_options->diameter->setSuffix(" px");
m_options->diameter->setSuffix(i18n(" px"));
m_options->aspectBox->setRange(0.01, 2.0, 2);
m_options->aspectBox->setValue(1.0);
......
......@@ -83,7 +83,7 @@ public:
QBoxLayout *offsetLayoutX = new QBoxLayout(QBoxLayout::LeftToRight);
offsetSliderX = new KisSliderSpinBox(this);
offsetSliderX->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
offsetSliderX->setSuffix(" px");
offsetSliderX->setSuffix(i18n(" px"));
randomOffsetX = new QCheckBox(i18n("Random Offset"),this);
offsetLayoutX->addWidget(offsetSliderX,1,0);
offsetLayoutX->addWidget(randomOffsetX,0,0);
......@@ -93,7 +93,7 @@ public:
QBoxLayout *offsetLayoutY = new QBoxLayout(QBoxLayout::LeftToRight);
offsetSliderY = new KisSliderSpinBox(this);
offsetSliderY->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
offsetSliderY->setSuffix(" px");
offsetSliderY->setSuffix(i18n(" px"));
randomOffsetY = new QCheckBox(i18n("Random Offset"),this);
offsetLayoutY->addWidget(offsetSliderY,1,0);
offsetLayoutY->addWidget(randomOffsetY,0,0);
......
......@@ -41,7 +41,7 @@ KisSketchOpOption::KisSketchOpOption()
// initialize slider values
m_options->lineWidthSPBox->setRange(1.0, 100.0, 0);
m_options->lineWidthSPBox->setValue(1.0);
m_options->lineWidthSPBox->setSuffix(" px");
m_options->lineWidthSPBox->setSuffix(i18n(" px"));
m_options->lineWidthSPBox->setExponentRatio(1.5);
......
......@@ -54,11 +54,11 @@ KisSprayShapeOption::KisSprayShapeOption()
//initializer slider values
m_options->widthSpin->setRange(1, 1000, 0);
m_options->widthSpin->setValue(6);
m_options->widthSpin->setSuffix(" px");
m_options->widthSpin->setSuffix(i18n(" px"));
m_options->heightSpin->setRange(1, 1000, 0);
m_options->heightSpin->setValue(6);
m_options->heightSpin->setSuffix(" px");
m_options->heightSpin->setSuffix(i18n(" px"));
// UI signals
......@@ -189,9 +189,9 @@ void KisSprayShapeOption::changeSizeUI(bool proportionalSize)
// if proportionalSize is false, pixel size is used
if (!proportionalSize) {
m_options->widthSpin->setMaximum(m_maxSize);
m_options->widthSpin->setSuffix(" px");
m_options->widthSpin->setSuffix(i18n(" px"));
m_options->heightSpin->setMaximum(m_maxSize);
m_options->heightSpin->setSuffix(" px");
m_options->heightSpin->setSuffix(i18n(" px"));
}
else {
m_options->widthSpin->setMaximum(100);
......
......@@ -40,7 +40,7 @@ KisSprayOpOption::KisSprayOpOption()
m_options->diameterSpinBox->setRange(1, 1000, 0);
m_options->diameterSpinBox->setValue(100);
m_options->diameterSpinBox->setExponentRatio(1.5);
m_options->diameterSpinBox->setSuffix(" px");
m_options->diameterSpinBox->setSuffix(i18n(" px"));
m_options->aspectSPBox->setRange(0.0, 2.0, 2);
m_options->aspectSPBox->setValue(1.0);
......
......@@ -187,14 +187,14 @@ QWidget* KisToolFill::createOptionWidget()
m_sizemodWidget->setObjectName("sizemod");
m_sizemodWidget->setRange(-40, 40);
m_sizemodWidget->setSingleStep(1);
m_sizemodWidget->setSuffix(" px");
m_sizemodWidget->setSuffix(i18n(" px"));
QLabel *lbl_feather = new QLabel(i18n("Feathering radius: "), widget);
m_featherWidget = new KisSliderSpinBox(widget);
m_featherWidget->setObjectName("feather");
m_featherWidget->setRange(0, 40);
m_featherWidget->setSingleStep(1);
m_featherWidget->setSuffix(" px");
m_featherWidget->setSuffix(i18n(" px"));
QLabel *lbl_usePattern = new QLabel(i18n("Use pattern:"), widget);
m_checkUsePattern = new QCheckBox(QString(), widget);
......
......@@ -312,7 +312,7 @@ QWidget* KisToolMultihand::createOptionWidget()
m_translateRadiusSlider = new KisSliderSpinBox(translateWidget);
m_translateRadiusSlider->setRange(0, 200);
m_translateRadiusSlider->setSuffix(" px");
m_translateRadiusSlider->setSuffix(i18n(" px"));
connect(m_translateRadiusSlider,SIGNAL(valueChanged(int)),this,SLOT(slotSetTranslateRadius(int)));
QFormLayout *radiusLayout = new QFormLayout(translateWidget);
......
......@@ -225,10 +225,10 @@ QWidget* KisToolSelectContiguous::createOptionWidget()
// load configuration settings into tool options
input->setValue(m_configGroup.readEntry("fuzziness", 20)); // fuzziness
sizemod->setValue( m_configGroup.readEntry("sizemod", 0)); //grow/shrink
sizemod->setSuffix(" px");
sizemod->setSuffix(i18n(" px"));
feather->setValue(m_configGroup.readEntry("feather", 0));
feather->setSuffix(" px");
feather->setSuffix(i18n(" px"));
limitToCurrentLayer->setChecked(m_configGroup.readEntry("limitToCurrentLayer", false));
}
......
......@@ -100,8 +100,8 @@ KisToolTransformConfigWidget::KisToolTransformConfigWidget(TransformTransactionP
// initialize values for free transform sliders
shearXBox->setSuffix(" px");
shearYBox->setSuffix(" px");
shearXBox->setSuffix(i18n(" px"));
shearYBox->setSuffix(i18n(" px"));
shearXBox->setRange(-5.0, 5.0, 2);
shearYBox->setRange(-5.0, 5.0, 2);
shearXBox->setSingleStep(0.01);
......@@ -110,8 +110,8 @@ KisToolTransformConfigWidget::KisToolTransformConfigWidget(TransformTransactionP
shearYBox->setValue(0.0);
translateXBox->setSuffix(" px");
translateYBox->setSuffix(" px");
translateXBox->setSuffix(i18n(" px"));
translateYBox->setSuffix(i18n(" px"));
translateXBox->setRange(-10000, 10000);
translateYBox->setRange(-10000, 10000);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment