MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / initConnection

Method initConnection

src/plugins/linglong/gui/mainframe.cpp:196–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196void MainFrame::initConnection()
197{
198 connect(d->generateBtn, &QPushButton::clicked, this, [=]() {
199 GenerateDialog genDialog;
200 genDialog.exec();
201 });
202 connect(d->searchEdit, &DLineEdit::textChanged, this, [=](const QString &text) {
203 d->searchBtn->setEnabled(text.isEmpty() ? false : true);
204 });
205 connect(d->searchBtn, &QPushButton::clicked, this, [=]() {
206 updateRepository(d->searchEdit->text());
207 });
208 connect(d->installedBtn, &DButtonBoxButton::clicked, this, [=]() {
209 d->stackWidget->setCurrentWidget(d->installedTabel);
210 d->search->hide();
211 updateInstalled();
212 });
213 connect(d->runningBtn, &DButtonBoxButton::clicked, this, [=]() {
214 d->stackWidget->setCurrentWidget(d->runningTable);
215 d->search->hide();
216 updateRunning();
217 });
218 connect(d->repositoryBtn, &DButtonBoxButton::clicked, this, [=]() {
219 d->stackWidget->setCurrentWidget(d->repTable);
220 d->search->show();
221 });
222}
223
224void MainFrame::updateInstalled()
225{

Callers

nothing calls this directly

Calls 7

connectFunction · 0.85
execMethod · 0.45
setEnabledMethod · 0.45
isEmptyMethod · 0.45
textMethod · 0.45
hideMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected