Compile fix for MinGW.
Change-Id: Id8099668dd1a4b137b6f9451be8617d07bc9d0c3 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
parent
b895dfd641
commit
9c6c7038ac
@ -59,7 +59,9 @@ QWindowsPrinterSupport::QWindowsPrinterSupport()
|
|||||||
if (EnumPrinters(PRINTER_ENUM_LOCAL | PRINTER_ENUM_CONNECTIONS, NULL, 4, buffer, needed, &needed, &returned)) {
|
if (EnumPrinters(PRINTER_ENUM_LOCAL | PRINTER_ENUM_CONNECTIONS, NULL, 4, buffer, needed, &needed, &returned)) {
|
||||||
PPRINTER_INFO_4 infoList = reinterpret_cast<PPRINTER_INFO_4>(buffer);
|
PPRINTER_INFO_4 infoList = reinterpret_cast<PPRINTER_INFO_4>(buffer);
|
||||||
QString defaultPrinterName;
|
QString defaultPrinterName;
|
||||||
QWin32PrintEngine::queryDefaultPrinter(defaultPrinterName, QString(), QString());
|
QString program;
|
||||||
|
QString port;
|
||||||
|
QWin32PrintEngine::queryDefaultPrinter(defaultPrinterName, program, port);
|
||||||
for (uint i = 0; i < returned; ++i) {
|
for (uint i = 0; i < returned; ++i) {
|
||||||
QString printerName(QString::fromWCharArray(infoList[i].pPrinterName));
|
QString printerName(QString::fromWCharArray(infoList[i].pPrinterName));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user