Changeset 846 for trunk/src/gui/dialogs/qprintdialog_unix.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/dialogs/qprintdialog_unix.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 73 73 QT_BEGIN_NAMESPACE 74 74 75 extern int qt_printerRealNumCopies(QPaintEngine *);76 77 75 class QOptionTreeItem; 78 76 class QPPDOptionsModel; … … 443 441 options.duplexShort->setChecked(true); break; 444 442 } 445 options.copies->setValue( qt_printerRealNumCopies(p->paintEngine()));443 options.copies->setValue(p->copyCount()); 446 444 options.collate->setChecked(p->collateCopies()); 447 445 options.reverse->setChecked(p->pageOrder() == QPrinter::LastPageFirst); … … 508 506 p->setPrintRange(QPrinter::Selection); 509 507 p->setFromTo(0,0); 508 } else if (options.printCurrentPage->isChecked()) { 509 p->setPrintRange(QPrinter::CurrentPage); 510 p->setFromTo(0,0); 510 511 } else if (options.printRange->isChecked()) { 511 512 p->setPrintRange(QPrinter::PageRange); … … 514 515 515 516 // copies 516 p->set NumCopies(options.copies->value());517 p->setCopyCount(options.copies->value()); 517 518 p->setCollateCopies(options.collate->isChecked()); 518 519 … … 524 525 Q_Q(QPrintDialog); 525 526 options.gbPrintRange->setVisible(q->isOptionEnabled(QPrintDialog::PrintPageRange) || 526 q->isOptionEnabled(QPrintDialog::PrintSelection)); 527 q->isOptionEnabled(QPrintDialog::PrintSelection) || 528 q->isOptionEnabled(QPrintDialog::PrintCurrentPage)); 527 529 528 530 options.printRange->setEnabled(q->isOptionEnabled(QPrintDialog::PrintPageRange)); 529 531 options.printSelection->setVisible(q->isOptionEnabled(QPrintDialog::PrintSelection)); 532 options.printCurrentPage->setVisible(q->isOptionEnabled(QPrintDialog::PrintCurrentPage)); 530 533 options.collate->setVisible(q->isOptionEnabled(QPrintDialog::PrintCollateCopies)); 531 534 … … 540 543 options.printRange->setChecked(true); 541 544 break; 545 case QPrintDialog::CurrentPage: 546 if (q->isOptionEnabled(QPrintDialog::PrintCurrentPage)) 547 options.printCurrentPage->setChecked(true); 548 break; 542 549 default: 543 550 break; … … 699 706 #endif 700 707 701 #if ndef QT_NO_FILESYSTEMMODEL708 #if !defined(QT_NO_FILESYSTEMMODEL) && !defined(QT_NO_COMPLETER) 702 709 QFileSystemModel *fsm = new QFileSystemModel(widget.filename); 703 710 fsm->setRootPath(QDir::homePath()); 704 #if !defined(QT_NO_FSCOMPLETER) && !defined(QT_NO_FILEDIALOG) 705 widget.filename->setCompleter(new QFSCompleter(fsm, widget.filename)); 706 #endif 711 widget.filename->setCompleter(new QCompleter(fsm, widget.filename)); 707 712 #endif 708 713 _q_printerChanged(currentPrinterIndex);
Note:
See TracChangeset
for help on using the changeset viewer.