in += 2;
break;
}
-
+
// otherwise, if the input buffer begins with a prefix
// of "/../" or "/..", where ".." is a complete path
// segment, then replace that prefix with "/" in the
in += 3;
break;
}
-
+
// otherwise move the first path segment in
// the input buffer to the end of the output
// buffer, including the initial "/" character
*/
/*!
- \relates QHash
- \since 5.0
-
Returns the hash value for the \a url. If specified, \a seed is used to
initialize the hash.
+ \relates QHash
+ \since 5.0
*/
uint qHash(const QUrl &url, uint seed)
{
If \a directory is not specified, the directory of the
application's executable is used (i.e., as
- \l{QCoreApplication::}{applicationDirPath()}).
+ \l{QCoreApplication::}{applicationDirPath()}).
The previous contents of this translator object are discarded.
QString prefix;
if (QFileInfo(filename).isRelative()) {
prefix = directory;
- if (prefix.length() && !prefix.endsWith(QLatin1Char('/')))
- prefix += QLatin1Char('/');
+ if (prefix.length() && !prefix.endsWith(QLatin1Char('/')))
+ prefix += QLatin1Char('/');
}
QString fname = filename;
\brief The QPrinterInfo class gives access to information about
existing printers.
-
+
\ingroup printing
\inmodule QtPrintSupport
}
/*!
- \fn QString QPrinterInfo::description()
- \since 5.0
-
Returns the human-readable description of the printer.
+ \since 5.0
\sa QPrinterInfo::printerName()
*/
QString QPrinterInfo::description() const
}
/*!
- \fn QString QPrinterInfo::location()
- \since 5.0
-
Returns the human-readable location of the printer.
+
+ \since 5.0
*/
QString QPrinterInfo::location() const
{
}
/*!
- \fn QString QPrinterInfo::makeAndModel()
- \since 5.0
-
Returns the human-readable make and model of the printer.
+
+ \since 5.0
*/
QString QPrinterInfo::makeAndModel() const
{
}
/*!
- \fn QList< QPrinter::PaperSize> QPrinterInfo::supportedPaperSizes() const
- \since 4.4
-
Returns a list of supported paper sizes by the printer.
Not all printer drivers support this query, so the list may be empty.
On Mac OS X 10.3, this function always returns an empty list.
+
+ \since 4.4
*/
QList<QPrinter::PaperSize> QPrinterInfo::supportedPaperSizes() const
}
/*!
- \fn QPrinterInfo QPrinterInfo::printerInfo()
- \since 5.0
-
Returns the named printer.
The return value should be checked using isNull() before being
used, in case the named printer does not exist.
+ \since 5.0
\sa isNull()
*/
When the user enters a new string in an editable combobox, the
widget may or may not insert it, and it can insert it in several
- locations. The default policy is is \l InsertAtBottom but you can change
+ locations. The default policy is \l InsertAtBottom but you can change
this using setInsertPolicy().
It is possible to constrain the input to an editable combobox