set(KATIE_MAN_FULL "${CMAKE_INSTALL_FULL_MANDIR}" CACHE PATH "Manual pages path (UNIX)")
set(KATIE_APPLICATIONS_FULL "${KATIE_DATA_FULL}/applications" CACHE PATH "Desktop applications register path (UNIX)")
set(KATIE_PIXMAPS_FULL "${KATIE_DATA_FULL}/pixmaps" CACHE PATH "Desktop applications icon path (UNIX)")
-set(KATIE_PKGCONFIG_FULL "${KATIE_DATA_FULL}/pkgconfig" CACHE PATH "Desktop applications icon path (UNIX)")
+set(KATIE_PKGCONFIG_FULL "${KATIE_DATA_FULL}/pkgconfig" CACHE PATH "pkg-config path (UNIX)")
set(KATIE_PYTHON_FULL "${KATIE_LIBRARIES_FULL}/python" CACHE PATH "Python packages path")
set(KATIE_TOOLS_SUFFIX "" CACHE STRING "Tools (moc, uic, rcc, etc.) suffix")
katie_setup_paths()
QString QFileSystemEngine::tempPath()
{
-#ifdef QT_UNIX_TEMP_PATH_OVERRIDE
- return QLatin1String(QT_UNIX_TEMP_PATH_OVERRIDE);
-#else
QString temp = QFile::decodeName(qgetenv("TMPDIR"));
if (temp.isEmpty())
temp = QLatin1String("/tmp/");
return QDir::cleanPath(temp);
-#endif
}
bool QFileSystemEngine::setCurrentPath(const QFileSystemEntry &path)
QInotifyFileSystemWatcherEngine::QInotifyFileSystemWatcherEngine(int fd)
: inotifyFd(fd)
{
- fcntl(inotifyFd, F_SETFD, FD_CLOEXEC);
+ ::fcntl(inotifyFd, F_SETFD, FD_CLOEXEC);
moveToThread(this);
}
QString path = it.next();
QFileInfo fi(path);
bool isDir = fi.isDir();
- if (isDir) {
- if (directories->contains(path))
- continue;
- } else {
- if (files->contains(path))
- continue;
+ if (isDir && directories->contains(path)) {
+ continue;
+ } else if (files->contains(path)) {
+ continue;
}
- int wd = inotify_add_watch(inotifyFd,
+ int wd = ::inotify_add_watch(inotifyFd,
QFile::encodeName(path).constData(),
(isDir
? (0
int wd = id < 0 ? -id : id;
// qDebug() << "removing watch for path" << path << "wd" << wd;
- inotify_rm_watch(inotifyFd, wd);
+ ::inotify_rm_watch(inotifyFd, wd);
it.remove();
if (id < 0) {
if ((event.mask & (IN_DELETE_SELF | IN_MOVE_SELF | IN_UNMOUNT)) != 0) {
pathToID.remove(path);
idToPath.remove(id);
- inotify_rm_watch(inotifyFd, event.wd);
+ ::inotify_rm_watch(inotifyFd, event.wd);
if (id < 0)
emit directoryChanged(path, true);
\snippet doc/src/snippets/process/process.cpp 0
- \section1 Notes for Windows Users
-
- Some Windows commands (for example, \c dir) are not provided by
- separate applications, but by the command interpreter itself.
- If you attempt to use QProcess to execute these commands directly,
- it won't work. One possible solution is to execute the command
- interpreter itself (\c{cmd.exe} on some Windows systems), and ask
- the interpreter to execute the desired command.
-
- \section1 Symbian Platform Security Requirements
-
- On Symbian, processes which use the functions kill() or terminate()
- must have the \c PowerMgmt platform security capability. If the client
- process lacks this capability, these functions will fail.
-
- Platform security capabilities are added via the
- \l{qmake-variable-reference.html#target-capability}{TARGET.CAPABILITY}
- qmake variable.
-
\sa QBuffer, QFile, QTcpSocket
*/
The environment and working directory are inherited from the calling
process.
- On Windows, arguments that contain spaces are wrapped in quotes.
-
If the process cannot be started, -2 is returned. If the process
crashes, -1 is returned. Otherwise, the process' exit code is
returned.
*/
/*!
- \fn QUuid::QUuid(const GUID &guid)
-
- Casts a Windows \a guid to a Qt QUuid.
-
- \warning This function is only for Windows platforms.
-*/
-
-/*!
- \fn QUuid &QUuid::operator=(const GUID &guid)
-
- Assigns a Windows \a guid to a Qt QUuid.
-
- \warning This function is only for Windows platforms.
-*/
-
-/*!
- \fn QUuid::operator GUID() const
-
- Returns a Windows GUID from a QUuid.
-
- \warning This function is only for Windows platforms.
-*/
-
-/*!
\fn QUuid::QUuid()
Creates the null UUID. toString() will output the null UUID
}
return false;
}
+#undef ISMORE
/*!
\fn QUuid QUuid::createUuid()
static const char *stringPropertyNameAttrC = "name";
static const char *stringPropertyTypeAttrC = "type";
static const char *stringPropertyNoTrAttrC = "notr";
-static const char *jambiLanguageC = "jambi";
enum { debugPluginManager = 0 };
static inline QString getDesignerLanguage(QDesignerFormEditorInterface *core)
{
if (QDesignerLanguageExtension *lang = qt_extension<QDesignerLanguageExtension *>(core->extensionManager(), core)) {
- if (lang->uiExtension() == QLatin1String("jui"))
- return QLatin1String(jambiLanguageC);
return QLatin1String("unknown");
}
return QLatin1String("c++");
*/
QList<QByteArray> QImageReader::supportedImageFormats()
{
- QSet<QByteArray> formats;
+ QList<QByteArray> formats;
for (int i = 0; i < _qt_NumFormats; ++i)
formats << _qt_BuiltInFormats[i].extension;
}
#endif // QT_NO_LIBRARY
- QList<QByteArray> sortedFormats;
- for (QSet<QByteArray>::ConstIterator it = formats.constBegin(); it != formats.constEnd(); ++it)
- sortedFormats << *it;
-
- qSort(sortedFormats);
- return sortedFormats;
+ qSort(formats);
+ return formats;
}
QT_END_NAMESPACE
API as provided by QtMobility. Applications have to migrate to the Qt version
of Bearer Management.
- \section1 Symbian Platform Security Requirements
-
- On Symbian, processes which use this class must have the
- \c NetworkServices platform security capability. If the client
- process lacks this capability, operations will result in a panic.
-
- Platform security capabilities are added via the
- \l{qmake-variable-reference.html#target-capability}{TARGET.CAPABILITY}
- qmake variable.
-
\sa QNetworkRequest, QNetworkReply, QNetworkProxy
*/
set(testlocales_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/localemodel.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/localewidget.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/localewidget.cpp
${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
)
add_executable(testlocales ${testlocales_SOURCES})
target_link_libraries(testlocales ${KATIE_GUI_LIBRARIES})
-feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
\ No newline at end of file
+feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
\ No newline at end of file