screen.cpp
来自「爱可视605看PDF程式源代码, 基于APDF」· C++ 代码 · 共 46 行
CPP
46 行
#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>using namespace archos;ScreenMode Screen::mode(){ int dw = qt_screen->width(); int dh = qt_screen->height(); if ( dw == 480 && dh == 272 ) { return wqvga; } else if ( dw == 320 && dh == 240 ) { return qvga; } else if ( dw == 800 && dh == 480 ) { return wvga; } else { return tv; }}QString Screen::prefix(){ if (Screen::mode() == wqvga) { return QString("wqvga/"); } else if (Screen::mode() == wvga) { return QString("wvga/"); } else if (Screen::mode() == qvga) { return QString("qvga/"); } else { return QString("tv/"); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?