The FixedOptionWidget class A widget that displays a fixed image option and reacts to user interaction. More...
#include <FixedOptionWidget.h>
Public Member Functions | |
FixedOptionWidget (QWidget *parent=nullptr) | |
Constructs the FixedOptionWidget. | |
void | setPixmap (const QPixmap &pixmap) |
Sets the pixmap to be displayed. | |
QPixmap | get_pixmap () const |
Retrieves the current displayed pixmap. | |
~FixedOptionWidget () | |
Destructor. | |
The FixedOptionWidget class A widget that displays a fixed image option and reacts to user interaction.
This widget provides a visual option using a pixmap. It may be used as a selectable item within a larger interface, such as a wallpaper or icon chooser.
|
explicit |
Constructs the FixedOptionWidget.
parent | Optional parent QWidget. |
QPixmap FixedOptionWidget::get_pixmap | ( | ) | const |
Retrieves the current displayed pixmap.
void FixedOptionWidget::setPixmap | ( | const QPixmap & | pixmap | ) |
Sets the pixmap to be displayed.
pixmap | The image to display. |