Changeset View
Changeset View
Standalone View
Standalone View
src/ColorSchemeEditor.cpp
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Line(s) | 63 | { | |||
---|---|---|---|---|---|
82 | 82 | | |||
83 | // description edit | 83 | // description edit | ||
84 | _ui->descriptionEdit->setClearButtonEnabled(true); | 84 | _ui->descriptionEdit->setClearButtonEnabled(true); | ||
85 | connect(_ui->descriptionEdit, &QLineEdit::textChanged, this, | 85 | connect(_ui->descriptionEdit, &QLineEdit::textChanged, this, | ||
86 | &Konsole::ColorSchemeEditor::setDescription); | 86 | &Konsole::ColorSchemeEditor::setDescription); | ||
87 | 87 | | |||
88 | // transparency slider | 88 | // transparency slider | ||
89 | QFontMetrics metrics(font()); | 89 | QFontMetrics metrics(font()); | ||
90 | _ui->transparencyPercentLabel->setMinimumWidth(metrics.width(QStringLiteral("100%"))); | 90 | _ui->transparencyPercentLabel->setMinimumWidth(metrics.boundingRect(QStringLiteral("100%")).width()); | ||
91 | 91 | | |||
92 | connect(_ui->transparencySlider, &QSlider::valueChanged, this, | 92 | connect(_ui->transparencySlider, &QSlider::valueChanged, this, | ||
93 | &Konsole::ColorSchemeEditor::setTransparencyPercentLabel); | 93 | &Konsole::ColorSchemeEditor::setTransparencyPercentLabel); | ||
94 | 94 | | |||
95 | // blur behind window | 95 | // blur behind window | ||
96 | connect(_ui->blurCheckBox, &QCheckBox::toggled, this, | 96 | connect(_ui->blurCheckBox, &QCheckBox::toggled, this, | ||
97 | &Konsole::ColorSchemeEditor::setBlur); | 97 | &Konsole::ColorSchemeEditor::setBlur); | ||
98 | 98 | | |||
▲ Show 20 Lines • Show All 249 Lines • Show Last 20 Lines |