Skip to content

Commit 230f9a6

Browse files
committed
Updated examples
1 parent 56c43b7 commit 230f9a6

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

examples/autoupdatergui/simpleUpdaterGui/mainwindow.cpp

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,17 @@ MainWindow::MainWindow(QWidget *parent) :
1414

1515
controller->start(QtAutoUpdater::UpdateController::InfoLevel); //Search for updates. Display a message if updates found, otherwise do nothing
1616

17-
connect(ui->checkUpdateButton, SIGNAL(clicked()), this, SLOT(checkUpdate())); //Connect the checkUpdateButton button to the checkUpdate method (starts the update check process)
18-
connect(ui->actionCheck_for_updates_2, SIGNAL(triggered(bool)), this, SLOT(checkUpdate())); //Connect the actionCheck_for_updates_2 to the method (starts the update check process)
17+
connect(ui->checkUpdateButton,
18+
SIGNAL(clicked()),
19+
this,
20+
SLOT(checkUpdate())
21+
); //Connect the checkUpdateButton button to the checkUpdate method (starts the update check process)
22+
23+
connect(ui->actionCheck_for_updates_2,
24+
SIGNAL(triggered(bool)),
25+
this,
26+
SLOT(checkUpdate())
27+
); //Connect the actionCheck_for_updates_2 to the method (starts the update check process)
1928
}
2029

2130
MainWindow::~MainWindow()

0 commit comments

Comments
 (0)