⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qwt_push_button.h

📁 软件无线电的平台
💻 H
字号:
/* -*- 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -