Layout fixes for LocalePage + default location.
This commit is contained in:
parent
1ac10b40e6
commit
87b009cc23
@ -31,7 +31,7 @@ CalamaresWindow::CalamaresWindow( QWidget* parent )
|
|||||||
{
|
{
|
||||||
// Hide close button
|
// Hide close button
|
||||||
setWindowFlags( Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint );
|
setWindowFlags( Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint );
|
||||||
setMinimumSize( 800, 600 );
|
setMinimumSize( 1010, 600 );
|
||||||
|
|
||||||
QBoxLayout* mainLayout = new QHBoxLayout;
|
QBoxLayout* mainLayout = new QHBoxLayout;
|
||||||
setLayout( mainLayout );
|
setLayout( mainLayout );
|
||||||
|
@ -31,8 +31,13 @@ LocalePage::LocalePage( QWidget* parent )
|
|||||||
{
|
{
|
||||||
QBoxLayout* mainLayout = new QVBoxLayout;
|
QBoxLayout* mainLayout = new QVBoxLayout;
|
||||||
|
|
||||||
|
QBoxLayout* tzwLayout = new QHBoxLayout;
|
||||||
|
mainLayout->addLayout( tzwLayout );
|
||||||
m_tzWidget = new TimeZoneWidget( this );
|
m_tzWidget = new TimeZoneWidget( this );
|
||||||
mainLayout->addWidget( m_tzWidget );
|
tzwLayout->addStretch();
|
||||||
|
tzwLayout->addWidget( m_tzWidget );
|
||||||
|
tzwLayout->addStretch();
|
||||||
|
setMinimumWidth( m_tzWidget->width() );
|
||||||
|
|
||||||
QBoxLayout* bottomLayout = new QHBoxLayout;
|
QBoxLayout* bottomLayout = new QHBoxLayout;
|
||||||
mainLayout->addLayout( bottomLayout );
|
mainLayout->addLayout( bottomLayout );
|
||||||
@ -137,5 +142,10 @@ LocalePage::init()
|
|||||||
m_timezoneCombo->blockSignals( false );
|
m_timezoneCombo->blockSignals( false );
|
||||||
|
|
||||||
m_regionCombo->currentIndexChanged( m_regionCombo->currentText() );
|
m_regionCombo->currentIndexChanged( m_regionCombo->currentText() );
|
||||||
|
|
||||||
|
// Default location
|
||||||
|
// TODO: make configurable from module.conf
|
||||||
|
m_tzWidget->setCurrentLocation( "Europe", "Berlin" );
|
||||||
|
emit m_tzWidget->locationChanged( m_tzWidget->getCurrentLocation() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user