9 \brief Convert the given parameter to the platform-specific library name.
11 The function appends platform-specific prefix (lib) and suffix (.dll/.so)
12 to the library file name.
13 For example, if \a str = "mylib", "libmylib.so" is returned for Linux and
14 mylib.dll for Windows.
16 \param str short library name
17 \return full library name
19 QString XGUI_EXPORT library(const QString& str);
22 \brief Return directory part of the file path.
24 If the file path does not include directory part (the file is in the
25 current directory), null string is returned.
28 \param abs if true (default) \a path parameter is treated as absolute file path
29 \return directory part of the file path
31 QString XGUI_EXPORT dir(const QString& path, bool isAbs = true);
34 \brief Return file name part of the file path.
37 \param withExt if true (default) complete file name (with all
38 extension except the last) is returned, otherwise only base name
40 \return file name part of the file path
42 QString XGUI_EXPORT file(const QString& path, bool withExt = true);
45 \brief Return extension part of the file path.
48 \param full if true complete extension (all extensions, dot separated)
49 is returned, otherwise (default) only last extension is returned
50 \return extension part of the file path
52 QString XGUI_EXPORT extension(const QString& path, bool full = false);
55 \brief Add a slash (platform-specific) to the end of \a path
56 if it is not already there.
57 \param path directory path
58 \return modified path (with slash added to the end)
60 QString XGUI_EXPORT addSlash(const QString& path);
63 Creates a rect with TopLeft = ( min(x1,x2), min(y1,y2) )
64 and BottomRight = ( TopLeft + (x2-x1)(y2-y1) )
66 QRect XGUI_EXPORT makeRect(const int x1, const int y1, const int x2, const int y2);