|
KanoopGuiQt 1.3.0
Qt GUI utility library
|
|
QWidget subclass that adds logging support and auto-wired input validation. More...
#include <complexwidget.h>
Inheritance diagram for ComplexWidget:
Collaboration diagram for ComplexWidget:Public Slots | |
| virtual void | onPreferencesChanged () |
| Called when application preferences change; override to react. | |
Public Member Functions | |
| ComplexWidget (QWidget *parent=nullptr) | |
| Construct with an optional parent. | |
| ComplexWidget (const QString &loggingCategory, QWidget *parent=nullptr) | |
| Construct with a logging category and optional parent. | |
Protected Slots | |
| virtual void | validate () |
| Override to implement form validation logic. | |
Protected Member Functions | |
| void | initializeBase () |
| Perform base-class initialization; call after building the UI. | |
| void | connectValidationSignals () |
| Connect all child input widget signals to validate(). | |
QWidget subclass that adds logging support and auto-wired input validation.
ComplexWidget automatically connects common input widget signals (QLineEdit, QComboBox, QRadioButton, QCheckBox, QSpinBox) to the validate() slot so that subclasses only need to override validate() to implement form validation. Call initializeBase() from the subclass constructor after building the UI.
Definition at line 17 of file complexwidget.h.
|
explicit |
Construct with a logging category and optional parent.
| loggingCategory | Category name used for log output |
| parent | Optional QWidget parent |
|
inlineprotectedvirtualslot |
Override to implement form validation logic.
Definition at line 44 of file complexwidget.h.