| 106 | } |
| 107 | |
| 108 | void initUi() { |
| 109 | firstRunDialog = new Ui::FirstRunDialog; |
| 110 | // setupUi will modify this dialog so that it looks just like what we designed in Qt Designer |
| 111 | firstRunDialog->setupUi(this); |
| 112 | |
| 113 | // set up logo in a QLabel |
| 114 | firstRunDialog->logoLabel->setText(""); |
| 115 | auto pixmap = QPixmap::fromImage(QImage(":/AppImageLauncher.svg")).scaled(QSize(128,128), |
| 116 | Qt::KeepAspectRatio, Qt::SmoothTransformation |
| 117 | ); |
| 118 | firstRunDialog->logoLabel->setPixmap(pixmap); |
| 119 | |
| 120 | // setting icon in Qt Designer doesn't seem to work |
| 121 | firstRunDialog->customizeIntegrationDirButton->setIcon(this->style()->standardIcon(QStyle::SP_DirIcon)); |
| 122 | |
| 123 | // reset defaults |
| 124 | resetDefaults(); |
| 125 | |
| 126 | // set up all connections |
| 127 | connect(firstRunDialog->buttonBox, &QDialogButtonBox::clicked, this, &FirstRunDialog::handleButtonClicked); |
| 128 | connect(firstRunDialog->askMoveCheckBox, &QCheckBox::stateChanged, this, &FirstRunDialog::handleAskMoveCheckBoxStateChange); |
| 129 | |
| 130 | connect(firstRunDialog->customizeIntegrationDirButton, &QPushButton::clicked, this, &FirstRunDialog::handleCustomizeIntegrationDirButtonClicked); |
| 131 | } |
| 132 | |
| 133 | public: |
| 134 | FirstRunDialog() { |
nothing calls this directly
no outgoing calls
no test coverage detected