------------------------------------------------------------------------

r59566 | zeljko | 2018-11-17 10:16:16 +0100 (Sat, 17 Nov 2018) | 2 lines

Qt5: added static QPrinterInfo_availablePrinterNames() which returs QStringList. part of #34558

------------------------------------------------------------------------

git-svn-id: branches/fixes_2_0@59599 -
This commit is contained in:
zeljko 2018-11-19 09:36:00 +00:00
parent d1f2dc15f0
commit 0a367c607c
2 changed files with 6 additions and 0 deletions

View File

@ -83,6 +83,11 @@ void QPrinterInfo_availablePrinters(PPtrIntArray retval)
copyQListTemplateToPtrIntArrayWithNew(t_retval, retval);
}
void QPrinterInfo_availablePrinterNames(QStringListH retval)
{
*(QStringList *)retval = QPrinterInfo::availablePrinterNames();
}
void QPrinterInfo_defaultPrinter(QPrinterInfoH retval)
{
*(QPrinterInfo *)retval = QPrinterInfo::defaultPrinter();

View File

@ -27,6 +27,7 @@ C_EXPORT bool QPrinterInfo_isNull(QPrinterInfoH handle);
C_EXPORT bool QPrinterInfo_isDefault(QPrinterInfoH handle);
C_EXPORT void QPrinterInfo_supportedPaperSizes(QPrinterInfoH handle, PPtrIntArray retval);
C_EXPORT void QPrinterInfo_availablePrinters(PPtrIntArray retval);
C_EXPORT void QPrinterInfo_availablePrinterNames(QStringListH retval);
C_EXPORT void QPrinterInfo_defaultPrinter(QPrinterInfoH retval);
C_EXPORT void QPrinterInfo_printerInfo(QPrinterInfoH retval, PWideString printerName);