Changeset View
Changeset View
Standalone View
Standalone View
widgets/imagelib/effects/kpEffectBalanceWidget.cpp
Context not available. | |||||
75 | m_gammaLabel = new QLabel (this); | 75 | m_gammaLabel = new QLabel (this); | ||
---|---|---|---|---|---|
76 | // TODO: This doesn't seem to be wide enough with some fonts so the | 76 | // TODO: This doesn't seem to be wide enough with some fonts so the | ||
77 | // whole layout moves when we drag the gamma slider. | 77 | // whole layout moves when we drag the gamma slider. | ||
78 | m_gammaLabel->setMinimumWidth (m_gammaLabel->fontMetrics ().width (QStringLiteral (" 10.00 "))); | 78 | | ||
79 | m_gammaLabel->setMinimumWidth (m_gammaLabel->fontMetrics (). | ||||
80 | #if (QT_VERSION >= QT_VERSION_CHECK(5, 11, 0)) | ||||
81 | horizontalAdvance | ||||
82 | #else | ||||
83 | width | ||||
84 | #endif | ||||
85 | (QStringLiteral (" 10.00 "))); | ||||
86 | | ||||
79 | m_gammaLabel->setAlignment (m_gammaLabel->alignment () | Qt::AlignRight); | 87 | m_gammaLabel->setAlignment (m_gammaLabel->alignment () | Qt::AlignRight); | ||
80 | auto *gammaResetPushButton = new QPushButton (i18n ("Rese&t"), this); | 88 | auto *gammaResetPushButton = new QPushButton (i18n ("Rese&t"), this); | ||
81 | 89 | | |||
Context not available. |