From 944947f02dc463da66a704fe599924b1e002a95d Mon Sep 17 00:00:00 2001 From: Linas Valiukas Date: Fri, 1 Jun 2012 18:26:51 +0300 Subject: [PATCH] update confirmation dialog --- fvupdateconfirmdialog.cpp | 14 ++++++ fvupdateconfirmdialog.h | 22 +++++++++ fvupdateconfirmdialog.ui | 98 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 134 insertions(+) create mode 100644 fvupdateconfirmdialog.cpp create mode 100644 fvupdateconfirmdialog.h create mode 100644 fvupdateconfirmdialog.ui diff --git a/fvupdateconfirmdialog.cpp b/fvupdateconfirmdialog.cpp new file mode 100644 index 0000000..fba02b4 --- /dev/null +++ b/fvupdateconfirmdialog.cpp @@ -0,0 +1,14 @@ +#include "fvupdateconfirmdialog.h" +#include "ui_fvupdateconfirmdialog.h" + +FvUpdateConfirmDialog::FvUpdateConfirmDialog(QWidget *parent) : + QDialog(parent), + m_ui(new Ui::FvUpdateConfirmDialog) +{ + m_ui->setupUi(this); +} + +FvUpdateConfirmDialog::~FvUpdateConfirmDialog() +{ + delete m_ui; +} diff --git a/fvupdateconfirmdialog.h b/fvupdateconfirmdialog.h new file mode 100644 index 0000000..a781ea7 --- /dev/null +++ b/fvupdateconfirmdialog.h @@ -0,0 +1,22 @@ +#ifndef FVUPDATECONFIRMDIALOG_H +#define FVUPDATECONFIRMDIALOG_H + +#include + +namespace Ui { +class FvUpdateConfirmDialog; +} + +class FvUpdateConfirmDialog : public QDialog +{ + Q_OBJECT + +public: + explicit FvUpdateConfirmDialog(QWidget *parent = 0); + ~FvUpdateConfirmDialog(); + +private: + Ui::FvUpdateConfirmDialog* m_ui; +}; + +#endif // FVUPDATECONFIRMDIALOG_H diff --git a/fvupdateconfirmdialog.ui b/fvupdateconfirmdialog.ui new file mode 100644 index 0000000..925daf5 --- /dev/null +++ b/fvupdateconfirmdialog.ui @@ -0,0 +1,98 @@ + + + FvUpdateConfirmDialog + + + + 0 + 0 + 480 + 240 + + + + Dialog + + + + + + The update file is located at: + + + + + + + <a href="%1">%1</a> + + + true + + + Qt::TextBrowserInteraction + + + + + + + Download this update, close "%1", install it, and then reopen "%1". + + + + + + + When you click "OK", this link will be opened in your browser. + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + + confirmButtonBox + accepted() + FvUpdateConfirmDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + confirmButtonBox + rejected() + FvUpdateConfirmDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + +