metainfobox.h
Go to the documentation of this file.
1 #ifndef METAINFOBOX_H
2 #define METAINFOBOX_H
3 
4 #include <QGroupBox>
5 #include <QString>
6 
7 typedef QPair<QString, QString> QStringPair;
8 class QGridLayout;
9 class QLabel;
10 
11 class MetaInfoBox : public QGroupBox
12 {
13  Q_OBJECT
14 
15 public:
16  explicit MetaInfoBox(QWidget *parent = 0);
17  ~MetaInfoBox();
18 
20  void setMetaInfos(QVector<QStringPair> metaInfos);
21 
22 private:
24  void clear();
25 
26  QGridLayout* m_layout;
27  QVector<QLabel*> m_labels;
28 
30  QVector<QStringPair> m_metaInfos;
31 };
32 
33 #endif // METAINFOBOX_H
QVector< QStringPair > m_metaInfos
To prevent flickering, avoid redrawing if meta info didn&#39;t change.
Definition: metainfobox.h:30
QVector< QLabel * > m_labels
Definition: metainfobox.h:27
void clear()
Removes all meta info.
Definition: metainfobox.cpp:44
QGridLayout * m_layout
Definition: metainfobox.h:26
void setMetaInfos(QVector< QStringPair > metaInfos)
Sets a list of key-value pairs as meta info.
Definition: metainfobox.cpp:20
MetaInfoBox(QWidget *parent=0)
Definition: metainfobox.cpp:8
QPair< QString, QString > QStringPair
Definition: metainfobox.h:7


hector_nist_arena_designer
Author(s): Stefan Kohlbrecher , Johannes Simon
autogenerated on Fri Aug 21 2020 10:45:27