Code cosmetics

This commit is contained in:
Thorbjørn Lindeijer
2011-02-16 18:03:47 +01:00
parent 7f90d08c18
commit 4af3d9bdd2
6 changed files with 29 additions and 34 deletions

View File

@@ -39,15 +39,11 @@ namespace QmlJSInspector {
namespace Internal {
ContextCrumblePath::ContextCrumblePath(QWidget *parent)
: CrumblePath(parent), m_isEmpty(true)
: CrumblePath(parent)
, m_isEmpty(true)
{
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
updateContextPath(QStringList(),QList<int>());
}
ContextCrumblePath::~ContextCrumblePath()
{
updateContextPath(QStringList(), QList<int>());
}
void ContextCrumblePath::updateContextPath(const QStringList &path, const QList<int> &debugIds)
@@ -60,9 +56,8 @@ void ContextCrumblePath::updateContextPath(const QStringList &path, const QList<
if (m_isEmpty) {
pushElement(tr("[no context]"));
} else {
for (int i=0; i<path.count(); i++) {
pushElement(path[i],QVariant(debugIds[i]));
}
for (int i=0; i<path.count(); i++)
pushElement(path[i], QVariant(debugIds[i]));
}
}