[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdeui/widgets
From: Rafał Miłecki <zajec5 () gmail ! com>
Date: 2008-04-08 18:38:47
Message-ID: 1207679927.385462.5106.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 794842 by rmilecki:
Method setSelected(...) should select whole maching row,
not only it's first cell. Especially needed when working
with QAbstractItemView::MultiSelection selection mode.
M +1 -1 ktimezonewidget.cpp
--- trunk/KDE/kdelibs/kdeui/widgets/ktimezonewidget.cpp #794841:794842
@@ -139,7 +139,7 @@
const QModelIndex index = model()->index(row, Private::CityColumn );
const QString tzName = index.data(Private::ZoneRole).toString();
if (tzName == zone) {
- selectionModel()->select(index, selected ? QItemSelectionModel::Select : \
QItemSelectionModel::Deselect); + selectionModel()->select(index, selected \
? (QItemSelectionModel::Select | QItemSelectionModel::Rows) : \
QItemSelectionModel::Deselect);
// Ensure the selected item is visible as appropriate.
scrollTo( index );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic