MCPcopy Create free account
hub / github.com/ckaiser/Lightscreen / getDocumentsPath

Method getDocumentsPath

tools/os.cpp:152–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152QString 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
171QPixmap os::grabWindow(WId winId)
172{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected