aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/models/proto_tree_model.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt/models/proto_tree_model.cpp')
-rw-r--r--ui/qt/models/proto_tree_model.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/qt/models/proto_tree_model.cpp b/ui/qt/models/proto_tree_model.cpp
index f4179bb25e..df65ec4100 100644
--- a/ui/qt/models/proto_tree_model.cpp
+++ b/ui/qt/models/proto_tree_model.cpp
@@ -44,19 +44,19 @@ QModelIndex ProtoTreeModel::index(int row, int, const QModelIndex &parent) const
parent_node = protoNodeFromIndex(parent);
}
- if (! parent_node.isValid() )
+ if (! parent_node.isValid())
return QModelIndex();
int cur_row = 0;
ProtoNode::ChildIterator kids = parent_node.children();
- while ( kids.element().isValid() )
+ while (kids.element().isValid())
{
- if ( cur_row == row )
+ if (cur_row == row)
break;
cur_row++;
kids.next();
}
- if ( ! kids.element().isValid() ) {
+ if (! kids.element().isValid()) {
return QModelIndex();
}
@@ -112,20 +112,20 @@ QVariant ProtoTreeModel::data(const QModelIndex &index, int role) const
default:
g_warning("%s:%d Unhandled severity flag: %u", G_STRFUNC, __LINE__, finfo.flag(PI_SEVERITY_MASK));
}
- if(finfo.headerInfo().type == FT_PROTOCOL) {
+ if (finfo.headerInfo().type == FT_PROTOCOL) {
return QApplication::palette().window();
}
return QApplication::palette().base();
}
case Qt::ForegroundRole:
{
- if(finfo.flag(PI_SEVERITY_MASK)) {
+ if (finfo.flag(PI_SEVERITY_MASK)) {
return ColorUtils::expert_color_foreground;
}
if (finfo.isLink()) {
return ColorUtils::themeLinkBrush();
}
- if(finfo.headerInfo().type == FT_PROTOCOL) {
+ if (finfo.headerInfo().type == FT_PROTOCOL) {
return QApplication::palette().windowText();
}
return QApplication::palette().text();