<?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>291397</bug_id>
          
          <creation_ts>2012-01-12 21:04:16 +0000</creation_ts>
          <short_desc>Nepomuk coniguration utility does not select parent folder when selecting subfolders to index</short_desc>
          <delta_ts>2012-12-31 08:30:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>nepomuk</product>
          <component>kcm</component>
          <version>4.9</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>eric.erfanian</reporter>
          <assigned_to name="Nepomuk Bugs Coordination">nepomuk-bugs</assigned_to>
          <cc>me</cc>
          
          <cf_commitlink>http://commits.kde.org/kde-runtime/b0c94bceb74643ffdef89e51138f6b072b68a5b6</cf_commitlink>
          <cf_versionfixedin>4.10</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1213745</commentid>
    <comment_count>0</comment_count>
    <who name="">eric.erfanian</who>
    <bug_when>2012-01-12 21:04:16 +0000</bug_when>
    <thetext>Version:           unspecified (using KDE 4.7.4) 
OS:                Linux

I was setting up an out of the box Kubuntu 11.10 (with latest updates) for a user. When I selected in the configuration utility folders to index within the Windows partition (automounted), I could check the box next to the folder and all sub-folders would successfully be selected, but when I selected a sub-folder the parent item would not become checked as well.

Reproducible: Didn&apos;t try

Steps to Reproduce:
1) Mount Windows Partition
2) Open indexing controls
3) Select a subfolder in user&apos;s files to index

Actual Results:  
Parent item remains unchecked.

Expected Results:  
Parent item should become checked when sub-item is checked.

I was successfully able to complete this type of action in Amarok.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1319877</commentid>
    <comment_count>1</comment_count>
    <who name="Vishesh Handa">me</who>
    <bug_when>2012-12-01 00:17:47 +0000</bug_when>
    <thetext>Could you please elaborate? Perhaps provide a more concrete example?

Example -
DirA/
DirA/Folder1
DirA/Folder2

If DirA is selected then &quot;DirA/Folder1&quot; and &quot;DirA/Folder2&quot; are also selected. That is the correct behavior.

If only &quot;DirA/Folder1&quot; is selected, then why should &quot;DirA&quot; get selected?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1320550</commentid>
    <comment_count>2</comment_count>
    <who name="">eric.erfanian</who>
    <bug_when>2012-12-02 23:09:00 +0000</bug_when>
    <thetext>Sure, I&apos;ll build off your example:

DirA/
DirA/Folder1
DirA/Folder2

&gt; If DirA is selected then &quot;DirA/Folder1&quot; and &quot;DirA/Folder2&quot; are also
&gt; selected. That is the correct behavior.

I agree. That is the correct behavior.

But, if DirA/Folder1 is selected, I believe there should be some sort of feedback at the parent  level to indicate something is going on with the child items. So if you select a child item (DirA/Folder1) the check box by DirA will have a striped check mark. When all child items are selected, the parent check mark should turn into a solid check mark.

That was I can better tell at a glance where items are selected for indexing, even if a parent folder is collapsed.

Does this make sense?

(In reply to comment #1)
&gt; Could you please elaborate? Perhaps provide a more concrete example?
&gt; 
&gt; Example -
&gt; DirA/
&gt; DirA/Folder1
&gt; DirA/Folder2
&gt; 
&gt; If DirA is selected then &quot;DirA/Folder1&quot; and &quot;DirA/Folder2&quot; are also
&gt; selected. That is the correct behavior.
&gt; 
&gt; If only &quot;DirA/Folder1&quot; is selected, then why should &quot;DirA&quot; get selected?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1320602</commentid>
    <comment_count>3</comment_count>
    <who name="Vishesh Handa">me</who>
    <bug_when>2012-12-03 06:51:59 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Sure, I&apos;ll build off your example:
&gt; 
&gt; DirA/
&gt; DirA/Folder1
&gt; DirA/Folder2
&gt; 
&gt; &gt; If DirA is selected then &quot;DirA/Folder1&quot; and &quot;DirA/Folder2&quot; are also
&gt; &gt; selected. That is the correct behavior.
&gt; 
&gt; I agree. That is the correct behavior.
&gt; 
&gt; But, if DirA/Folder1 is selected, I believe there should be some sort of
&gt; feedback at the parent  level to indicate something is going on with the
&gt; child items. So if you select a child item (DirA/Folder1) the check box by
&gt; DirA will have a striped check mark. When all child items are selected, the
&gt; parent check mark should turn into a solid check mark.
&gt; 
&gt; That was I can better tell at a glance where items are selected for
&gt; indexing, even if a parent folder is collapsed.
&gt; 
&gt; Does this make sense?
&gt; 

Yes. It does.

The problem is that we only have 3 ways of marking a directory - Solid Check Mark, Dotted Check Mark, and Nothing. Currently we use the &quot;Dotted Check Mark&quot; when a selected directory has some sub-directory unchecked.

Eg - 

DirA/               ----&gt; Checked (will be dotted)
DirA/Folder1   ---&gt; Unchecked
DirA/Folder2    ---&gt; Checked (solid)

I&apos;m not sure if we should change the current behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1321296</commentid>
    <comment_count>4</comment_count>
    <who name="">eric.erfanian</who>
    <bug_when>2012-12-05 13:11:00 +0000</bug_when>
    <thetext>(In reply to comment #3)

No, please do not!  I think that is the perfect behavior. It just isn&apos;t working. That is to say, I do not get a dotted check mark when a sub-directory is unchecked.

&gt; (In reply to comment #2)
&gt; &gt; Sure, I&apos;ll build off your example:
&gt; &gt; 
&gt; &gt; DirA/
&gt; &gt; DirA/Folder1
&gt; &gt; DirA/Folder2
&gt; &gt; 
&gt; &gt; &gt; If DirA is selected then &quot;DirA/Folder1&quot; and &quot;DirA/Folder2&quot; are also
&gt; &gt; &gt; selected. That is the correct behavior.
&gt; &gt; 
&gt; &gt; I agree. That is the correct behavior.
&gt; &gt; 
&gt; &gt; But, if DirA/Folder1 is selected, I believe there should be some sort of
&gt; &gt; feedback at the parent  level to indicate something is going on with the
&gt; &gt; child items. So if you select a child item (DirA/Folder1) the check box by
&gt; &gt; DirA will have a striped check mark. When all child items are selected, the
&gt; &gt; parent check mark should turn into a solid check mark.
&gt; &gt; 
&gt; &gt; That was I can better tell at a glance where items are selected for
&gt; &gt; indexing, even if a parent folder is collapsed.
&gt; &gt; 
&gt; &gt; Does this make sense?
&gt; &gt; 
&gt; 
&gt; Yes. It does.
&gt; 
&gt; The problem is that we only have 3 ways of marking a directory - Solid Check
&gt; Mark, Dotted Check Mark, and Nothing. Currently we use the &quot;Dotted Check
&gt; Mark&quot; when a selected directory has some sub-directory unchecked.
&gt; 
&gt; Eg - 
&gt; 
&gt; DirA/               ----&gt; Checked (will be dotted)
&gt; DirA/Folder1   ---&gt; Unchecked
&gt; DirA/Folder2    ---&gt; Checked (solid)
&gt; 
&gt; I&apos;m not sure if we should change the current behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1321396</commentid>
    <comment_count>5</comment_count>
    <who name="Vishesh Handa">me</who>
    <bug_when>2012-12-05 19:02:25 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; 
&gt; No, please do not!  I think that is the perfect behavior. It just isn&apos;t
&gt; working. That is to say, I do not get a dotted check mark when a
&gt; sub-directory is unchecked.
&gt; 

Hmm. You&apos;re right. It doesn&apos;t seem to be working. That&apos;s strange.

I&apos;ll fix it. Marking this bug as &quot;NEW&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1327586</commentid>
    <comment_count>6</comment_count>
    <who name="Vishesh Handa">me</who>
    <bug_when>2012-12-31 08:30:18 +0000</bug_when>
    <thetext>Git commit b0c94bceb74643ffdef89e51138f6b072b68a5b6 by Vishesh Handa.
Committed on 31/12/2012 at 09:16.
Pushed by vhanda into branch &apos;KDE/4.10&apos;.

Nepomuk FolderSelectionModel: Improve checked state

Mark certain folders as PartiallyChecked. We now use the following
criteria -

* Qt::Checked - When the directory and all its subdirectories are
                included
* Qt::PartiallyChecked - When a directory is included but its
                sub-directories contain an excluded directory
* Qt::Unchecked - When a directory is excluded
FIXED-IN: 4.10

M  +7    -0    nepomuk/kcm/folderselectionmodel.cpp

http://commits.kde.org/kde-runtime/b0c94bceb74643ffdef89e51138f6b072b68a5b6</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>