1. 30 Oct, 2019 3 commits
    • Agata Cacko's avatar
      Make jp(e)g default extensions context-aware · b8073ac7
      Agata Cacko authored
      This commit contains changes to Qt that enable two things:
      - non-native file dialogs give .jpg or .jpeg extension depending
      on the context:
      1. If the current file is *.jp(e)g, suggest that extension.
      2. Whether there are already files with this name
      and extension in the directory, take that extension.
      3. Take .jpg.
      - "All" filter now suggests .kra extension instead of .exr.
      
      CCBUG:412651
      b8073ac7
    • Friedemann Kleint's avatar
      Fix no warning for overwriting files in non-native dialogs · c5c9528b
      Friedemann Kleint authored
      Before this commit, in case a user wanted to Save As "filename",
      Krita would add an extension based on the selected filter.
      In native file dialogs, Krita will warn user if it would
      overwrite the file. In non-native file dialogs though
      (based on Qt widgets), it wouldn't happen.
      
      This commit makes it possible to append the extension before
      the non-native file dialog is closed, which enables warning
      before overwriting the file inside the file dialog.
      
      This commit applies the patch from Qt bug report:
      https://bugreports.qt.io/browse/QTBUG-27186
      https://codereview.qt-project.org/c/qt/qtbase/+/109815/
      
      Author of the patch and info from the original commit:
      Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
      Task-number: QTBUG-27186
      Change-Id: I3ece055b328dfe361b93e68954cb0a33bd9e7d94
      "The Windows native dialog prefers the name filter over the
      defaultSuffix (uses the same mechanism), I chose the convervative
      approach here (defaultSuffix takes precedence)."
      
      CCBUG:412651
      c5c9528b
    • Boudewijn Rempt's avatar
      Revert "Remove OpenJPEG completely" · 3b1ab08c
      Boudewijn Rempt authored
      This reverts commit 37473007.
      3b1ab08c
  2. 23 Oct, 2019 3 commits
  3. 20 Oct, 2019 1 commit
  4. 07 Oct, 2019 2 commits
  5. 05 Oct, 2019 1 commit
    • Agata Cacko's avatar
      Fix Rec2020 display format · 2f976a93
      Agata Cacko authored
      This commit contains changes to smpte shader to fix the black screen
      in Rec2020 display format on Windows.
      Before this commit it was broken because of two things:
      - r=pow(x, y) in ANGLE is compiled into t=log(x); t=t*y; r=e^t
      which in case of 0 resulted in undefined behaviour, in this case...
      alpha = 1.0, even though the line was: pow(0, 1), qhich means
      the correct result should be 0.0, not 1.0.
      - changed order of painting UI and canvas; before it was first UI,
      then canvas. After the order was reversed, so the 0.0 alpha started
      to be crucial for canvas to be shown from underneath the UI.
      Co-Authored-By: Dmitry Kazakov's avatarDmitry Kazakov <dimula73@gmail.com>
      
      BUG:410918
      2f976a93
  6. 04 Oct, 2019 1 commit
  7. 03 Oct, 2019 1 commit
  8. 23 Sep, 2019 1 commit
  9. 14 Sep, 2019 3 commits
  10. 05 Sep, 2019 3 commits
  11. 21 Aug, 2019 1 commit
  12. 02 Aug, 2019 1 commit
  13. 26 Jul, 2019 2 commits
  14. 24 Jul, 2019 1 commit
  15. 23 Jul, 2019 3 commits
  16. 25 Jun, 2019 1 commit
  17. 21 Jun, 2019 1 commit
  18. 20 Jun, 2019 1 commit
  19. 19 Jun, 2019 5 commits
  20. 14 Jun, 2019 1 commit
    • Dmitry Kazakov's avatar
      Fix Qt patches for Qt 5.12.3 · 2bd45acf
      Dmitry Kazakov authored
      I just reapplied original patches on newer Qt with 'git am'. Current
      patches were duplicating some hunks, therefore they didn't apply.
      2bd45acf
  21. 04 Jun, 2019 4 commits