Commit 0012355e authored by Jekyll Wu's avatar Jekyll Wu
Browse files

slight adjustment of code layout. No functionality changes.

parent 6f3b4bba
......@@ -59,13 +59,11 @@ HistorySizeDialog::HistorySizeDialog( QWidget* parent )
QVBoxLayout* dialogLayout = new QVBoxLayout(dialogWidget);
QButtonGroup* modeGroup = new QButtonGroup(this);
_noHistoryButton = new QRadioButton( i18n("No scrollback") );
_fixedHistoryButton = new QRadioButton( i18n("Fixed size scrollback: ") );
_noHistoryButton = new QRadioButton( i18n("No scrollback") );
_fixedHistoryButton = new QRadioButton( i18n("Fixed size scrollback: ") );
_unlimitedHistoryButton = new QRadioButton( i18n("Unlimited scrollback") );
_saveToCurrentProfileButton = new QCheckBox( i18n("Save to current profile") );
QButtonGroup* modeGroup = new QButtonGroup(this);
modeGroup->addButton(_noHistoryButton);
modeGroup->addButton(_fixedHistoryButton);
modeGroup->addButton(_unlimitedHistoryButton);
......@@ -81,19 +79,21 @@ HistorySizeDialog::HistorySizeDialog( QWidget* parent )
// 1000 lines was the default in the KDE 3 series
// using that for now
_lineCountBox->setValue( _defaultLineCount );
_lineCountBox->setSingleStep( _defaultLineCount / 10 );
QLabel* lineCountLabel = new QLabel(i18n("lines"),this);
QHBoxLayout* lineCountLayout = new QHBoxLayout();
_fixedHistoryButton->setFocusProxy(_lineCountBox);
connect( _fixedHistoryButton , SIGNAL(clicked()) ,
_lineCountBox , SLOT(selectAll()) );
QLabel* lineCountLabel = new QLabel(i18n("lines"),this);
connect( _fixedHistoryButton , SIGNAL(clicked()) , _lineCountBox , SLOT(selectAll()) );
QHBoxLayout* lineCountLayout = new QHBoxLayout();
lineCountLayout->addWidget(_fixedHistoryButton);
lineCountLayout->addWidget(_lineCountBox);
lineCountLayout->addWidget(lineCountLabel);
_saveToCurrentProfileButton = new QCheckBox( i18n("Save to current profile") );
dialogLayout->addWidget(_noHistoryButton);
dialogLayout->addLayout(lineCountLayout);
dialogLayout->addWidget(_unlimitedHistoryButton);
......
Supports Markdown
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