1. 20 Aug, 2019 1 commit
    • Dmitry Kazakov's avatar
      Fix ConcurrentMap::migrationInProcess() to handle initialization value (0) properly · 2ffdc5b0
      Dmitry Kazakov authored
      Job coordinator of the table may have three states:
      
      1) jobCoordinator == 0: the table was initialized, but no migration
         has ever been started for this table
      2) jobCoordinator > 1: a table migration is in progress right now. The
         caller should join *jobCoordinator to help finishing the migration.
      3) jobCoordinator == 1: the table migration has been finished. It means
         that the table doesn't have any values in it anymore.
      
      The patch actually fixes the map to consider case 1 as a situation, when
      there is no migration.
      
      CCBUG:411081
      2ffdc5b0
  2. 19 Aug, 2019 1 commit
  3. 18 Aug, 2019 1 commit
  4. 17 Aug, 2019 4 commits
    • Karl Ove Hufthammer's avatar
      Change relative widths of the tablet tester and status messages widgets · da7f6598
      Karl Ove Hufthammer authored
      The status message textedit field was too narrow to show a status
      message without breaking it over several lines. The relative widths of
      the tablet tester painting area and the textedit field have therefore
      been changed to make the latter wider, so that there’s enough horizontal
      space for the status messages. The sizeHint for the tablet tester area
      also had to be changed to make the dialogue wide enough.
      da7f6598
    • Karl Ove Hufthammer's avatar
      Set minimum size for the tablet tester area · 1706af33
      Karl Ove Hufthammer authored
      When the dialogue was resized to be very small, so that there were
      hardly any space for the tablet tester painting area, Krita would
      freeze. Now, a minumum size of 150 × 150 pixels ensures that this
      never happens.
      1706af33
    • Karl Ove Hufthammer's avatar
      Add size hints to tablet tester widget (for better dialogue size) · 8b418f1a
      Karl Ove Hufthammer authored
      The tablet tester dialogue’s ‘preferred’ size is being overridden
      by KoDialog, resulting in a very small dialogue box, with a tiny
      painting area for testing the tablet. Now we add a sizeHint for this
      area, so that the dialogue automatically gets a reasonable size.
      
      The width and height values for the sizeHint was chosen so that
      they correspond to the size the widget would have had if KoDialog
      didn’t override the preferred window size.
      8b418f1a
    • Boudewijn Rempt's avatar
      c2608efd
  5. 16 Aug, 2019 2 commits
    • Dmitry Kazakov's avatar
      Fix lost scroll events when tablet is in the proximity · 7fee359c
      Dmitry Kazakov authored
      If there is a really heavy flow of events, the OS will start compressing
      wheel events into bigger deltas. So we should do multiple zoom actions,
      not one. It might fix the problem on Windows, but it will *not* fix the
      problem on Linux, because on Linux XCB just drops all the MOTION events
      for the mouse-wheel subdevice and sends DEVICE_CHANGED events instead.
      And there is no easy way to generate QWheelEvent from DEVICE_CHANGED
      event.
      
      CCBUG:410940
      7fee359c
    • Anna Medonosová's avatar
      Gamut masking: share activation state in KisCanvasResourceProvider · 35d78951
      Anna Medonosová authored
      KisCanvasResource provider stores activation state of current gamut
      mask. Activation state is synchronized across color selectors and
      their gamut masking toolbars.
      35d78951
  6. 15 Aug, 2019 8 commits
  7. 14 Aug, 2019 7 commits
    • Agata Cacko's avatar
      Fix transform worker tests failing because of NN · f54b48bb
      Agata Cacko authored
      Tests for transform worker were failing because the result files
      contained results from the old version of NN/Box filter.
      Since I changed it a bit in 57c3194c
      the old result files were no longer valid.
      This commit updates the result files.
      
      Also since the execution of the filter on one of the images
      resulted in a transparent pixel in the location that the previous filter
      had a non-transparent pixel, it changed the size of the resulting image
      so it didn't pass the test partially because of the change in size.
      Since other tests don't check the size, I removed the checks in this
      test, too. (Because of the transparency in the test image, it is possible
      that the resulting image will have a different size even though it is
      not scaled in this dimension.)
      
      BACKPORT:krita/4.2
      f54b48bb
    • Agata Cacko's avatar
      Fix curve change despite 'Use same curve' checked · 47a57162
      Agata Cacko authored
      Before this commit, if you have a preset like Fill_circle
      that has "Use the same curve" checkbox checked and you were
      clicking on other sensors, the curve would be back to the default
      curve (the one that other sensors had) if you switch back and forth
      between some sensors (like Pressure -> X-Tilt-> Pressure).
      
      Also before this commit if you have the default uprising curve
      and you switched Rotation -> Tilt elevation, the curve would change.
      
      This commit fixes both behaviours (first by adding transferCurve(),
      second by switching the line in kis_curve_widget).
      
      This commit also includes two slot functions instead of one function
      that were used as a slot for two different signals. It helps with
      debugging signals and keeping stuff clear and ordered.
      
      There is one problem left: if you switch Tilt elevation -> Distance
      (using the 'hill' curve), the preset is set to modified even though
      the curve doesn't change.
      
      BUG:383909
      BACKPORT:krita/4.2
      47a57162
    • Karl Ove Hufthammer's avatar
      c091fce2
    • Dmitry Kazakov's avatar
      Fix crash when creating a bezier curve · 1e5db24a
      Dmitry Kazakov authored
      The patch basically makes KoShapeManager thread safe by adding
      a simple mutex. The problem is that both,
      KoCreatePathTool::Private::endPointAtPosition() and
      KisRepaintShapeLayerLayerJob access the shape manager in different
      threads concurrently, which obviously causes a crash.
      
      BUG:410572
      BACKPORT:krita/4.2
      1e5db24a
    • Dmitry Kazakov's avatar
      Remove update compressor in KoShapeManager · a5ef0656
      Dmitry Kazakov authored
      Anyway we always recalculate tree before any access to the shapes
      
      CCBUG:410572
      BACKPORT:krita/4.2
      a5ef0656
    • Karl Ove Hufthammer's avatar
      Remove double space in opacity, flow and size sliders on main toolbar · 4790c612
      Karl Ove Hufthammer authored
      The sliders had two spaces (e.g. ‘Opacity:  75%’) instead of one
      (‘Opacity: 75%’). The extra space seems to be added by accident.
      They were at least not present in the original review board request
      (https://git.reviewboard.kde.org/r/122946/), only in the actual commit
      (6d6f154a).
      4790c612
    • Dmitry Kazakov's avatar
      Fix Shift and Alt modifiers in OUtline Selection Tool · bd06296f
      Dmitry Kazakov authored
      We should pass the keys to the tool, even when it is not active
      to make sure its keyPress/keyRelease methods work fine. To make
      it works we need to initialize the environment correctly in
      KisToolInvocationAction::processUnhandledEvent;
      
      BUG:410532
      BACKPORT:krita/4.2
      bd06296f
  8. 13 Aug, 2019 3 commits
  9. 12 Aug, 2019 8 commits
  10. 11 Aug, 2019 1 commit
  11. 10 Aug, 2019 2 commits
  12. 09 Aug, 2019 2 commits