diff options
author | Shawn Rutledge <shawn.rutledge@nokia.com> | 2012-08-16 15:10:03 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-21 11:05:20 +0200 |
commit | ef98762dc6f4f2175b3f26cdf99242afadc4e8be (patch) | |
tree | 5eabf560fbd8af397b25790f352aabb5139ec664 /src/widgets/itemviews/qdirmodel.cpp | |
parent | 083e4c7e51e5afbd672376d2e4b248fc367ea85c (diff) |
Whitespace fixes
Change-Id: Ibfb48076ad62804344db6e9e97ac90fdcf82dc04
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
Diffstat (limited to 'src/widgets/itemviews/qdirmodel.cpp')
-rw-r--r-- | src/widgets/itemviews/qdirmodel.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/widgets/itemviews/qdirmodel.cpp b/src/widgets/itemviews/qdirmodel.cpp index d96fa3fc30..1a206a0caa 100644 --- a/src/widgets/itemviews/qdirmodel.cpp +++ b/src/widgets/itemviews/qdirmodel.cpp @@ -305,11 +305,11 @@ QModelIndex QDirModel::parent(const QModelIndex &child) const Q_D(const QDirModel); if (!d->indexValid(child)) - return QModelIndex(); + return QModelIndex(); QDirModelPrivate::QDirNode *node = d->node(child); QDirModelPrivate::QDirNode *par = (node ? node->parent : 0); if (par == 0) // parent is the root node - return QModelIndex(); + return QModelIndex(); // get the parent's row const QVector<QDirModelPrivate::QDirNode> children = @@ -435,7 +435,7 @@ QVariant QDirModel::headerData(int section, Qt::Orientation orientation, int rol if (orientation == Qt::Horizontal) { if (role != Qt::DisplayRole) return QVariant(); - switch (section) { + switch (section) { case 0: return tr("Name"); case 1: return tr("Size"); case 2: return @@ -898,7 +898,7 @@ QModelIndex QDirModel::index(const QString &path, int column) const pathElements.pop_front(); if (childAppended) emit const_cast<QDirModel*>(this)->layoutChanged(); - } else + } else #endif #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE) if (pathElements.at(0).endsWith(QLatin1Char(':'))) { @@ -1179,7 +1179,7 @@ void QDirModelPrivate::init() QDirModelPrivate::QDirNode *QDirModelPrivate::node(int row, QDirNode *parent) const { if (row < 0) - return 0; + return 0; bool isDir = !parent || parent->info.isDir(); QDirNode *p = (parent ? parent : &root); |