MCPcopy Create free account
hub / github.com/alex-spataru/QSimpleUpdater / Window

Method Window

tutorial/src/Window.cpp:26–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24//==============================================================================
25
26Window::Window (QWidget* parent) : QMainWindow (parent) {
27 m_ui = new Ui::Window;
28 m_ui->setupUi (this);
29
30 m_updater = QSimpleUpdater::getInstance();
31
32 /* Check for updates when the "Check For Updates" button is clicked */
33 connect (m_updater, SIGNAL (checkingFinished (QString)),
34 this, SLOT (updateChangelog (QString)));
35
36 /* React to button clicks */
37 connect (m_ui->resetButton, SIGNAL (clicked()),
38 this, SLOT (resetFields()));
39 connect (m_ui->closeButton, SIGNAL (clicked()),
40 this, SLOT (close()));
41 connect (m_ui->checkButton, SIGNAL (clicked()),
42 this, SLOT (checkForUpdates()));
43
44 /* Resize the dialog to fit */
45 setFixedSize (minimumSizeHint());
46
47 /* Reset the UI state */
48 resetFields();
49}
50
51//==============================================================================
52// Window::~Window

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected