summaryrefslogtreecommitdiff
path: root/src/history/historymodels.cpp
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/historymodels.cpp
parentLast fixes for the SSL dialog improvements (diff)
downloadrekonq-38bca2f01a9bf8663f56b45b2cec2e9cf00ffa85.tar.xz
style cleanup
Diffstat (limited to 'src/history/historymodels.cpp')
-rw-r--r--src/history/historymodels.cpp12
1 files changed, 6 insertions, 6 deletions
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);