Refactor VerticalTextToolButton.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user