projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed renaming issue for queries
[quassel.git]
/
src
/
client
/
buffermodel.cpp
diff --git
a/src/client/buffermodel.cpp
b/src/client/buffermodel.cpp
index
3426632
..
52d6d54
100644
(file)
--- a/
src/client/buffermodel.cpp
+++ b/
src/client/buffermodel.cpp
@@
-28,13
+28,10
@@
BufferModel::BufferModel(NetworkModel *parent)
: QSortFilterProxyModel(parent),
_selectionModelSynchronizer(this),
BufferModel::BufferModel(NetworkModel *parent)
: QSortFilterProxyModel(parent),
_selectionModelSynchronizer(this),
- _
propertyMapper
(this)
+ _
standardSelectionModel
(this)
{
setSourceModel(parent);
{
setSourceModel(parent);
-
- // initialize the Property Mapper
- _propertyMapper.setModel(this);
- _selectionModelSynchronizer.addRegularSelectionModel(_propertyMapper.selectionModel());
+ _selectionModelSynchronizer.addRegularSelectionModel(standardSelectionModel());
}
BufferModel::~BufferModel() {
}
BufferModel::~BufferModel() {
@@
-63,15
+60,11
@@
void BufferModel::synchronizeView(QAbstractItemView *view) {
view->setSelectionModel(mappedSelectionModel);
}
view->setSelectionModel(mappedSelectionModel);
}
-void BufferModel::mapProperty(int column, int role, QObject *target, const QByteArray &property) {
- _propertyMapper.addMapping(column, role, target, property);
-}
-
QModelIndex BufferModel::currentIndex() {
QModelIndex BufferModel::currentIndex() {
- return
propertyMapper()->s
electionModel()->currentIndex();
+ return
standardS
electionModel()->currentIndex();
}
void BufferModel::setCurrentIndex(const QModelIndex &newCurrent) {
}
void BufferModel::setCurrentIndex(const QModelIndex &newCurrent) {
-
standardSelectionModel()->
setCurrentIndex(newCurrent, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows);
-
standardSelectionModel()->
select(newCurrent, QItemSelectionModel::ClearAndSelect);
+
_standardSelectionModel.
setCurrentIndex(newCurrent, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows);
+
_standardSelectionModel.
select(newCurrent, QItemSelectionModel::ClearAndSelect);
}
}