aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Mardegan <alberto.mardegan@canonical.com>2013-05-23 11:44:41 +0300
committerAlberto Mardegan <alberto.mardegan@canonical.com>2013-05-23 11:44:41 +0300
commit8157af28188959d105f13657886517ea90fcb37e (patch)
treeefd39ec072b094f38e220e9dfdc24257135e2f73
parentc5bcb297490b44429997c9658d0afb12900cef42 (diff)
downloadqmenumodel-8157af28188959d105f13657886517ea90fcb37e.tar.gz
qmenumodel-8157af28188959d105f13657886517ea90fcb37e.tar.bz2
qmenumodel-8157af28188959d105f13657886517ea90fcb37e.zip
style
-rw-r--r--libqmenumodel/src/qmenumodel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libqmenumodel/src/qmenumodel.cpp b/libqmenumodel/src/qmenumodel.cpp
index ed2fd47..9bc9e02 100644
--- a/libqmenumodel/src/qmenumodel.cpp
+++ b/libqmenumodel/src/qmenumodel.cpp
@@ -252,7 +252,9 @@ void QMenuModel::onItemsChanged(MenuNode *node,
/*! \internal */
QModelIndex QMenuModel::indexFromNode(MenuNode *node) const
{
- if (node == m_root) return QModelIndex();
+ if (node == m_root) {
+ return QModelIndex();
+ }
return createIndex(node->position(), 0, node);
}