blob: bed16a4e7dfcee5181b049d01cbc5189b16a75e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include <QScrollArea>
#include <QVBoxLayout>
#include <QWidget>
/** @brief generic vertically scrolling layout */
class CDScrollContainerLayout : public QVBoxLayout {
Q_OBJECT
private:
QVBoxLayout *main_layout;
QScrollArea *scroll_area;
QWidget *scroll_container;
QVBoxLayout *scroll_inner;
public:
CDScrollContainerLayout(QWidget *parent = nullptr);
virtual ~CDScrollContainerLayout();
/** @brief add widget to layout */
virtual void addWidget(QWidget *widget);
/** @brief remove widget from layout */
virtual void removeWidget(QWidget *widget);
};
|