Use QStandardPaths::displayName()
*/
+extern Q_CORE_EXPORT QString qt_applicationName_noFallback();
QString QDesktopServices::storageLocationImpl(QStandardPaths::StandardLocation type)
{
// Preserve Qt 4 compatibility:
// * QCoreApplication::applicationName() must default to empty
// * Unix data location is under the "data/" subdirectory
- extern Q_CORE_EXPORT QString qt_applicationName_noFallback();
const QString compatAppName = qt_applicationName_noFallback();
const QString baseDir = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation);
#if defined(Q_OS_WIN) || defined(Q_OS_MAC)
Converts QSizeF in millimeters to a predefined PaperSize (returns Custom if
the size isn't a standard size)
*/
+extern QPrinter::PaperSize qSizeFTopaperSize(const QSizeF &);
QPrinter::PaperSize QPlatformPrinterSupport::convertQSizeFToPaperSize(const QSizeF &sizef)
{
- extern QPrinter::PaperSize qSizeFTopaperSize(const QSizeF &);
return qSizeFTopaperSize(sizef);
}
Converts a predefined PaperSize to a QSizeF in millimeters (returns
QSizeF(0.0, 0.0) if PaperSize is Custom)
*/
+extern QSizeF qt_paperSizeToQSizeF(QPrinter::PaperSize size);
QSizeF QPlatformPrinterSupport::convertPaperSizeToQSizeF(QPrinter::PaperSize paperSize)
{
- extern QSizeF qt_paperSizeToQSizeF(QPrinter::PaperSize size);
return qt_paperSizeToQSizeF(paperSize);
}