You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AppFlow/FITK_Component/FITKWidget/FITKLockerButton.h

76 lines
1.8 KiB
C

/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-06-12
*/
#ifndef LOCKERBUTTON_H
#define LOCKERBUTTON_H
#include <QPushButton>
class QLabel;
class QPixmap;
namespace Comp
{
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-06-12
*/
class FITKLockerButton :public QPushButton
{
Q_OBJECT;
public:
/**
* @brief Construct a new FITKLockerButton object
* @param[i] parent My Param doc
* @author BaGuijun (baguijun@163.com)
* @date 2024-06-12
*/
FITKLockerButton(QWidget* parent = nullptr);
/**
* @brief Destroy the FITKLockerButton object
* @author BaGuijun (baguijun@163.com)
* @date 2024-06-12
*/
~FITKLockerButton();
/**
* @brief
* @param[i] text
* @author BaGuijun (baguijun@163.com)
* @date 2024-06-12
*/
void setText(const QString& text);
/**
* @brief
* @param[i] image
* @author BaGuijun (baguijun@163.com)
* @date 2024-06-12
*/
void setImage(const QPixmap& image);
private:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-06-12
*/
void initialize();
private:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-06-12
*/
QLabel* m_iconLabel = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-06-12
*/
QLabel* m_textLabel = nullptr;
};
}
#endif // LOCKERBUTTON_H