Mercurial > trustbridge
changeset 153:252ffe6e27fd
Changed type of MainWindow from QDialog to QMainWindow.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 25 Mar 2014 08:58:18 +0100 |
parents | 52993db093f4 |
children | 3349c9596043 |
files | ui/listupdatedialog.cpp ui/listupdatedialog.h ui/mainwindow.h |
diffstat | 3 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ui/listupdatedialog.cpp Mon Mar 24 16:06:50 2014 +0100 +++ b/ui/listupdatedialog.cpp Tue Mar 25 08:58:18 2014 +0100 @@ -11,7 +11,7 @@ #include <QVBoxLayout> #include "certificate.h" -ListUpdateDialog::ListUpdateDialog(QDialog *parent, +ListUpdateDialog::ListUpdateDialog(QMainWindow *parent, const CertificateList &listToInstall) : QDialog(parent), mCertificateList(listToInstall)
--- a/ui/listupdatedialog.h Mon Mar 24 16:06:50 2014 +0100 +++ b/ui/listupdatedialog.h Tue Mar 25 08:58:18 2014 +0100 @@ -3,6 +3,7 @@ #include "certificatelist.h" #include <QDialog> +#include <QMainWindow> /** * @file listupdatedialog.h * @brief The dialog for certificate selection. @@ -14,7 +15,7 @@ { public: /** @brief Create a list update dialog for the listToInstall */ - ListUpdateDialog(QDialog *parent, const CertificateList &listToInstall); + ListUpdateDialog(QMainWindow *parent, const CertificateList &listToInstall); private: CertificateList mCertificateList;
--- a/ui/mainwindow.h Mon Mar 24 16:06:50 2014 +0100 +++ b/ui/mainwindow.h Tue Mar 25 08:58:18 2014 +0100 @@ -7,7 +7,7 @@ */ #include <QSystemTrayIcon> -#include <QDialog> +#include <QMainWindow> #include <QSettings> #include "downloader.h" @@ -16,7 +16,7 @@ class QAction; class QTimer; -class MainWindow : public QDialog +class MainWindow : public QMainWindow { Q_OBJECT