Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-37340

QPrinter::setDocName and QPrinter::docName use two different locations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.2.1
    • GUI: Printing
    • None

    Description

      The src/printsupport/kernel/qprinter.cpp code has:

      QString QPrinter::docName() const
      {
      Q_D(const QPrinter);
      return d->printEngine->property(QPrintEngine::PPK_DocumentName).toString();
      }

      and

      void QPrinter::setDocName(const QString &name)
      {
      Q_D(QPrinter);
      ABORT_IF_ACTIVE("QPrinter::setDocName");
      d->setProperty(QPrintEngine::PPK_DocumentName, name);
      }

      So the docName gets set and retrieved from two separate property bags.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            johnlayt John Layt
            twick Tom Wick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes