summaryrefslogtreecommitdiff
path: root/src/history
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-07-18 11:44:02 +0200
committerAndrea Diamantini <adjam7@gmail.com>2011-07-18 11:44:02 +0200
commit38bca2f01a9bf8663f56b45b2cec2e9cf00ffa85 (patch)
tree3a8c1b0a6da2accb1c0b56a4d4cf9b51ce4f22ae /src/history
parentLast fixes for the SSL dialog improvements (diff)
downloadrekonq-38bca2f01a9bf8663f56b45b2cec2e9cf00ffa85.tar.xz
style cleanup
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);