📄 background.h
字号:
#ifndef _BACKGROUND_H#define _BACKGROUND_H#include <qstring.h>class QPixmap;class QImage;class Background { public: Background(); ~Background(); bool load(const QString &file, short width, short height); void sizeChanged(int newW, int newH); void scaleModeChanged(void); QPixmap *getBackground(void) {return backgroundPixmap;}; QPixmap *getShadowBackground(void) {return backgroundShadowPixmap;}; private: void sourceToBackground(void); int tileMode; // scale background = 0, tile = 1 QImage *backgroundImage; QImage *sourceImage; QPixmap *backgroundPixmap; QPixmap *backgroundShadowPixmap; QString filename; short w; short h;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -