MCPcopy Create free account
hub / github.com/TheAssassin/AppImageLauncher / initUi

Method initUi

src/ui/first-run.cpp:108–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
133public:
134 FirstRunDialog() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected