Mercurial > trustbridge
comparison ui/listupdatedialog.h @ 213:3ebebd055d3a
Refactored the list update dialog. Now it looks a bit more like the mainwindow.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 27 Mar 2014 09:08:44 +0100 |
parents | 252ffe6e27fd |
children | 06089ba2614a |
comparison
equal
deleted
inserted
replaced
212:f7176140d20d | 213:3ebebd055d3a |
---|---|
2 #define LISTUPDATEDIALOG_H | 2 #define LISTUPDATEDIALOG_H |
3 | 3 |
4 #include "certificatelist.h" | 4 #include "certificatelist.h" |
5 #include <QDialog> | 5 #include <QDialog> |
6 #include <QMainWindow> | 6 #include <QMainWindow> |
7 #include <QTextEdit> | |
8 #include <QListWidgetItem> | |
7 /** | 9 /** |
8 * @file listupdatedialog.h | 10 * @file listupdatedialog.h |
9 * @brief The dialog for certificate selection. | 11 * @brief The dialog for certificate selection. |
10 */ | 12 */ |
11 | 13 |
12 class QListWidget; | 14 class QListWidget; |
13 | 15 |
14 class ListUpdateDialog : public QDialog | 16 class ListUpdateDialog : public QDialog |
15 { | 17 { |
18 Q_OBJECT | |
16 public: | 19 public: |
17 /** @brief Create a list update dialog for the listToInstall */ | 20 /** @brief Create a list update dialog for the listToInstall */ |
18 ListUpdateDialog(QMainWindow *parent, const CertificateList &listToInstall); | 21 ListUpdateDialog(QMainWindow *parent, const CertificateList &listToInstall); |
19 | 22 |
20 private: | 23 private: |
21 CertificateList mCertificateList; | 24 CertificateList mCertificateList; |
22 void setupGUI(); | 25 void setupGUI(); |
23 | 26 |
24 QListWidget *mInstallListWidget; | 27 QListWidget *mCertListWidget; |
25 QListWidget *mRemoveListWidget; | 28 QTextEdit *mDetailWidget; |
26 | 29 |
27 private slots: | 30 private slots: |
28 void executeUpdate(); | 31 void executeUpdate(); |
32 void showDetails(QListWidgetItem*); | |
29 }; | 33 }; |
30 | 34 |
31 #endif // LISTUPDATEDIALOG_H | 35 #endif // LISTUPDATEDIALOG_H |