MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / Accept

Method Accept

Src/Terminal/ParameterTerminalUI.cpp:47–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47int CParameterTerminalUI::Accept()
48{
49 if(!m_pPara) return -1;
50 m_pPara->SetFont(ui->fontComboBox->currentFont());
51 QFont font = m_pPara->GetFont();
52 font.setPointSize(ui->spFontSize->value());
53 m_pPara->SetFont(font);
54 m_pPara->SetSizeHint(ui->cbShowResize->isChecked());
55 m_pPara->SetColorScheme(ui->cbColorScheme->currentText());
56 m_pPara->SetCursorShape(static_cast<Konsole::Emulation::KeyboardCursorShape>(ui->cbCursorShape->currentData().toInt()));
57 m_pPara->SetScrollBarPosition(static_cast<QTermWidget::ScrollBarPosition>(ui->cbScrollBarPositioin->currentData().toInt()));
58 m_pPara->SetTransparency(ui->spTerminalTransparecy->value());
59 m_pPara->SetFlowControl(ui->cbFlowControl->isChecked());
60 m_pPara->SetBackgroupImage(ui->leImage->text());
61 m_pPara->SetDirectional(ui->cbBiDirectional->isChecked());
62 m_pPara->SetKeyBindings(ui->cbKeyBinding->currentText());
63
64 if(ui->cbHistoryUnlimited->isChecked())
65 m_pPara->SetHistorySize(-1);
66 else
67 m_pPara->SetHistorySize(ui->sbHistorySize->value());
68
69 return 0;
70}
71
72void CParameterTerminalUI::on_pbBrowser_clicked()
73{

Callers

nothing calls this directly

Calls 11

SetFontMethod · 0.80
SetSizeHintMethod · 0.80
SetColorSchemeMethod · 0.80
SetCursorShapeMethod · 0.80
SetScrollBarPositionMethod · 0.80
SetTransparencyMethod · 0.80
SetBackgroupImageMethod · 0.80
SetDirectionalMethod · 0.80
SetKeyBindingsMethod · 0.80
SetHistorySizeMethod · 0.80
SetFlowControlMethod · 0.45

Tested by

no test coverage detected