[Bug 160557] Selecting a module in systemsettings should always be with single-click

Aaron Peterson alpeterson at gmail.com
Mon Nov 17 01:33:35 GMT 2008


http://bugs.kde.org/show_bug.cgi?id=160557





--- Comment #10 from Aaron Peterson <alpeterson gmail com>  2008-11-17 02:33:34 ---

Logically these are toolbars.  It is probably too much work to change them into
that, it looks like these are nicely sorted.

    tv->setSelectionMode(QAbstractItemView::SingleSelection);
Should probably be set to  NoSelection...  It doesn't make sense to select
these, but it does make sense to have focus (I don't know how QT deals with
selection vs focus) -- ultimately it doesn't matter and this could probably be
the same.

  ***  fix, add this line or one like it ***
   tv->setEditTriggers(QAbstractItemView::SelectedClicked);
***

http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKCategorizedView.html
http://doc.trolltech.com/4.4/qlistview.html

**This is where the solution was found**
http://doc.trolltech.com/4.1/qabstractitemview.html

http://techbase.kde.org/Projects/SystemSettings

The code in question:
http://websvn.kde.org/trunk/KDE/kdebase/workspace/systemsettings/mainwindow.cpp?revision=869272&view=markup

QAbstractItemView::EditTriggers
This value should probably be 2+4+8  = 14
(assuming the edit key is [enter], or main click (left on most) from mouse.


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list