?? 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 + -