1. 23 Oct, 2020 1 commit
  2. 11 Sep, 2020 1 commit
  3. 03 Sep, 2018 1 commit
    • Vlad Zahorodnii's avatar
      Check against QRect whether pointer is inside DecorationButton · c9cfd840
      Vlad Zahorodnii authored
      Summary:
      If several buttons share an edge, i.e. spacing between decoration
      buttons is set to 0, and the pointer is on that edge, both buttons will
      be hovered.
      
      This happens because QRectF::contains returns true for points that are
      on "outer" edges, e.g.
      
          QRectF rect(0, 0, 10, 10);
          rect.contains(QPointF(10, 5)); // returns true
      
      Test Plan: Ran tests.
      
      Reviewers: #kwin, davidedmundson
      
      Reviewed By: #kwin, davidedmundson
      
      Subscribers: davidedmundson, plasma-devel
      
      Tags: #plasma
      
      Differential Revision: https://phabricator.kde.org/D15226
      c9cfd840
  4. 18 Jan, 2018 1 commit
  5. 11 Jan, 2017 1 commit
  6. 27 May, 2015 1 commit
  7. 05 Jan, 2015 2 commits
  8. 03 Dec, 2014 1 commit
  9. 01 Dec, 2014 2 commits
  10. 28 Nov, 2014 3 commits
  11. 12 Nov, 2014 1 commit
  12. 11 Nov, 2014 6 commits
  13. 04 Nov, 2014 2 commits
  14. 30 Oct, 2014 1 commit
    • Martin Flöser's avatar
      DecorationBridge is no longer a singleton · 1e9ab60a
      Martin Flöser authored
      The DecorationBridge needs to be passed to the DecoratedClient and
      Deocration ctor, so that they don't need to call the singleton
      any more. The challenge is that we are restricted in what can be
      passed to Decoration's ctor if we want to create a Decoration with
      the help of KPluginFactory. As a solution the DecorationBridge can
      be passed in through the QVariantList which is passed to a created
      instance by KPluginFactory. This means for inheriting classes that
      they need to pass on the QVaraintList argument.
      
      For backends to implement the DecorationBridge it is now important
      to pass their DecorationBridge in the QVariantList passed as args
      to KPluginFactory. It's expected to be in a QVariantMap under key
      "bridge".
      1e9ab60a
  15. 29 Oct, 2014 1 commit
    • Martin Flöser's avatar
      DecorationSettings is no longer a singleton · 7c34c8b3
      Martin Flöser authored
      Instead a QSharedPointer is passed to the Decoration. Thus it's
      guaranteed to be valid as long as the Decoration is there. And it
      allows more control by providing different settings instances per
      created Decoration.
      7c34c8b3
  16. 23 Oct, 2014 1 commit
    • Martin Flöser's avatar
      Add a virtual Decoration::init · e7b98d4c
      Martin Flöser authored
      This allows to have better control over the created Decoration from
      the framework. Especially it allows the framework to perform proper
      dependency injection before the Decoration is fully created.
      e7b98d4c
  17. 21 Oct, 2014 4 commits
  18. 25 Jul, 2014 3 commits
  19. 24 Jul, 2014 3 commits
  20. 22 Jul, 2014 2 commits
  21. 18 Jul, 2014 2 commits