Refactor VerticalTextToolButton.

This commit is contained in:
Krad
2022-06-07 15:06:29 +08:00
parent 9a070370d1
commit b51572f5ea
2 changed files with 8 additions and 13 deletions

View File

@@ -9,15 +9,15 @@
class VerticalTextToolButton: public QToolButton {
public:
explicit VerticalTextToolButton(QWidget* parent = nullptr);
virtual ~VerticalTextToolButton();
void setVerticalText(const QString text){
verticalText = text;
~VerticalTextToolButton() override = default;
void setVerticalText(const QString& text){
mVerticalText = text;
}
protected:
virtual void paintEvent(QPaintEvent* e) override;
void paintEvent(QPaintEvent* e) override;
private:
QString verticalText;
QString mVerticalText;
};