Mercurial > trustbridge
view ui/certificateitemwidget.h @ 628:3a9c0f38bbad trustbridge-refactor
Made certificate lists member of mainwindow and added some temporary debug msgs.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 23 Jun 2014 12:49:09 +0200 |
parents | 566ee111e331 |
children | 9d806f140bd5 |
line wrap: on
line source
/* Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik * Software engineering by Intevation GmbH * * This file is Free Software under the GNU GPL (v>=2) * and comes with ABSOLUTELY NO WARRANTY! * See LICENSE.txt for details. */ #ifndef CERTIFICATELISTITEM_H #define CERTIFICATELISTITEM_H /** * @file certificateitemdelegate.h * @brief Item delegate drawing custom certificate items in list views. * */ #include <QWidget> #include <QLabel> #include <QComboBox> #include "certificate.h" class CertificateItemWidget : public QWidget { Q_OBJECT public: CertificateItemWidget(QWidget *parent = 0, const Certificate &cert = Certificate()); bool state(); Certificate certificate(); private: void setupGUI(); Certificate mCertificate; QLabel *mLabel; QComboBox *mComboBox; private slots: void currentStateChanged(int ndx); signals: void stateChanged(bool state, const Certificate &cert); }; #endif