mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 01:15:38 -04:00
[users] Massage text widths
- Make the explanations about 3 times as wide as the text-boxes that they are explaining. This is partly moot because the text-boxes have fixed pixel sizes in the designer file, but keep it flexible for now.
This commit is contained in:
parent
1adf4da736
commit
ebc9a00bcf
1 changed files with 7 additions and 0 deletions
|
@ -99,6 +99,13 @@ UsersPage::UsersPage( QWidget* parent )
|
|||
setWriteRootPassword( true );
|
||||
ui->checkBoxReusePassword->setChecked( true );
|
||||
|
||||
// Don't expand the explanations to "stupid wide", but keep them vaguely as-wide-as
|
||||
// the things they are explaining.
|
||||
int boxWidth = qMax( qMax( ui->textBoxUsername->width(), ui->textBoxHostname->width() ), ui->textBoxUserPassword->width() );
|
||||
ui->username_extra_label_2->setMaximumWidth( 3 * boxWidth );
|
||||
ui->hostname_extra_label_2->setMaximumWidth( 3 * boxWidth );
|
||||
ui->password_extra_label_3->setMaximumWidth( 3 * boxWidth );
|
||||
|
||||
CALAMARES_RETRANSLATE( ui->retranslateUi( this ); )
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue