skinbutton.h

来自「《Linux程序设计权威指南》一书qt下的源码」· C头文件 代码 · 共 28 行

H
28
字号
#ifndef SKINBUTTON_H#define SKINBUTTON_H#include <qbutton.h>class QPixmap;class QPainter;class SkinButton : public QButton{Q_OBJECTpublic:	SkinButton(QPixmap *pixmap, QPixmap *active, 		QWidget *parent = 0, const char *name = 0, WFlags f = 0);	SkinButton(QWidget *parent = 0, const char *name = 0, WFlags f = 0);	void  setPixmaps(QPixmap *regular, QPixmap *active);protected:	QPixmap *pixRegular;	QPixmap *pixActive;	virtual void drawButton(QPainter *p);protected slots:	void slotPressed();	void slotReleased(); };#endif

⌨️ 快捷键说明

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