1. 13 Nov, 2020 1 commit
  2. 12 Nov, 2020 1 commit
  3. 08 Nov, 2020 1 commit
    • Volker Hilsheimer's avatar
      Rename QRangeCollection to QPageRanges, make it a proper value type · b14b1c99
      Volker Hilsheimer authored
      
      
      The type is specific about printing, so give it a name in line with
      QPageLayout and QPageSize.
      
      As per API review comment, it's not clear why this type should not be a
      regular, copyable and movable value type. It stores a list of intervals.
      Give it value-type semantics, as an implicitly shared class.
      
      Convert the parse method into a static factory function.
      
      Add a Range type and use it instead of the semantic-free QPair.
      Move QPrinter getter into QPagedPainteDevice, make it return a copy
      rather than a pointer, and add a setter.
      
      Extend test case to cover all members and more merge cases. Fix bugs
      found that way.
      
      Fixes: QTBUG-88113
      Change-Id: If17ea4d410d49f16b097e88b7979db5d72add820
      Reviewed-by: default avatarQt CI Bot <qt_ci_bot@qt-project.org>
      Reviewed-by: Volker Hilsheimer's avatarVolker Hilsheimer <volker.hilsheimer@qt.io>
      b14b1c99
  4. 24 Sep, 2020 1 commit
  5. 22 Sep, 2020 1 commit
    • Volker Hilsheimer's avatar
      Fix some qdoc warnings: printer API cleanup · 149a9ef2
      Volker Hilsheimer authored
      
      
      Puge references from removed QPrinter methods.
      
      QPdfWriter's setter API documentation only added the word "PDF" to the
      QPagedPaintDevice documentation. This was not useful - when the latter
      talks about "page", it's obvious what is meant in the context of PDF, so
      remove the duplication.
      
      Change-Id: I7b16cbc82de8d35b5224288c9e36deff4e01fb44
      Reviewed-by: default avatarPaul Wicking <paul.wicking@qt.io>
      149a9ef2
  6. 04 Sep, 2020 1 commit
  7. 03 Sep, 2020 1 commit
  8. 31 Aug, 2020 1 commit
  9. 25 Aug, 2020 1 commit
  10. 23 Aug, 2020 1 commit
  11. 10 Aug, 2020 1 commit
  12. 17 Jul, 2020 1 commit
    • Friedemann Kleint's avatar
      Fix some MSVC int conversion warnings · ae5d021f
      Friedemann Kleint authored
      
      
      kernel\qmetaobjectbuilder.cpp(1279): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
      kernel\qmetaobjectbuilder.cpp(1432): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data
      sax\qxml.cpp(1275): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
      text\qfontsubset.cpp(920): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
      text\qfontsubset.cpp(920): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data
      text\qtextengine.cpp(2664): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
      text\qtextengine.cpp(2665): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
      text\qtextengine.cpp(2706): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
      text\qtextengine.cpp(2707): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
      itemviews\qbsptree.cpp(60): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
      kernel\qprintengine_win.cpp(1558): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
      qsql_odbc.cpp(804): warning C4267: 'argument': conversion from 'size_t' to 'SQLINTEGER', possible loss of data
      qsql_odbc.cpp(822): warning C4267: 'argument': conversion from 'size_t' to 'SQLINTEGER', possible loss of data
      qsql_odbc.cpp(1585): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
      qsql_odbc.cpp(1602): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
      qwindowsmime.cpp(770): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data
      windows\qwindowsmime.cpp(770): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data
      
      Change-Id: I04fbe17b9782f4c2704933fc005449b1e992475e
      Reviewed-by: default avatarThiago Macieira <thiago.macieira@intel.com>
      ae5d021f
  13. 07 Jul, 2020 1 commit
  14. 06 Jul, 2020 1 commit
  15. 06 Jun, 2020 1 commit
    • Oliver Wolff's avatar
      Remove winrt · 45b0f1be
      Oliver Wolff authored
      
      
      Macros and the await helper function from qfunctions_winrt(_p).h are
      needed in other Qt modules which use UWP APIs on desktop windows.
      
      Task-number: QTBUG-84434
      Change-Id: Ice09c11436ad151c17bdccd2c7defadd08c13925
      Reviewed-by: default avatarTor Arne Vestbø <tor.arne.vestbo@qt.io>
      45b0f1be
  16. 09 Apr, 2020 1 commit
  17. 27 Feb, 2020 1 commit
  18. 28 Jan, 2020 1 commit
  19. 15 Dec, 2019 1 commit
  20. 06 Dec, 2019 1 commit
  21. 20 Nov, 2019 1 commit
  22. 29 Jul, 2019 1 commit
  23. 09 Apr, 2019 1 commit
    • Kai Koehne's avatar
      printsupport: Fix clang-cl warning · e251f118
      Kai Koehne authored
      
      
      qprintengine_win.cpp(1117,14): warning: comparison of two values with different enumeration types in switch statement ('QPrint::DuplexMode' and 'QPrinter::DuplexMode') [-Wenum-compare-switch]
              case QPrinter::DuplexShortSide:
      
      Change-Id: Ib5028d80ecf7f6bb9eb0562e5c137acfeb709a14
      Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@qt.io>
      e251f118
  24. 04 Apr, 2019 1 commit
  25. 08 May, 2019 1 commit
  26. 01 May, 2019 1 commit
  27. 22 Jan, 2019 1 commit
  28. 10 Dec, 2018 1 commit
  29. 05 Dec, 2018 1 commit
    • Sergio Martins's avatar
      Pass non-trivial types by const-ref in range-loop [-Wclazy-range-loop] · f5654d90
      Sergio Martins authored
      
      
      corelib/serialization/qcbormap.h:176:14: warning: Missing reference in range-for with non trivial type (QPair<QCborValue, QCborValue>)
      corelib/serialization/qjsoncbor.cpp:820:10: warning: Missing reference in range-for with non trivial type (QJsonValue)
      gui/kernel/qguiapplication.cpp:1171:10: warning: Missing reference in range-for with non trivial type (QString)
      printsupport/dialogs/qprintdialog_unix.cpp:741:10: warning: Missing reference in range-for with non trivial type (QString)
      printsupport/kernel/qprinter.cpp:1851:10: warning: Missing reference in range-for with non trivial type (QVariant)
      tools/qlalr/cppgenerator.cpp:463:8: warning: Missing reference in range-for with non trivial type (Name)
      
      Change-Id: I327b0f116e329e55952ed5740a5f5af4b2918392
      Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@qt.io>
      Reviewed-by: default avatarThiago Macieira <thiago.macieira@intel.com>
      f5654d90
  30. 22 Oct, 2018 1 commit
    • Andre de la Rocha's avatar
      Extend PDF engine to allow the generation of PDFs with huge pages · 1bb8627f
      Andre de la Rocha authored
      
      
      Qt's PDF engine previously supported only the PDF v1.4 standard, which
      only allows pages of up to 200x200in (about 5x5m). This patch optionally
      enables the generation of PDF v1.6-compliant files that allow the
      redefinition of user space units, so that pages of up to 381x381km are
      now possible. By default, generated files are compliant to v1.4 spec.
      v1.6 compliance must be enabled by, e.g., calling QPrinter::setPdfVersion()
      with QPrinter::PdfVersion_1_6. PDF v1.6-compliant files require Adobe
      Reader 7.0 or newer (also worked with the built-in viewers in current
      versions of Chrome, Firefox and Edge).
      
      Task-number: QTBUG-69386
      Change-Id: I21708e0d465d5d7d9e46ff06dd04acfe1dfb0858
      Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@qt.io>
      Reviewed-by: default avatarAndy Shaw <andy.shaw@qt.io>
      Reviewed-by: default avatarOliver Wolff <oliver.wolff@qt.io>
      1bb8627f
  31. 12 Oct, 2018 2 commits
  32. 05 Oct, 2018 1 commit
  33. 30 Aug, 2018 1 commit
  34. 28 Aug, 2018 1 commit
  35. 20 Jul, 2018 1 commit
  36. 23 May, 2018 1 commit
  37. 02 May, 2018 1 commit
  38. 27 Mar, 2018 1 commit
    • Albert Astals Cid's avatar
      cups: Take conflicts for duplex and page size into account · 0fb3d217
      Albert Astals Cid authored
      
      
      Duplex and Page Size are not shown in the "Advanced" options tag
      since they are more important options, this means we were not
      taking them into account for ppd conflicts since we never set
      their values in the ppd, we do use the new-style cups options for
      them when printing
      
      With this patch we add m_pageSizePpdOption and m_duplexPpdOption
      to set the values to the ppd struct behind the scenes.
      
      Change-Id: I48bd9fe93d0c08b7b8dd9620a07c56fc79cce13b
      Reviewed-by: default avatarAndy Shaw <andy.shaw@qt.io>
      0fb3d217
  39. 23 Mar, 2018 1 commit