mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
Add a Quit button to Calamares::ViewManager.
This commit is contained in:
parent
fa3dfa2244
commit
041db41b35
2 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
#include "ViewManager.h"
|
#include "ViewManager.h"
|
||||||
|
|
||||||
|
#include <QApplication>
|
||||||
#include <QBoxLayout>
|
#include <QBoxLayout>
|
||||||
|
|
||||||
namespace Calamares
|
namespace Calamares
|
||||||
|
@ -49,12 +50,16 @@ ViewManager::ViewManager( QObject* parent )
|
||||||
|
|
||||||
m_back = new QPushButton( tr( "&Back" ), m_widget );
|
m_back = new QPushButton( tr( "&Back" ), m_widget );
|
||||||
m_next = new QPushButton( tr( "&Next" ), m_widget );
|
m_next = new QPushButton( tr( "&Next" ), m_widget );
|
||||||
|
m_quit = new QPushButton( tr( "&Quit" ), m_widget );
|
||||||
|
|
||||||
QBoxLayout* bottomLayout = new QHBoxLayout;
|
QBoxLayout* bottomLayout = new QHBoxLayout;
|
||||||
mainLayout->addLayout( bottomLayout );
|
mainLayout->addLayout( bottomLayout );
|
||||||
bottomLayout->addStretch();
|
bottomLayout->addStretch();
|
||||||
bottomLayout->addWidget( m_back );
|
bottomLayout->addWidget( m_back );
|
||||||
bottomLayout->addWidget( m_next );
|
bottomLayout->addWidget( m_next );
|
||||||
|
bottomLayout->addSpacing( 12 );
|
||||||
|
bottomLayout->addWidget( m_quit );
|
||||||
|
connect( m_quit, &QPushButton::clicked, qApp, &QApplication::quit );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,7 @@ private:
|
||||||
QStackedWidget* m_stack;
|
QStackedWidget* m_stack;
|
||||||
QPushButton* m_back;
|
QPushButton* m_back;
|
||||||
QPushButton* m_next;
|
QPushButton* m_next;
|
||||||
|
QPushButton* m_quit;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue