Minor UI changes

This commit is contained in:
Alex Spataru 2015-01-15 17:07:28 -06:00
parent 56c132a21e
commit f37c5b5551
8 changed files with 23 additions and 47 deletions

View File

@ -67,7 +67,7 @@ void Example::checkForUpdates() {
"QSimpleUpdater/Files-for-example-project/current_version.txt");
// Tell the updater where to download the update, its recommended to use direct links
updater->setDownloadUrl("https://github.com/alex-97/QSimpleUpdater/archive/master.zip");
updater->setDownloadUrl("https://codeload.github.com/alex-97/QSimpleUpdater/zip/master");
// Finally, check for updates...
updater->checkForUpdates();

View File

@ -25,7 +25,7 @@ unix:!android {
}
win32* {
LIBS += -L$$PWD/dependencies/OpenSSL-Win32/lib -llibeay32
LIBS += -LC:/OpenSSL-Win32/lib -llibeay32
}
RESOURCES += $$PWD/res/qsu_resources.qrc

View File

@ -2,7 +2,7 @@
PREFACE
--------------
Many websites today use the HTTPS protocol, which means that you will need SSL in order to communicate with them. If your project needs to access such a webiste (for example GitHub), you will need to carefully read the following information in order to ensure that QSimpleUpdater works with those websites (both in your machine and in the final users' machine).
Many websites today use the HTTPS protocol, which means that you will need SSL in order to communicate with them. If your project needs to access such a webiste (for example GitHub), you will need to carefully read the following information in order to ensure that QSimpleUpdater works with those websites (both in your machine and in the final users' machine).
This readme guide is extremely important for any developer wishing to deploy his or her applications under the Windows platform, because the application will depend on the libraries provided by QSimpleUpdater.
@ -10,7 +10,7 @@ This readme guide is extremely important for any developer wishing to deploy his
LINUX
--------------
Make sure that you have installed the following libraries in your system:
Make sure that you have installed the following libraries in your system:
- lssl
- lcrypto
@ -19,13 +19,14 @@ This readme guide is extremely important for any developer wishing to deploy his
MAC OSX
--------------
The libraries required by QSimpleUpdater are the same as Linux, however, these libraries are installed by default in most Mac OS X installations.
The libraries required by QSimpleUpdater are the same as Linux, however, these libraries are installed by default in most Mac OS X installations.
--------------
WINDOWS
--------------
QSimpleUpdater makes use of the OpenSSL-Win32 project, make sure that you deploy the following DLLs allong your application (the DLLs are provided with the source of QSimpleUpdater):
QSimpleUpdater makes use of the OpenSSL-Win32 project, make sure that have it installed and that the project knows where to find them (the default location is C:/OpenSSL-Win32) and that you deploy the following libraries with your compiled project:
- libeay32.dll
- ssleay32.dll
- dependencies/OpenSSL-Win32/bin/libeay32.dll
- dependencies/OpenSSL-Win32/bin/ssleay32.dll

View File

@ -19,9 +19,16 @@
DownloadDialog::DownloadDialog (QWidget *parent)
: QWidget (parent)
, ui (new Ui::DownloadDialog) {
// Setup the UI
ui->setupUi (this);
// Make the window look like a dialog
QIcon _blank;
setWindowIcon (_blank);
setWindowModality (Qt::WindowModal);
setWindowFlags (Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint);
// Connect SIGNALS/SLOTS
connect (ui->stopButton, SIGNAL (clicked()), this, SLOT (cancelDownload()));
connect (ui->openButton, SIGNAL (clicked()), this, SLOT (installUpdate()));

View File

@ -6,28 +6,16 @@
<rect>
<x>0</x>
<y>0</y>
<width>500</width>
<height>180</height>
<width>490</width>
<height>199</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>500</width>
<height>180</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>500</width>
<height>180</height>
</size>
</property>
<property name="windowTitle">
<string>Updater</string>
</property>
@ -109,20 +97,13 @@
</widget>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<widget class="QProgressBar" name="progressBar">
<property name="minimumSize">
<size>
<width>20</width>
<height>40</height>
<width>320</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QProgressBar" name="progressBar">
<property name="value">
<number>0</number>
</property>
@ -131,19 +112,6 @@
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="timeLabel">
<property name="text">