VAPOR3
3.9.4
apps
vaporgui
VFrame.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <QWidget>
4
#include <QFrame>
5
#include <forward_list>
6
11
class
VFrame
:
public
QFrame {
12
Q_OBJECT
13
14
public
:
15
VFrame
();
16
17
void
addWidget
(QWidget *widget);
18
19
int
getNumOfChildWidgets
()
const
;
20
21
// The following two methods control if a child is shown or hidden.
22
// If a child widget is the ith added to this VFrame, then idx should be i-1.
23
// It returns 0 upon success, and 1 upon failure (e.g. invalid index).
24
int
hideChildAtIdx
(
int
idx);
25
int
showChildAtIdx
(
int
idx);
26
27
private
:
28
std::forward_list<QWidget *> _child_widgets;
29
int
_num_of_children = 0;
30
};
VFrame
Definition:
VFrame.h:11
VFrame::getNumOfChildWidgets
int getNumOfChildWidgets() const
VFrame::VFrame
VFrame()
VFrame::showChildAtIdx
int showChildAtIdx(int idx)
VFrame::addWidget
void addWidget(QWidget *widget)
VFrame::hideChildAtIdx
int hideChildAtIdx(int idx)
Generated by
1.9.6