forked from qt-creator/qt-creator
Code cosmetics
This commit is contained in:
@@ -44,11 +44,11 @@ QT_FORWARD_DECLARE_CLASS(QColor)
|
||||
QT_FORWARD_DECLARE_CLASS(QToolButton)
|
||||
|
||||
namespace Core {
|
||||
class Context;
|
||||
class Context;
|
||||
}
|
||||
|
||||
namespace Utils {
|
||||
class StyledBar;
|
||||
class StyledBar;
|
||||
}
|
||||
|
||||
namespace QmlJSInspector {
|
||||
|
||||
@@ -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]));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -42,9 +42,10 @@ namespace Internal {
|
||||
class ContextCrumblePath : public Utils::CrumblePath
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ContextCrumblePath(QWidget *parent = 0);
|
||||
virtual ~ContextCrumblePath();
|
||||
|
||||
bool isEmpty() const;
|
||||
int debugIdForIndex(int index) const;
|
||||
|
||||
|
||||
@@ -48,20 +48,20 @@
|
||||
QT_FORWARD_DECLARE_CLASS(QLineEdit)
|
||||
|
||||
namespace ProjectExplorer {
|
||||
class Project;
|
||||
class Environment;
|
||||
class Project;
|
||||
class Environment;
|
||||
}
|
||||
|
||||
namespace TextEditor {
|
||||
class ITextEditor;
|
||||
class ITextEditor;
|
||||
}
|
||||
|
||||
namespace Core {
|
||||
class IContext;
|
||||
class IContext;
|
||||
}
|
||||
|
||||
namespace QmlJS {
|
||||
class ModelManagerInterface;
|
||||
class ModelManagerInterface;
|
||||
}
|
||||
|
||||
namespace QmlJSInspector {
|
||||
|
||||
Reference in New Issue
Block a user