1. 04 Aug, 2019 1 commit
    • Karl Ove Hufthammer's avatar
      Ensure that checkboxes are shown in menus · 7d106501
      Karl Ove Hufthammer authored
      The old code tried to add an icon for all menu items, even for
      empty icon names. Most themes (including the default ‘Fusion’ theme,
      but not KDE’s ‘Breeze’) don’t display checkboxes when a menu item
      already has an icon. The result was that unchecked checkboxes
      were invisible and checked checkboxes looked strange (like large,
      empty rectangles).
      
      With this commit, icons are only added for actions that actually
      *have* icons, and the checkboxes are thus correctly displayed no matter
      what theme the user has.
      7d106501
  2. 13 Jul, 2019 1 commit
    • Boudewijn Rempt's avatar
      Use QFileInfo::completeBaseName instead of baseName · 14adaa3b
      Boudewijn Rempt authored
      This makes it possible for users to use dots in their filenames.
      Not that that is a good idea, everything after the first dot is
      technically an extensions, as in bla.tar.gz, but Krita doesn't
      handle any file formats where that actually happens, so we can
      be a bit less technically correct when handling filenames and
      only check the extension after the last dot.
      
      BUG:409765
      14adaa3b
  3. 10 Jul, 2019 1 commit
  4. 25 Jun, 2019 1 commit
  5. 06 Jun, 2019 1 commit
  6. 05 Jun, 2019 1 commit
  7. 23 May, 2019 4 commits
  8. 10 May, 2019 3 commits
    • Ivan Yossi's avatar
      Add missing License headers · fb832383
      Ivan Yossi authored
      fb832383
    • Boudewijn Rempt's avatar
      Add our parse spin boxes to KisDialogStateSaver · 6363ba5a
      Boudewijn Rempt authored
      They need special handling, since the setValue isn't overriding
      the base class' setValue. They also don't need to be in libs/
      widgets, since they only need one class from widgetutils.
      6363ba5a
    • Boudewijn Rempt's avatar
      Add the DialogStateSaver widget utility · b2cb529a
      Boudewijn Rempt authored
      These functions take a widget and save and restore the values
      of input widgets. You can override the values that it restores,
      which might be necessary since all input widgets are saved.
      
      Currently supports:
      
      QCheckBox
      QComboBox
      QLineEdit
      QAbstractSlider
      QSpinBox
      QDoubleSpinBox
      
      and classes derived from these classes.
      
      CCMAIL:kimageshop@kde.org
      b2cb529a
  9. 03 May, 2019 2 commits
  10. 19 Apr, 2019 1 commit
  11. 03 Apr, 2019 1 commit
  12. 23 Mar, 2019 1 commit
    • Anna Medonosová's avatar
      Remember last used dirs for shortcut import/export · 27678b4c
      Anna Medonosová authored
      Summary:
      File dialogs in KShortcutSchemesEditor use KoFileDialog instead of
      plain QFileDialog. This allows to remember last used directories for
      load/save/import/export.
      
      Load, save and import location now defaults to homedir, instead of the
      directory where Krita started.
      
      BUG:368360
      
      Reviewers: #krita, rempt
      
      Reviewed By: #krita, rempt
      
      Subscribers: rempt
      
      Tags: #krita
      
      Differential Revision: https://phabricator.kde.org/D19964
      27678b4c
  13. 05 Mar, 2019 1 commit
    • Agata Cacko's avatar
      Refactor KoUnit · 9d5baac8
      Agata Cacko authored
      Summary:
      This commit fixes two problems in KoUnit:
      (1) two functions named differently while doing
      nearly exactly the same thing (ptToUnit, toUserValue)
      and the difference in the name or arguments of functions
      not showing the difference in the results,
      (2) repeated constant values in functions
      called to[Unit] (i.e. toMillimeters).
      This commit is not to cause any difference in behaviour
      (including in particular converting and rounding values)
      and contains unit tests to test that.
      
      Test Plan:
      - created unit test to test the difference in conversions
      (should not none).
      - all the places where the difference in functions naming
      caused changes in files other than [Test]KoUnit.h/.cpp
      
      Reviewers: #krita, rempt
      
      Reviewed By: #krita, rempt
      
      Subscribers: rempt
      
      Tags: #krita
      
      Differential Revision: https://phabricator.kde.org/D19537
      9d5baac8
  14. 04 Mar, 2019 1 commit
  15. 02 Mar, 2019 1 commit
    • Agata Cacko's avatar
      Fix the conversion errors in Scale to New Size dialog · 03db6907
      Agata Cacko authored
      Summary:
      SpinBoxUnitManager used a function that not only converts units,
      but also rounds them (for the View), hence the conversion errors.
      This patch changes function to the precise one.
      
      BUG:400177
      
      Test Plan:
      Checking the Scale to New Size dialog to see whether the bug doesn't reproduce.
      Checking whether it doesn't break other scale/resize/offset/crop dialogs and every other place
      where the units are being used.
      
      Reviewers: #krita, rempt
      
      Reviewed By: #krita, rempt
      
      Tags: #krita
      
      Differential Revision: https://phabricator.kde.org/D19448
      03db6907
  16. 27 Feb, 2019 1 commit
  17. 19 Feb, 2019 2 commits
  18. 23 Jan, 2019 1 commit
  19. 09 Jan, 2019 1 commit
  20. 06 Jan, 2019 1 commit
  21. 05 Jan, 2019 1 commit
  22. 18 Dec, 2018 1 commit
  23. 05 Dec, 2018 2 commits
  24. 29 Nov, 2018 1 commit
    • Boudewijn Rempt's avatar
      add a createActions method to KoToolFactoryBase · 5f91230f
      Boudewijn Rempt authored
      Actions created by a tool instance only exist if there's an open
      document, which means they cannot be configured or placed in
      toolbars. We should only have per-window actions, not per-action
      actions.
      
      Creating the actions in the toolfactory instead of the tool when
      the window is created fixes that: now the tools will retrieve
      the actions from the global action collection on activations
      and de-activation, like the freehand tool already did for increase
      and decrease brush size.
      
      Note: this commit breaks the following tools because it's not
      worth porting hidden tools in any case:
      
      * artistic text tool
      * odf text tool
      * connection tool
      
      BUG:365222
      
      CMAIL:kimageshop@kde.org
      5f91230f
  25. 10 Oct, 2018 1 commit
    • Eoin O'Neill's avatar
      Global Kinetic Scrolling Added · 49da9070
      Eoin O'Neill authored
      This patch takes the concept of Kinetic Scrolling and
      exapands it, applying it uniformly across Krita's UI.
      It also adds middle click as a kinetic scroll option
      which is set as default, to keep consistency with the
      canvas view (middle click pan.) Also added more
      configuration file settings for extra kinetic scrolling
      feel modifications.
      49da9070
  26. 07 Oct, 2018 3 commits
  27. 20 Aug, 2018 2 commits
  28. 14 Aug, 2018 1 commit
    • Dmitry Kazakov's avatar
      Make unit tests' names consistent · 46c27f94
      Dmitry Kazakov authored
      TEST_NAME parameter should state **only** the actual name
      of the test without any prefixes. NAME_PREFIX should state \
      the prefix. And, no, we cannot shortcut the thing and concatenate
      the name and the prefix in TEST_NAME, because it will break actual
      tests' binary file names.
      46c27f94
  29. 08 Aug, 2018 1 commit