<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>398303</bug_id>
          
          <creation_ts>2018-09-05 21:35:31 +0000</creation_ts>
          <short_desc>GridViewKCM: double-clicking on a delegate should select it and then apply</short_desc>
          <delta_ts>2021-04-30 02:17:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>frameworks-kdeclarative</product>
          <component>general</component>
          <version>5.54.0</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=403384</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Nate Graham">nate</reporter>
          <assigned_to name="Marco Martin">notmart</assigned_to>
          <cc>aspotashev</cc>
    
    <cc>kde</cc>
    
    <cc>kde</cc>
    
    <cc>kdelibs-bugs-null</cc>
    
    <cc>mglb</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>5.22</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1779172</commentid>
    <comment_count>0</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2018-09-05 21:35:31 +0000</bug_when>
    <thetext>Right now, to apply a change in a GridViewKCM, you need to select it, then click Apply. It would be a nice shortcut if you could double-click on it to select and then instantly apply.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1779244</commentid>
    <comment_count>1</comment_count>
    <who name="Kai Uwe Broulik">kde</who>
    <bug_when>2018-09-06 09:53:26 +0000</bug_when>
    <thetext>Interesting approach. How do we communicate that to the user, though? Also, the &quot;Apply&quot; could apply more than just the currently selected item (if the KCM has some additional check boxes like look and feel for instance).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1779309</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2018-09-06 16:41:17 +0000</bug_when>
    <thetext>My thought was that this could just be a hidden accelerator, and wouldn&apos;t need explicit documentation. I found myself instinctively double-clicking delegates in these KCMs to insta-apply and was slightly disappointed when it didn&apos;t work. It&apos;s particularly useful when you want to rapidly iterate through visual options to see what they look like. In practice, I don&apos;t think it would be a big problem to apply other un-applied changes (in most case there wouldn&apos;t be any), though. If you feel differently, maybe it could throw away other un-applied changes if that&apos;s feasible?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1779380</commentid>
    <comment_count>3</comment_count>
    <who name="Kai Uwe Broulik">kde</who>
    <bug_when>2018-09-07 07:02:45 +0000</bug_when>
    <thetext>Let&apos;s quickly go through the grid KCMs and see what would happen:
* Look and feel: the &quot;apply theme&quot; checkbox is quite destructive but we could uncheck it when double clicking before applying
* Desktop theme: should be fine
* Cursor theme: would also apply a new cursor size setting, if any
* Splash screen: should be fine
* Icons: would also apply a new icon size setting, if any
* Colors: should be fine

As for the code, it&apos;s merely adding a onDoubleClicked: kcm.save() call</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1790463</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2018-09-28 20:39:13 +0000</bug_when>
    <thetext>The &quot;apply theme&quot; checkbox is the only real issue, I think. We could un-check it prior to applying, or even make it into a button that has to be deliberately clicked.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1833379</commentid>
    <comment_count>5</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2019-01-20 16:21:05 +0000</bug_when>
    <thetext>I don&apos;t want to see a combo of this and 403384, that would be mega confusing from a UI as it&apos;d be near impossible to know what&apos;s applied with this shortcut and what&apos;s not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1865641</commentid>
    <comment_count>6</comment_count>
    <who name="Mariusz Glebocki">mglb</who>
    <bug_when>2019-06-26 07:55:02 +0000</bug_when>
    <thetext>I wouldn&apos;t expect something to apply by just (double)clicking or interacting in any way with items when I see &quot;Apply&quot; button in a dialog (and see manual apply pattern in (almost) every KDE application). Applying other changes, or just applying selectively, would be totally unpredictable.

Preview without real save (like in Konsole&apos;s edit profile → appearance) could be an option, eventually with some KMessageWidget-like &quot;Preview&quot; note. This would be the same as in #403384, except with double-click.


(In reply to Nate Graham from comment #2)
&gt; I found myself instinctively double-clicking delegates in these KCMs to insta-apply and was slightly disappointed when it didn&apos;t work.

Out of curiosity: why did you expect that? I always expected double click to be an edit/rename action in lists and tables. Not sure why, so maybe its just me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2028825</commentid>
    <comment_count>7</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-04-30 01:27:48 +0000</bug_when>
    <thetext>In the end we did it in the individual KCMs rather than in the generic grid delegate component.

See:
- https://invent.kde.org/plasma/plasma-workspace/-/commit/f5fc5e9f6539c30dc9438d4e75d37233a1b0d6fd
- https://invent.kde.org/plasma/plasma-desktop/commit/0024b6405628db86142f52aafd8bd9e17fc82135
- https://invent.kde.org/plasma/plymouth-kcm/commit/faab6dc4eedc6874688652a4f7bff182c2e20585
- https://invent.kde.org/plasma/sddm-kcm/commit/7302747afa120952abc3a6164d6b1403d3b8dcbd</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2028833</commentid>
    <comment_count>8</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-04-30 02:17:45 +0000</bug_when>
    <thetext>Oops clicked submit by accident. One more commit rounds this out:

- https://invent.kde.org/plasma/kwin/commit/2a6fe9748f361671ab76dd5de0c4123884bdfb82</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>