|
LMMS
|
#include <ControlLayout.h>
Public Member Functions | |
| ControlLayout (QWidget *parent, int margin=-1, int hSpacing=-1, int vSpacing=-1) | |
| ~ControlLayout () override | |
| void | addItem (QLayoutItem *item) override |
| int | horizontalSpacing () const |
| int | verticalSpacing () const |
| Qt::Orientations | expandingDirections () const override |
| bool | hasHeightForWidth () const override |
| int | heightForWidth (int) const override |
| int | count () const override |
| QLayoutItem * | itemAt (int index) const override |
| QLayoutItem * | itemByString (const QString &key) const |
| QSize | minimumSize () const override |
| void | setGeometry (const QRect &rect) override |
| QSize | sizeHint () const override |
| QLayoutItem * | takeAt (int index) override |
| void | removeFocusFromSearchBar () |
Private Types | |
| using | ControlLayoutMap = QMap<QString, QLayoutItem*> |
Private Slots | |
| void | onTextChanged (const QString &) |
Private Member Functions | |
| int | doLayout (const QRect &rect, bool testOnly) const |
| int | smartSpacing (QStyle::PixelMetric pm) const |
| ControlLayoutMap::const_iterator | pairAt (int index) const |
Private Attributes | |
| ControlLayoutMap | m_itemMap |
| int | m_hSpace |
| int | m_vSpace |
| QLineEdit * | m_searchBar |
Static Private Attributes | |
| constexpr static const int | m_minWidth = 400 |
| static constexpr const char * | s_searchBarName = "!!searchBar!!" |
| name of search bar, must be ASCII sorted before any alpha numerics | |
Layout for controls (models)
Originally token from Qt's FlowLayout example. Modified.
Features a search bar, as well as looking up widgets with string keys Keys have to be provided in the widgets' objectNames
|
private |
|
explicit |
|
override |
|
override |
|
override |
|
override |
|
override |
| int lmms::gui::ControlLayout::horizontalSpacing | ( | ) | const |
|
override |
| QLayoutItem * lmms::gui::ControlLayout::itemByString | ( | const QString & | key | ) | const |
|
override |
|
private |
| void lmms::gui::ControlLayout::removeFocusFromSearchBar | ( | ) |
remove focus from QLineEdit search bar this may be useful if the mouse is outside the layout
|
override |
|
private |
|
override |
| int lmms::gui::ControlLayout::verticalSpacing | ( | ) | const |
|
private |
|
private |
|
private |
|
private |
|
staticconstexprprivate |
name of search bar, must be ASCII sorted before any alpha numerics