| 150 | } |
| 151 | |
| 152 | QString os::getDocumentsPath() |
| 153 | { |
| 154 | #ifdef Q_OS_WIN |
| 155 | TCHAR szPath[MAX_PATH]; |
| 156 | |
| 157 | if (SUCCEEDED(SHGetFolderPath(NULL, |
| 158 | CSIDL_PERSONAL | CSIDL_FLAG_CREATE, |
| 159 | NULL, |
| 160 | 0, |
| 161 | szPath))) { |
| 162 | return QString::fromWCharArray(szPath); |
| 163 | } |
| 164 | |
| 165 | return QDir::homePath() + QDir::separator() + "My Documents"; |
| 166 | #else |
| 167 | return QDir::homePath() + QDir::separator() + "Documents"; |
| 168 | #endif |
| 169 | } |
| 170 | |
| 171 | QPixmap os::grabWindow(WId winId) |
| 172 | { |
nothing calls this directly
no outgoing calls
no test coverage detected