[calamares] Support starting fullscreen
This commit is contained in:
parent
80569a746f
commit
866797a6c9
@ -348,7 +348,13 @@ void
|
||||
CalamaresApplication::initViewSteps()
|
||||
{
|
||||
cDebug() << "STARTUP: loadModules for all modules done";
|
||||
m_mainwindow->show();
|
||||
if ( Calamares::Branding::instance()->windowMaximize() )
|
||||
{
|
||||
m_mainwindow->setWindowFlag( Qt::FramelessWindowHint );
|
||||
m_mainwindow->showMaximized();
|
||||
}
|
||||
else
|
||||
m_mainwindow->show();
|
||||
ProgressTreeModel* m = new ProgressTreeModel( nullptr );
|
||||
ProgressTreeView::instance()->setModel( m );
|
||||
cDebug() << "STARTUP: Window now visible and ProgressTreeView populated";
|
||||
|
@ -111,6 +111,7 @@ public:
|
||||
|
||||
bool welcomeStyleCalamares() const { return m_welcomeStyleCalamares; }
|
||||
bool welcomeExpandingLogo() const { return m_welcomeExpandingLogo; }
|
||||
bool windowMaximize() const { return m_windowExpansion == WindowExpansion::Fullscreen; }
|
||||
QPair< WindowDimension, WindowDimension > windowSize() const
|
||||
{
|
||||
return QPair< WindowDimension, WindowDimension >( m_windowWidth, m_windowHeight );
|
||||
|
Loading…
Reference in New Issue
Block a user