qwt_push_button.h

来自「This a framework to test new ideas in tr」· C头文件 代码 · 共 62 行

H
62
字号
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- ***************************** * Qwt Widget Library * Copyright (C) 1997   Josef Wilgen * Copyright (C) 2002   Uwe Rathmann *  * This library is free software; you can redistribute it and/or * modify it under the terms of the Qwt License, Version 1.0 *****************************************************************************/#ifndef QWT_PUSH_BUTTON_H#define QWT_PUSH_BUTTON_H#include <qpushbutton.h>#include "qwt_global.h"/*!  A push button that allows alignment of button labels,   and use of rich texts, as provided by QLabel.*/class QWT_EXPORT QwtPushButton: public QPushButton{    Q_OBJECT    Q_PROPERTY(TextFormat textFormat READ textFormat WRITE setTextFormat);    Q_PROPERTY(Alignment alignment READ alignment WRITE setAlignment);    Q_PROPERTY(int indent READ indent WRITE setIndent);public:    QwtPushButton(QWidget * = NULL, const char * name = NULL);    QwtPushButton(const QString &text,         QWidget * = NULL, const char *name = NULL);    QwtPushButton(const QIconSet &, const QString &,         QWidget * = NULL, const char *name = NULL);    TextFormat textFormat() const;    void setTextFormat(TextFormat);    virtual Qt::TextFormat usedTextFormat() const;    int alignment() const;    virtual void setAlignment(int alignment);    void setIndent(int);    int indent() const;    virtual QSize sizeHint() const;    virtual int heightForWidth(int) const;protected:    virtual void drawButtonLabel(QPainter *);private:    void init();    Qt::TextFormat d_textFormat;    int d_alignment;    int d_indent;};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?