Initial setup wizard contents

This commit is contained in:
Dan Paulat 2023-11-07 06:00:39 -06:00
parent 388abb05bf
commit 411d2a3832
8 changed files with 102 additions and 0 deletions

View file

@ -1,5 +1,8 @@
#include <scwx/qt/ui/setup/welcome_page.hpp>
#include <QLabel>
#include <QVBoxLayout>
namespace scwx
{
namespace qt
@ -14,11 +17,26 @@ class WelcomePage::Impl
public:
explicit Impl() = default;
~Impl() = default;
QVBoxLayout* layout_ {nullptr};
QLabel* welcomeLabel_ {nullptr};
};
WelcomePage::WelcomePage(QWidget* parent) :
QWizardPage(parent), p {std::make_shared<Impl>()}
{
setTitle(tr("Introduction"));
setSubTitle(tr("Welcome to Supercell Wx!"));
p->welcomeLabel_ =
new QLabel(tr("Welcome to Supercell Wx. This wizard will guide you "
"through configuring Supercell Wx for initial use, as well "
"as introduce you to any new features."));
p->welcomeLabel_->setWordWrap(true);
p->layout_ = new QVBoxLayout(this);
p->layout_->addWidget(p->welcomeLabel_);
setLayout(p->layout_);
}
WelcomePage::~WelcomePage() = default;