summaryrefslogtreecommitdiff
path: root/src/history
diff options
context:
space:
mode:
Diffstat (limited to 'src/history')
-rw-r--r--src/history/historymanager.cpp2
-rw-r--r--src/history/historymodels.cpp12
2 files changed, 7 insertions, 7 deletions
diff --git a/src/history/historymanager.cpp b/src/history/historymanager.cpp
index 0b5e9e48..3b765e7d 100644
--- a/src/history/historymanager.cpp
+++ b/src/history/historymanager.cpp
@@ -378,7 +378,7 @@ void HistoryManager::load()
continue;
};
- if (!item.lastDateTimeVisit.isValid())
+ if(!item.lastDateTimeVisit.isValid())
continue;
if(item == lastInsertedItem)
diff --git a/src/history/historymodels.cpp b/src/history/historymodels.cpp
index 0315513b..c43a06d9 100644
--- a/src/history/historymodels.cpp
+++ b/src/history/historymodels.cpp
@@ -438,7 +438,7 @@ QVariant HistoryTreeModel::headerData(int section, Qt::Orientation orientation,
QVariant HistoryTreeModel::data(const QModelIndex &index, int role) const
{
- if (role == Qt::EditRole || role == Qt::DisplayRole)
+ if(role == Qt::EditRole || role == Qt::DisplayRole)
{
int start = index.internalId();
if(start == 0)
@@ -458,18 +458,18 @@ QVariant HistoryTreeModel::data(const QModelIndex &index, int role) const
}
}
}
-
- if (role == Qt::DecorationRole && index.column() == 0 && !index.parent().isValid())
+
+ if(role == Qt::DecorationRole && index.column() == 0 && !index.parent().isValid())
return KIcon("view-history");
-
- if (role == HistoryModel::DateRole && index.column() == 0 && index.internalId() == 0)
+
+ if(role == HistoryModel::DateRole && index.column() == 0 && index.internalId() == 0)
{
int offset = sourceDateRow(index.row());
QModelIndex idx = sourceModel()->index(offset, 0);
return idx.data(HistoryModel::DateRole);
}
- if (role == HistoryModel::FirstDateTimeVisitRole && index.column() == 0 && index.internalId() == 0)
+ if(role == HistoryModel::FirstDateTimeVisitRole && index.column() == 0 && index.internalId() == 0)
{
int offset = sourceDateRow(index.row());
QModelIndex idx = sourceModel()->index(offset, 0);