| 24 | //============================================================================== |
| 25 | |
| 26 | Window::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 |
nothing calls this directly
no outgoing calls
no test coverage detected