A widget for adjusting card sizes using a slider.
More...
#include <card_size_widget.h>
A widget for adjusting card sizes using a slider.
This widget allows users to dynamically change the card size in a linked FlowWidget and updates the application's settings accordingly.
◆ CardSizeWidget()
| CardSizeWidget::CardSizeWidget |
( |
QWidget * | parent, |
|
|
FlowWidget * | flowWidget = nullptr, |
|
|
int | defaultValue = 100 ) |
|
explicit |
< Slider range for card size adjustment.
< Initial slider value.
◆ cardSizeSettingUpdated
| void CardSizeWidget::cardSizeSettingUpdated |
( |
int | newValue | ) |
|
|
signal |
Emitted when the slider value changes, but on a debounce timer. Any parents that care about saving the value to settings should use this signal to indicate when to save the new value to settings.
◆ getSlider()
| QSlider * CardSizeWidget::getSlider |
( |
| ) |
const |
|
nodiscard |
Gets the slider widget used for adjusting the card size.
- Returns
- A pointer to the QSlider object.
◆ updateCardSizeSetting
| void CardSizeWidget::updateCardSizeSetting |
( |
int | newValue | ) |
|
|
privateslot |
Updates the card size setting in the application's cache.
- Parameters
-
| newValue | The new card size value set by the slider. |
◆ cardSizeLabel
| QLabel* CardSizeWidget::cardSizeLabel |
|
private |
◆ cardSizeLayout
| QHBoxLayout* CardSizeWidget::cardSizeLayout |
|
private |
◆ cardSizeSlider
| QSlider* CardSizeWidget::cardSizeSlider |
|
private |
◆ debounceTimer
| QTimer CardSizeWidget::debounceTimer |
|
private |
◆ flowWidget
◆ parent
| QWidget* CardSizeWidget::parent |
|
private |
◆ pendingValue
| int CardSizeWidget::pendingValue |
|
private |
The documentation for this class was generated from the following files: