mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-02 07:15:27 +08:00
6.5.3 clean
This commit is contained in:
@ -336,11 +336,11 @@ void tst_QPrinterInfo::testAssignment()
|
||||
|
||||
void tst_QPrinterInfo::namedPrinter()
|
||||
{
|
||||
QList<QPrinterInfo> printers = QPrinterInfo::availablePrinters();
|
||||
const QList<QPrinterInfo> printers = QPrinterInfo::availablePrinters();
|
||||
|
||||
QStringList printerNames;
|
||||
|
||||
foreach (const QPrinterInfo &pi, printers) {
|
||||
for (const QPrinterInfo &pi : printers) {
|
||||
QPrinterInfo pi2 = QPrinterInfo::printerInfo(pi.printerName());
|
||||
QCOMPARE(pi2.printerName(), pi.printerName());
|
||||
QCOMPARE(pi2.description(), pi.description());
|
||||
|
Reference in New Issue
Block a user