2#include <NDEVR/QCustomScrollArea.h>
3#include <NDEVR/RibbonSubGroup.h>
4#include <NDEVR/TouchScrollManager.h>
25 setWidgetResizable(
true);
26 setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
27 setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
28 setAlignment(Qt::AlignCenter);
29 setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
31 QWidget* widget =
new QWidget();
32 widget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding);
33 widget->setAutoFillBackground(
true);
34 widget->setBackgroundRole(QPalette::Base);
35 QVBoxLayout* scroll_layout =
new QVBoxLayout();
37 widget->setLayout(scroll_layout);
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition RibbonSubGroup.h:43
void setSpacing(int spacing)
Definition RibbonSubGroup.cpp:367
virtual void sortButtons(const std::function< bool(Button *, Button *)> &sorter)
Definition RibbonSubGroup.cpp:729
void setIconSizeMultiplier(fltp04 size_multiplier)
Definition RibbonSubGroup.cpp:399
void setLayoutMode(RibbonLayoutMode layout_mode)
Definition RibbonSubGroup.h:69
void updateRibbonLayout()
Definition RibbonSubGroup.cpp:749
void setIgnoredSize(bool ignored)
Definition RibbonSubGroup.cpp:323
const Buffer< Button * > & buttons() const
Definition RibbonSubGroup.h:51
Button * addButton(Button *button, uint04 index=Constant< uint04 >::NaN, bool update_layout=false)
Definition RibbonSubGroup.cpp:66
void removeButton(Button *button)
Definition RibbonSubGroup.cpp:93
void clear()
Definition RibbonSubGroup.cpp:310
static NDEVR_BASE_API bool AlphaNumericCompare(const String &left, const String &right)
Definition String.cpp:521
NDEVR_BASE_API const String & translation() const
Definition TranslatedString.cpp:104
float fltp04
Defines an alias representing a 4 byte floating-point number.
Definition BaseValues.hpp:157
@ e_vertical
Definition RibbonLayoutMode.hpp:38