Limo
A simple mod manager
Loading...
Searching...
No Matches
fomodcheckbox.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <QCheckBox>
9#include <QLabel>
10
11
16class FomodCheckBox : public QCheckBox
17{
18 Q_OBJECT
19public:
30 FomodCheckBox(const QString& text,
31 const QString& description,
32 const QString& image_path,
33 QLabel* description_label,
34 QLabel* image_label);
35
36protected:
42 void enterEvent(QEvent* event) override;
43
44private:
46 QString description_;
48 QString image_path_;
52 QLabel* image_label_;
53};
QString image_path_
Path to the image for the buttons plugin.
Definition fomodcheckbox.h:48
QString description_
Description of the plugin represented by this button.
Definition fomodcheckbox.h:46
FomodCheckBox(const QString &text, const QString &description, const QString &image_path, QLabel *description_label, QLabel *image_label)
Constructor.
Definition fomodcheckbox.cpp:4
void enterEvent(QEvent *event) override
Gets called when the mouse enters this widget. Sets description and image of the info panel.
Definition fomodcheckbox.cpp:15
QLabel * description_label_
Pointer to the QLabel which will be updated with the plugin description.
Definition fomodcheckbox.h:50
QLabel * image_label_
Pointer to the QLabel which will be updated with the plugin image.
Definition fomodcheckbox.h:52