summaryrefslogtreecommitdiff
path: root/src/history
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-02-16 19:20:27 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-02-16 19:20:27 +0100
commit2f13db3514ee77317b889904baa657b0257d962a (patch)
tree7c805e3cfc366ee9eb86636520e1e57106db3eaa /src/history
parentSVN_SILENT made messages (.desktop file) (diff)
downloadrekonq-2f13db3514ee77317b889904baa657b0257d962a.tar.xz
Krazy fixes
- doublequote_chars - normalize
Diffstat (limited to 'src/history')
-rw-r--r--src/history/historymodels.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/history/historymodels.cpp b/src/history/historymodels.cpp
index f31d90d3..16054054 100644
--- a/src/history/historymodels.cpp
+++ b/src/history/historymodels.cpp
@@ -230,12 +230,12 @@ void HistoryFilterModel::setSourceModel(QAbstractItemModel *newSourceModel)
if (sourceModel())
{
disconnect(sourceModel(), SIGNAL(modelReset()), this, SLOT(sourceReset()));
- disconnect(sourceModel(), SIGNAL(dataChanged(QModelIndex, QModelIndex)),
- this, SLOT(dataChanged(QModelIndex, QModelIndex)));
- disconnect(sourceModel(), SIGNAL(rowsInserted(QModelIndex, int, int)),
- this, SLOT(sourceRowsInserted(QModelIndex, int, int)));
- disconnect(sourceModel(), SIGNAL(rowsRemoved(QModelIndex, int, int)),
- this, SLOT(sourceRowsRemoved(QModelIndex, int, int)));
+ disconnect(sourceModel(), SIGNAL(dataChanged(QModelIndex,QModelIndex)),
+ this, SLOT(dataChanged(QModelIndex,QModelIndex)));
+ disconnect(sourceModel(), SIGNAL(rowsInserted(QModelIndex,int,int)),
+ this, SLOT(sourceRowsInserted(QModelIndex,int,int)));
+ disconnect(sourceModel(), SIGNAL(rowsRemoved(QModelIndex,int,int)),
+ this, SLOT(sourceRowsRemoved(QModelIndex,int,int)));
}
QAbstractProxyModel::setSourceModel(newSourceModel);
@@ -244,12 +244,12 @@ void HistoryFilterModel::setSourceModel(QAbstractItemModel *newSourceModel)
{
m_loaded = false;
connect(sourceModel(), SIGNAL(modelReset()), this, SLOT(sourceReset()));
- connect(sourceModel(), SIGNAL(dataChanged(QModelIndex, QModelIndex)),
- this, SLOT(sourceDataChanged(QModelIndex, QModelIndex)));
- connect(sourceModel(), SIGNAL(rowsInserted(QModelIndex, int, int)),
- this, SLOT(sourceRowsInserted(QModelIndex, int, int)));
- connect(sourceModel(), SIGNAL(rowsRemoved(QModelIndex, int, int)),
- this, SLOT(sourceRowsRemoved(QModelIndex, int, int)));
+ connect(sourceModel(), SIGNAL(dataChanged(QModelIndex,QModelIndex)),
+ this, SLOT(sourceDataChanged(QModelIndex,QModelIndex)));
+ connect(sourceModel(), SIGNAL(rowsInserted(QModelIndex,int,int)),
+ this, SLOT(sourceRowsInserted(QModelIndex,int,int)));
+ connect(sourceModel(), SIGNAL(rowsRemoved(QModelIndex,int,int)),
+ this, SLOT(sourceRowsRemoved(QModelIndex,int,int)));
}
}
@@ -411,16 +411,16 @@ bool HistoryFilterModel::removeRows(int row, int count, const QModelIndex &paren
if (row < 0 || count <= 0 || row + count > rowCount(parent) || parent.isValid())
return false;
int lastRow = row + count - 1;
- disconnect(sourceModel(), SIGNAL(rowsRemoved(QModelIndex, int, int)),
- this, SLOT(sourceRowsRemoved(QModelIndex, int, int)));
+ disconnect(sourceModel(), SIGNAL(rowsRemoved(QModelIndex,int,int)),
+ this, SLOT(sourceRowsRemoved(QModelIndex,int,int)));
beginRemoveRows(parent, row, lastRow);
int oldCount = rowCount();
int start = sourceModel()->rowCount() - m_sourceRow.value(row);
int end = sourceModel()->rowCount() - m_sourceRow.value(lastRow);
sourceModel()->removeRows(start, end - start + 1);
endRemoveRows();
- connect(sourceModel(), SIGNAL(rowsRemoved(QModelIndex, int, int)),
- this, SLOT(sourceRowsRemoved(QModelIndex, int, int)));
+ connect(sourceModel(), SIGNAL(rowsRemoved(QModelIndex,int,int)),
+ this, SLOT(sourceRowsRemoved(QModelIndex,int,int)));
m_loaded = false;
if (oldCount - count != rowCount())
reset();
@@ -631,10 +631,10 @@ void HistoryTreeModel::setSourceModel(QAbstractItemModel *newSourceModel)
{
disconnect(sourceModel(), SIGNAL(modelReset()), this, SLOT(sourceReset()));
disconnect(sourceModel(), SIGNAL(layoutChanged()), this, SLOT(sourceReset()));
- disconnect(sourceModel(), SIGNAL(rowsInserted(QModelIndex, int, int)),
- this, SLOT(sourceRowsInserted(QModelIndex, int, int)));
- disconnect(sourceModel(), SIGNAL(rowsRemoved(QModelIndex, int, int)),
- this, SLOT(sourceRowsRemoved(QModelIndex, int, int)));
+ disconnect(sourceModel(), SIGNAL(rowsInserted(QModelIndex,int,int)),
+ this, SLOT(sourceRowsInserted(QModelIndex,int,int)));
+ disconnect(sourceModel(), SIGNAL(rowsRemoved(QModelIndex,int,int)),
+ this, SLOT(sourceRowsRemoved(QModelIndex,int,int)));
}
QAbstractProxyModel::setSourceModel(newSourceModel);
@@ -643,10 +643,10 @@ void HistoryTreeModel::setSourceModel(QAbstractItemModel *newSourceModel)
{
connect(sourceModel(), SIGNAL(modelReset()), this, SLOT(sourceReset()));
connect(sourceModel(), SIGNAL(layoutChanged()), this, SLOT(sourceReset()));
- connect(sourceModel(), SIGNAL(rowsInserted(QModelIndex, int, int)),
- this, SLOT(sourceRowsInserted(QModelIndex, int, int)));
- connect(sourceModel(), SIGNAL(rowsRemoved(QModelIndex, int, int)),
- this, SLOT(sourceRowsRemoved(QModelIndex, int, int)));
+ connect(sourceModel(), SIGNAL(rowsInserted(QModelIndex,int,int)),
+ this, SLOT(sourceRowsInserted(QModelIndex,int,int)));
+ connect(sourceModel(), SIGNAL(rowsRemoved(QModelIndex,int,int)),
+ this, SLOT(sourceRowsRemoved(QModelIndex,int,int)));
}
reset();