|
KanoopGuiQt 1.3.0
Qt GUI utility library
|
|
QComboBox subclass with bold font helpers and keyboard-commit signals. More...
#include <combobox.h>
Inheritance diagram for ComboBox:
Collaboration diagram for ComboBox:Signals | |
| void | accept () |
| Emitted when the user presses Enter/Return to accept the current value. | |
| void | lostFocus () |
| Emitted when the widget loses keyboard focus. | |
Public Member Functions | |
| ComboBox (QWidget *parent=nullptr) | |
| Construct with an optional parent. | |
| void | setBold (bool bold) |
| Set the font weight of all items in the combo box. | |
| void | setRowBold (int row, bool bold) |
| Set the font weight of a specific row. | |
QComboBox subclass with bold font helpers and keyboard-commit signals.
ComboBox emits accept() when the user presses Enter/Return, and lostFocus() when the widget loses keyboard focus. Individual rows or the entire widget can have their font weight changed to bold.
Definition at line 14 of file combobox.h.
|
explicit |
Construct with an optional parent.
| parent | Optional QWidget parent |
| void ComboBox::setBold | ( | bool | bold | ) |
Set the font weight of all items in the combo box.
| bold | true for bold, false for normal weight |
| void ComboBox::setRowBold | ( | int | row, |
| bool | bold | ||
| ) |
Set the font weight of a specific row.
| row | Zero-based row index |
| bold | true for bold, false for normal weight |