Changeset View
Changeset View
Standalone View
Standalone View
src/EditProfileDialog.cpp
Show First 20 Lines • Show All 454 Lines • ▼ Show 20 Line(s) | 437 | { | |||
---|---|---|---|---|---|
455 | _generalUi->initialDirEdit->setClearButtonEnabled(true); | 455 | _generalUi->initialDirEdit->setClearButtonEnabled(true); | ||
456 | _generalUi->initialDirEdit->setPlaceholderText(QStandardPaths::standardLocations(QStandardPaths::HomeLocation).value(0)); | 456 | _generalUi->initialDirEdit->setPlaceholderText(QStandardPaths::standardLocations(QStandardPaths::HomeLocation).value(0)); | ||
457 | 457 | | |||
458 | _generalUi->dirSelectButton->setIcon(QIcon::fromTheme(QStringLiteral("folder-open"))); | 458 | _generalUi->dirSelectButton->setIcon(QIcon::fromTheme(QStringLiteral("folder-open"))); | ||
459 | _generalUi->iconSelectButton->setIcon(QIcon::fromTheme(profile->icon())); | 459 | _generalUi->iconSelectButton->setIcon(QIcon::fromTheme(profile->icon())); | ||
460 | _generalUi->startInSameDirButton->setChecked(profile->startInCurrentSessionDir()); | 460 | _generalUi->startInSameDirButton->setChecked(profile->startInCurrentSessionDir()); | ||
461 | 461 | | |||
462 | // initial terminal size | 462 | // initial terminal size | ||
463 | const auto rowsSuffix = ki18ncp("Suffix of the number of columns (N columns)", " column", " columns"); | 463 | const auto colsSuffix = ki18ncp("Suffix of the number of columns (N columns)", " column", " columns"); | ||
464 | const auto colsSuffix = ki18ncp("Suffix of the number of rows (N rows)", " row", " rows"); | 464 | const auto rowsSuffix = ki18ncp("Suffix of the number of rows (N rows)", " row", " rows"); | ||
465 | _generalUi->terminalColumnsEntry->setValue(profile->terminalColumns()); | 465 | _generalUi->terminalColumnsEntry->setValue(profile->terminalColumns()); | ||
466 | _generalUi->terminalRowsEntry->setValue(profile->terminalRows()); | 466 | _generalUi->terminalRowsEntry->setValue(profile->terminalRows()); | ||
467 | _generalUi->terminalColumnsEntry->setSuffix(colsSuffix); | 467 | _generalUi->terminalColumnsEntry->setSuffix(colsSuffix); | ||
468 | _generalUi->terminalRowsEntry->setSuffix(rowsSuffix); | 468 | _generalUi->terminalRowsEntry->setSuffix(rowsSuffix); | ||
469 | // make width of initial terminal size spinboxes equal | 469 | // make width of initial terminal size spinboxes equal | ||
470 | const int sizeEntryWidth = qMax(maxSpinBoxWidth(_generalUi->terminalColumnsEntry, colsSuffix), | 470 | const int sizeEntryWidth = qMax(maxSpinBoxWidth(_generalUi->terminalColumnsEntry, colsSuffix), | ||
471 | maxSpinBoxWidth(_generalUi->terminalRowsEntry, rowsSuffix)); | 471 | maxSpinBoxWidth(_generalUi->terminalRowsEntry, rowsSuffix)); | ||
472 | _generalUi->terminalColumnsEntry->setFixedWidth(sizeEntryWidth); | 472 | _generalUi->terminalColumnsEntry->setFixedWidth(sizeEntryWidth); | ||
▲ Show 20 Lines • Show All 1483 Lines • Show Last 20 Lines |