diff ui/mainwindow.cpp @ 10:fe39d93f1261

Start on Downloader component
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 13 Feb 2014 14:43:15 +0000
parents 992c0ec57660
children 7e2f14c7aba2
line wrap: on
line diff
--- a/ui/mainwindow.cpp	Wed Feb 12 18:45:13 2014 +0000
+++ b/ui/mainwindow.cpp	Thu Feb 13 14:43:15 2014 +0000
@@ -9,6 +9,7 @@
 #include <QApplication>
 
 #include "certificatelist.h"
+#include "downloader.h"
 
 MainWindow::MainWindow() {
     createActions();
@@ -35,14 +36,14 @@
 
 void MainWindow::showMessage()
 {
-    CertificateList * myCertList = new CertificateList((char*)"foo");
     mTrayIcon->showMessage("Hello", "World", QSystemTrayIcon::Information,
                           10000);
 }
 void MainWindow::manualCheck()
 {
-    QMessageBox::information(0, "Yay",
-                             "It Woarx.\n");
+    Downloader* downloader = new Downloader(this, QString::fromLatin1(""));
+    connect(downloader, &Downloader::finished, downloader, &QObject::deleteLater);
+    downloader->start();
 }
 
 void MainWindow::createActions()

http://wald.intevation.org/projects/trustbridge/