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

📄 screen.cpp

📁 爱可视605看PDF程式源代码, 基于APDF
💻 CPP
字号:
#include "screen.h"#include <qapplication.h>#include <sys/types.h>#include <errno.h>#include <unistd.h>#include <sys/stat.h>#include <fcntl.h>#include <qgfx_qws.h>ScreenMode Screen::mode(){	/*int dw = QApplication::desktop()->width();	int dh = QApplication::desktop()->height();*/	int dw = qt_screen->width();	int dh = qt_screen->height();	//qWarning("%s: dh = %i, dw = %i", __FUNCTION__, dw, dh);	if ( dw == 480 && dh == 272 ) {		return wqvga;	}	else if ( dw == 320 && dh == 240 ) {		return qvga;	}	else {		return tv;	}}QString Screen::prefix(){	if (Screen::mode() == wqvga) {		return QString("wqvga/");	}	else if (Screen::mode() == qvga) {		return QString("qvga/");	}	else {		return QString("tv/");	}}

⌨️ 快捷键说明

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