Main Page
Namespaces
Classes
Files
File List
File Members
src
ui
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
MetaInfoBox::m_metaInfos
QVector< QStringPair > m_metaInfos
To prevent flickering, avoid redrawing if meta info didn't change.
Definition:
metainfobox.h:30
MetaInfoBox::m_labels
QVector< QLabel * > m_labels
Definition:
metainfobox.h:27
MetaInfoBox::clear
void clear()
Removes all meta info.
Definition:
metainfobox.cpp:44
MetaInfoBox::m_layout
QGridLayout * m_layout
Definition:
metainfobox.h:26
MetaInfoBox::setMetaInfos
void setMetaInfos(QVector< QStringPair > metaInfos)
Sets a list of key-value pairs as meta info.
Definition:
metainfobox.cpp:20
MetaInfoBox::~MetaInfoBox
~MetaInfoBox()
Definition:
metainfobox.cpp:48
MetaInfoBox::MetaInfoBox
MetaInfoBox(QWidget *parent=0)
Definition:
metainfobox.cpp:8
MetaInfoBox
Definition:
metainfobox.h:11
QStringPair
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