PeriDyno 1.0.0
Loading...
Searching...
No Matches
LockerButton.h
Go to the documentation of this file.
1#pragma once
2
3
4#ifndef LOCKER_BUTTON_H
5#define LOCKER_BUTTON_H
6
7#include <QWidget>
8#include <QPushButton>
9
10class QLabel;
11
12class LockerButton : public QPushButton
13{
14 Q_OBJECT
15public:
16 explicit LockerButton(QWidget* parent = nullptr);
17
18 // SetImageLabel
19 void SetImageLabel(const QPixmap& pixmap);
20
21 // SetTextLabel
22 void SetTextLabel(QString text);
23
24 // @brief GetImageHandle
25 QLabel* GetImageHandle();
26
27 // @brief GetImageHandle
28 QLabel* GetTextHandle();
29
30private:
31
32 QLabel* mImageLabel;
33
34 QLabel* mTextLabel;
35};
36
37#endif // LOCKER_BUTTON_H
QLabel * mImageLabel
void SetImageLabel(const QPixmap &pixmap)
QLabel * GetImageHandle()
QLabel * mTextLabel
LockerButton(QWidget *parent=nullptr)
QLabel * GetTextHandle()
void SetTextLabel(QString text)