Hide able edit patient panel.
This commit is contained in:
24
src/components/VerticalTextToolButton.h
Normal file
24
src/components/VerticalTextToolButton.h
Normal file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// Created by Krad on 2022/1/11.
|
||||
//
|
||||
|
||||
#ifndef GUI_VERTICALTEXTTOOLBUTTON_H
|
||||
#define GUI_VERTICALTEXTTOOLBUTTON_H
|
||||
|
||||
#include <QToolButton>
|
||||
class VerticalTextToolButton: public QToolButton {
|
||||
public:
|
||||
explicit VerticalTextToolButton(QWidget* parent = nullptr);
|
||||
virtual ~VerticalTextToolButton();
|
||||
void setVerticalText(const QString text){
|
||||
verticalText = text;
|
||||
}
|
||||
protected:
|
||||
virtual void paintEvent(QPaintEvent* e) override;
|
||||
|
||||
private:
|
||||
QString verticalText;
|
||||
};
|
||||
|
||||
|
||||
#endif //GUI_VERTICALTEXTTOOLBUTTON_H
|
||||
Reference in New Issue
Block a user