don't let the selection toggle steal the keyboard focus of the view

svn path=/trunk/KDE/kdebase/apps/; revision=777738
This commit is contained in:
Peter Penz 2008-02-21 12:53:56 +00:00
parent 188754a3e5
commit b34ed68daf

View file

@ -36,6 +36,7 @@ SelectionToggle::SelectionToggle(QWidget* parent) :
m_icon(),
m_fadingTimeLine(0)
{
setFocusPolicy(Qt::NoFocus);
parent->installEventFilter(this);
resize(sizeHint());
setIconOverlay(isChecked());