Skip to content

Commit

Permalink
update confirmation dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
pypt committed Jun 1, 2012
1 parent b9696b2 commit 944947f
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 0 deletions.
14 changes: 14 additions & 0 deletions fvupdateconfirmdialog.cpp
Original file line number Diff line number Diff line change
@@ -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;
}
22 changes: 22 additions & 0 deletions fvupdateconfirmdialog.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#ifndef FVUPDATECONFIRMDIALOG_H
#define FVUPDATECONFIRMDIALOG_H

#include <QDialog>

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
98 changes: 98 additions & 0 deletions fvupdateconfirmdialog.ui
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>FvUpdateConfirmDialog</class>
<widget class="QDialog" name="FvUpdateConfirmDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>480</width>
<height>240</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="updateFileIsLocatedLabel">
<property name="text">
<string>The update file is located at:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="updateFileLinkLabel">
<property name="text">
<string>&lt;a href=&quot;%1&quot;&gt;%1&lt;/a&gt;</string>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="downloadThisUpdateLabel">
<property name="text">
<string>Download this update, close &quot;%1&quot;, install it, and then reopen &quot;%1&quot;.</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="whenYouClickOkLabel">
<property name="text">
<string>When you click &quot;OK&quot;, this link will be opened in your browser.</string>
</property>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="confirmButtonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>confirmButtonBox</sender>
<signal>accepted()</signal>
<receiver>FvUpdateConfirmDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>confirmButtonBox</sender>
<signal>rejected()</signal>
<receiver>FvUpdateConfirmDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

0 comments on commit 944947f

Please sign in to comment.