Mercurial > trustbridge
comparison ui/certificateitemwidget.h @ 582:88c9bdc74175 trustbridge-refactor
New widgets to display certificates in lists.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 27 May 2014 16:16:21 +0200 |
parents | |
children | 566ee111e331 |
comparison
equal
deleted
inserted
replaced
581:ab622e094786 | 582:88c9bdc74175 |
---|---|
1 /* Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik | |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU GPL (v>=2) | |
5 * and comes with ABSOLUTELY NO WARRANTY! | |
6 * See LICENSE.txt for details. | |
7 */ | |
8 #ifndef CERTIFICATELISTITEM_H | |
9 #define CERTIFICATELISTITEM_H | |
10 /** | |
11 * @file certificateitemdelegate.h | |
12 * @brief Item delegate drawing custom certificate items in list views. | |
13 * | |
14 */ | |
15 #include <QWidget> | |
16 #include <QLabel> | |
17 #include <QComboBox> | |
18 | |
19 #include "certificate.h" | |
20 | |
21 class CertificateItemWidget : public QWidget | |
22 { | |
23 | |
24 public: | |
25 CertificateItemWidget(QWidget *parent = 0, const Certificate &cert = Certificate()); | |
26 | |
27 private: | |
28 void setupGUI(); | |
29 | |
30 Certificate mCertificate; | |
31 QLabel *mLabel; | |
32 QComboBox *mComboBox; | |
33 }; | |
34 #endif |