mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-04-13 10:41:28 +03:00
First commit
This commit is contained in:
23
custombutton.h
Normal file
23
custombutton.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef CUSTOMBUTTON_H
|
||||
#define CUSTOMBUTTON_H
|
||||
|
||||
#include <QPushButton>
|
||||
#include <QPainter>
|
||||
|
||||
class CustomButton : public QPushButton {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CustomButton(const QString &text1, const QString &text2, const QString &text3, const QColor &lineColor, QWidget *parent = nullptr);
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *event) override;
|
||||
|
||||
private:
|
||||
QString text1;
|
||||
QString text2;
|
||||
QString text3;
|
||||
QColor lineColor;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user