![]() |
Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
|
#include "abstract_settings_page.h"#include "settings_search_model.h"#include <QCheckBox>#include <QGridLayout>#include <QGroupBox>#include <QLabel>#include <QLayout>#include <QLineEdit>#include <QPair>#include <QSpinBox>Functions | |
| static void | collectWidgets (QLayout *layout, QList< QPair< QWidget *, QLayout * > > &widgets) |
| Recursively collects all widgets within a layout. | |
| static bool | isValidSettingLabel (const QLabel *label) |
| Rejects QLabels that are not setting names. | |
| static QWidget * | controlForLabel (QLabel *label, QLayout *containingLayout) |
| Finds the control associated with a setting label. | |
| static QString | buildFullSearchText (const QString &groupTitle, const QString &cleanLabel, QWidget *control) |
| Builds the extended search text for an entry. | |
|
static |
Builds the extended search text for an entry.
Combines the group title, label, and any extra searchable text derived from the associated control (placeholder, prefix/suffix, tooltip). Combo values and numeric tooltips are excluded since they change at runtime and would make the search index stale.
|
static |
Recursively collects all widgets within a layout.
| layout | The layout to walk |
| widgets | Output list of (widget, containing layout) pairs |
|
static |
Finds the control associated with a setting label.
Uses the explicit buddy if set, otherwise the widget in the cell (or slot) immediately following the label within the same layout. Returns nullptr when no obvious control is found.
|
static |
Rejects QLabels that are not setting names.
HTML link labels, path values, and excessively long labels are filtered out.