1. Jan 02, 2016
    • Marc Mutz's avatar
      QUnixPrintWidget: fix some poor uses of the QComboBox API · 04e76ec8
      Marc Mutz authored
      
      - populate the widget with addItems(QStringList) instead of
        looping over addItem(QString)
      - Use findText() instead of looping over itemText(int).
        QComboBox::findText() delegates searching to the model
        (via QAbstractItemModel::match()), so is potentially
        much faster. I say potentially, because match() isn't
        properly reimplemented in most models, yet. But that is
        something to fix in the models.
      
      Change-Id: I6e52cf5af810ab7869c0270504a241868a5ca281
      Reviewed-by: default avatarOlivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
      04e76ec8
  2. Sep 04, 2015
  3. Sep 03, 2015
  4. Aug 13, 2015
  5. Feb 11, 2015
    • Jani Heikkinen's avatar
      Update copyright headers · 83a5694d
      Jani Heikkinen authored
      
      Qt copyrights are now in The Qt Company, so we could update the source
      code headers accordingly. In the same go we should also fix the links to
      point to qt.io.
      
      Outdated header.LGPL removed (use header.LGPL21 instead)
      
      Old header.LGPL3 renamed to header.LGPL3-COMM to match actual licensing
      combination. New header.LGPL-COMM taken in the use file which were
      using old header.LGPL3 (src/plugins/platforms/android/extract.cpp)
      
      Added new header.LGPL3 containing Commercial + LGPLv3 + GPLv2 license
      combination
      
      Change-Id: I6f49b819a8a20cc4f88b794a8f6726d975e8ffbe
      Reviewed-by: default avatarMatti Paaso <matti.paaso@theqtcompany.com>
      83a5694d
  6. Dec 03, 2014
  7. Sep 24, 2014
  8. Mar 17, 2014
    • John Layt's avatar
      QPrintDialog - Remove CUPS specific code · aa76fcc3
      John Layt authored
      
      We no longer use QLibrary to load CUPS, so remove checks.  Switch from
      using QCupsSupport and QPrinterInfo to QPlatformPrintDevice.  The
      remaining use of QCupsSupport is only for utilities to set CUPS specific
      options which don't need to link to CUPS directly, these will be
      replaced later with generic cross-platform API.
      
      Change-Id: I6e3d9e9a59633c33af0555eb28443a9fc192b27c
      Reviewed-by: default avatarLars Knoll <lars.knoll@digia.com>
      aa76fcc3
    • John Layt's avatar
      QPageSetupDialog - Use QPageLayout and QPageSize · 9393f744
      John Layt authored
      
      Convert the Linux / CUPS version of the QPageSetupDialog to use
      QPageSize and QPageLayout internally.  As this is an almost complete
      re-write of the internals the liberty has been taken of doing renames
      and code moves that would normally be done in separate commits, but in
      this case would have been mostly pointless done separately.
      
      Change-Id: I6eaa7c1fbf0a04cb3425f1d322fcae89239e83b7
      Reviewed-by: default avatarLars Knoll <lars.knoll@digia.com>
      9393f744
  9. Jan 06, 2014
    • John Layt's avatar
      QprintDialog - Fix loss of page settings. · df56ef16
      John Layt authored
      
      If you click on the properties button and change the page settings and
      click OK, then click properties a second time and click cancel, then
      your original changes are forgotten.  Ensure the properties dialog is
      only deleted if the OK button has never been clicked.
      
      Change-Id: I81be8a2c941eeec36c03647d7fea8f498154930a
      Reviewed-by: default avatarAndy Shaw <andy.shaw@digia.com>
      df56ef16
  10. Dec 09, 2013
    • John Layt's avatar
      QPrintDialog - Fix Cups printer setup sequence · bd1a609a
      John Layt authored
      
      First set up the selected output format, printer and page size, and then
      setup the selected job options.  This ensures all values are correctly
      setup for the requested format and printer as not all settings may be
      able to persist across the change in output format or printer.
      
      Change-Id: I67f261f4e3be479a9018139633886ee8e570f42a
      Reviewed-by: default avatarAndy Shaw <andy.shaw@digia.com>
      bd1a609a
  11. Dec 08, 2013
    • John Layt's avatar
      QPrintDialog - Fix setting of PageOrder · 77cd033e
      John Layt authored
      
      The print dialog was setting the PageOrder on the QPrinter as soon as
      the check box was toggled and not when the Print button was pressed,
      meaning the change is not forgotten when Cancel is pressed.
      
      Change-Id: I19637b7efacfb5388c70d2e7d9d05a05ecc5b2ea
      Reviewed-by: default avatarAndy Shaw <andy.shaw@digia.com>
      77cd033e
  12. Nov 07, 2013
    • Tor Arne Vestbø's avatar
      Add missing Q_INIT_RESOURCE · 96d74313
      Tor Arne Vestbø authored
      
      The library needs to do Q_INIT_RESOURCE for all resources it uses
      internally, otherwise static linking will fail, and the user has
      no idea how to rectify it as the name of the missing resource is
      not known. The Q_INIT_RESOURCE needs to happen outside of any
      namespace, hence the use of static initResources() functions.
      
      Change-Id: I8f7d36b440b05809d97dd489cf8789f345633cec
      Reviewed-by: default avatarThiago Macieira <thiago.macieira@intel.com>
      96d74313
  13. Sep 20, 2013
    • Martin Klapetek's avatar
      Offer Page Range option for apps that can't do it themselves · 99f9bf9a
      Martin Klapetek authored
      
      Some apps may not support printing only a particular page range, but
      with CUPS we can do "server-side print range", ie. we can select the
      page range for the application.
      
      If CUPS is available, the Page Range widget is now displayed if app
      advertises no such capability and page range is selected on the server
      instead.
      
      [ChangeLog][QtPrintSupport][QPrintDialog] Added CUPS server-side print
      range support for apps that can't support print range option themselves
      
      Change-Id: Ia7784065ba5a8b53bb05ae46e982c718ef672fa5
      Reviewed-by: default avatarJohn Layt <jlayt@kde.org>
      99f9bf9a
  14. Sep 19, 2013
    • Martin Klapetek's avatar
      Check if Print Properties dialog was shown before accessing it · a6f7ba0f
      Martin Klapetek authored
      
      Prevents a crash in case the user did not open
      the properties dialog, in which case
      QUnixPrintWidgetPrivate::propertiesDialog is null.
      
      Change-Id: I43c8c6ab90053757835bbf41d6167204d42efcef
      Reviewed-by: default avatarJohn Layt <jlayt@kde.org>
      a6f7ba0f
    • Martin Klapetek's avatar
      Expose more CUPS options via the 'Properties' dialog · 00e50fb9
      Martin Klapetek authored
      
      On systems with CUPS support users can now choose how many pages from
      a document are to be printed on paper. This can vary from 1 page per
      document to 16 pages per document.
      
      The page preview changes upon the users selection.
      
      Also included in the patch is an option to choose the flow for text.
      Users
      can now print documents in the "Right to Left" order or "Bottom to Top",
      including many other options.
      
      [ChangeLog][QtPrintSupport][QPrintDialog] Added support for setting CUPS
      Pages Per Sheet and Pages Per Sheet Layout options
      
      Change-Id: I4e60a4523c6e06d4c15fe9ee9590248fa7ae2038
      Reviewed-by: default avatarJohn Layt <jlayt@kde.org>
      00e50fb9
  15. Sep 17, 2013
    • Martin Klapetek's avatar
      Add CUPS Page Set options to print support · 75ffb131
      Martin Klapetek authored
      
      Adds combobox to select CUPS Page Set option (even/odd pages) into the
      Unix print dialog
      
      [ChangeLog][QtPrintSupport][QPrintDialog] Added support for setting CUPS
      Page Set (even/odd pages only) in the print dialog.
      
      Change-Id: I27dd846f58c164039fe2759064aafdf726a1287e
      Reviewed-by: default avatarJohn Layt <jlayt@kde.org>
      75ffb131
  16. Sep 10, 2013
    • Martin Klapetek's avatar
      Add CUPS options widget to print support · ad46d5b8
      Martin Klapetek authored
      
      This adds new tab 'Job Options' into Properties dialog in print dialog.
      In this tab it's possible to set some advanced printing job options such
      as print schedule, job priority or job billing.
      
      Patch also adds new utility methods into QCUPSSupport, which are used to
      set particular CUPS job options.
      
      [ChangeLog][QtPrintSupport][QPrintDialog] Added support for setting CUPS
      job options in the print dialog.
      
      Change-Id: If2640eedb3d83f50cbb20491f7ec50b325f54f22
      Reviewed-by: default avatarJohn Layt <jlayt@kde.org>
      ad46d5b8
  17. Jan 18, 2013
  18. Nov 22, 2012
  19. Sep 22, 2012
  20. Jul 17, 2012
  21. Jun 19, 2012
  22. Jun 01, 2012
  23. May 31, 2012
    • John Layt's avatar
      QtPrintSupport: Add CUPS printsupport plugin · f70924e9
      John Layt authored
      
      Move CUPS code around to create a new CUPS printsupport plugin, this
      fixes QPrinterInfo for CUPS which depends on the plugin to work.
      
      It QT_NO_CUPS is defined then the plugin is not built and only Print
      to PDF is supported under Linux.
      
      * Move unused genericiunixprintersupport plugin to start new CUPS
        printsupport plugin
      * Split QPdfPrintEngine to create QCupsPrintEngine
      * Remove LPR related code from QPdfPrintEngine
      * Move CUPS specific code from plugin base class to derived CUPS class
      * Remove forcing CUPS print engine to use PDF mode as PDF is now Native
      * Move qt_getCupsPrinterPaperSizes from qprinterinfo_unix to
        QCUPSSupport
      * Remove qprinterinfo_unix as no longer used
      * Remove all QT_NO_LPR uses
      
      There is now no CUPS specific code left in printsupport/kernel except
      QCUPSSupport which is needed for the dialogs.
      
      Task-number: QTBUG-23060
      
      Change-Id: Ie8fa4512a2424edc8943068e0fa9fb714cc42db9
      Reviewed-by: default avatarTeemu Katajisto <teemu.katajisto@digia.com>
      Reviewed-by: default avatarLars Knoll <lars.knoll@nokia.com>
      Reviewed-by: default avatarJohn Layt <jlayt@kde.org>
      f70924e9
  24. May 28, 2012
  25. May 08, 2012
  26. May 07, 2012
    • John Layt's avatar
      QtPrintSupport: Remove remaining LPR specific code · 80f7a388
      John Layt authored
      
      CUPS is the only supported print system on UNIX, LPR/PS support has
      already been dropped but some LPR specific code still remains.
      
      * Move qt_getCupsPrinterPaperSizes from qprinterinfo_unix to
        QCUPSSupport
      * Remove qprinterinfo_unix as no longer used
      * Remove LPR related code from QPdfPrintEngine
      * Remove all QT_NO_LPR uses
      * Remove most QT_NO_CUPS uses, use QT_NO_PRINTER where necessary
      
      Some QT_NO_CUPS uses remain in QPdfPrintEngine, these will be removed
      in a following change implementing a CUPS plugin.
      
      Change-Id: I439b6fad9cf88c3d24aa48e49475f49ad310dbad
      Reviewed-by: default avatarLars Knoll <lars.knoll@nokia.com>
      80f7a388
  27. Apr 19, 2012
  28. Mar 28, 2012
  29. Mar 27, 2012
  30. Jan 30, 2012
  31. Jan 23, 2012
  32. Jan 05, 2012
  33. Oct 26, 2011
  34. Oct 03, 2011
  35. Aug 23, 2011
  36. Aug 19, 2011