mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 11:00:06 +00:00 
			
		
		
		
	Initial setup wizard contents
This commit is contained in:
		
							parent
							
								
									388abb05bf
								
							
						
					
					
						commit
						411d2a3832
					
				
					 8 changed files with 102 additions and 0 deletions
				
			
		|  | @ -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; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat