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"); "QSimpleUpdater/Files-for-example-project/current_version.txt");
// Tell the updater where to download the update, its recommended to use direct links // 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... // Finally, check for updates...
updater->checkForUpdates(); updater->checkForUpdates();

View File

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

View File

@ -25,7 +25,8 @@ This readme guide is extremely important for any developer wishing to deploy his
WINDOWS 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) DownloadDialog::DownloadDialog (QWidget *parent)
: QWidget (parent) : QWidget (parent)
, ui (new Ui::DownloadDialog) { , ui (new Ui::DownloadDialog) {
// Setup the UI // Setup the UI
ui->setupUi (this); 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 SIGNALS/SLOTS
connect (ui->stopButton, SIGNAL (clicked()), this, SLOT (cancelDownload())); connect (ui->stopButton, SIGNAL (clicked()), this, SLOT (cancelDownload()));
connect (ui->openButton, SIGNAL (clicked()), this, SLOT (installUpdate())); connect (ui->openButton, SIGNAL (clicked()), this, SLOT (installUpdate()));

View File

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