Commit 562ee87e authored by Jekyll Wu's avatar Jekyll Wu
Browse files

Trivial style change

parent 33678e7c
......@@ -325,7 +325,7 @@ void EditProfileDialog::setupTabsPage(const Profile::Ptr profile)
_ui->remoteTabTitleEdit->setText(profile->remoteTabTitleFormat());
// tab monitoring
int silenceSeconds = profile->silenceSeconds();
const int silenceSeconds = profile->silenceSeconds();
_ui->silenceSecondsSpinner->setValue(silenceSeconds);
_ui->silenceSecondsSpinner->setSuffix(ki18ncp("Unit of time", " second", " seconds"));
......@@ -457,7 +457,7 @@ void EditProfileDialog::setupAppearancePage(const Profile::Ptr profile)
SLOT(newColorScheme()));
// setup font preview
bool antialias = profile->antiAliasFonts();
const bool antialias = profile->antiAliasFonts();
QFont profileFont = profile->font();
profileFont.setStyleStrategy(antialias ? QFont::PreferAntialias : QFont::NoAntialias);
......@@ -477,8 +477,7 @@ void EditProfileDialog::setupAppearancePage(const Profile::Ptr profile)
connect(_ui->antialiasTextButton, SIGNAL(toggled(bool)), this,
SLOT(setAntialiasText(bool)));
bool boldIntense = profile->boldIntense();
_ui->boldIntenseButton->setChecked(boldIntense);
_ui->boldIntenseButton->setChecked(profile->boldIntense());
connect(_ui->boldIntenseButton, SIGNAL(toggled(bool)), this,
SLOT(setBoldIntense(bool)));
}
......@@ -973,7 +972,7 @@ void EditProfileDialog::setupScrollingPage(const Profile::Ptr profile)
setupRadio(types , scrollBackType);
// setup scrollback line count spinner
int historySize = profile->historySize();
const int historySize = profile->historySize();
_ui->scrollBackLinesSpinner->setValue(historySize);
_ui->scrollBackLinesSpinner->setSingleStep(historySize / 10);
_ui->scrollBackLinesSpinner->setSuffix(ki18ncp("Unit of scrollback", " line", " lines"));
......
......@@ -796,19 +796,14 @@ void ViewManager::applyProfileToView(TerminalDisplay* view , const Profile::Ptr
view->setShowTerminalSizeHint(profile->showTerminalSizeHint());
// terminal features
bool blinkingCursor = profile->blinkingCursorEnabled();
view->setBlinkingCursorEnabled(blinkingCursor);
bool blinkingText = profile->blinkingTextEnabled();
view->setBlinkingTextEnabled(blinkingText);
view->setBlinkingCursorEnabled(profile->blinkingCursorEnabled());
view->setBlinkingTextEnabled(profile->blinkingTextEnabled());
int tripleClickMode = profile->property<int>(Profile::TripleClickMode);
view->setTripleClickMode(Enum::TripleClickModeEnum(tripleClickMode));
view->setUnderlineLinks(profile->underlineLinksEnabled());
bool bidiEnabled = profile->bidiRenderingEnabled();
view->setBidiEnabled(bidiEnabled);
view->setBidiEnabled(profile->bidiRenderingEnabled());
// cursor shape
int cursorShape = profile->property<int>(Profile::CursorShape);
......
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