forked from qt-creator/qt-creator
qmljsinspector: style
Change-Id: I4d776b9d0ce77a74d0347eb08c15026982ab8054 Reviewed-on: http://codereview.qt.nokia.com/258 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -177,8 +177,9 @@ void QmlInspectorToolBar::setShowAppOnTop(bool showAppOnTop)
|
|||||||
m_emitSignals = true;
|
m_emitSignals = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlInspectorToolBar::createActions(const Core::Context &context)
|
void QmlInspectorToolBar::createActions()
|
||||||
{
|
{
|
||||||
|
Core::Context context(Debugger::Constants::C_QMLDEBUGGER);
|
||||||
Core::ICore *core = Core::ICore::instance();
|
Core::ICore *core = Core::ICore::instance();
|
||||||
Core::ActionManager *am = core->actionManager();
|
Core::ActionManager *am = core->actionManager();
|
||||||
|
|
||||||
|
@@ -38,14 +38,12 @@
|
|||||||
#include <QtCore/QObject>
|
#include <QtCore/QObject>
|
||||||
#include <QtGui/QIcon>
|
#include <QtGui/QIcon>
|
||||||
|
|
||||||
QT_FORWARD_DECLARE_CLASS(QAction)
|
QT_BEGIN_NAMESPACE
|
||||||
QT_FORWARD_DECLARE_CLASS(QActionGroup)
|
class QAction;
|
||||||
QT_FORWARD_DECLARE_CLASS(QColor)
|
class QActionGroup;
|
||||||
QT_FORWARD_DECLARE_CLASS(QToolButton)
|
class QColor;
|
||||||
|
class QToolButton;
|
||||||
namespace Core {
|
QT_END_NAMESPACE
|
||||||
class Context;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace Utils {
|
namespace Utils {
|
||||||
class StyledBar;
|
class StyledBar;
|
||||||
@@ -73,7 +71,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
explicit QmlInspectorToolBar(QObject *parent = 0);
|
explicit QmlInspectorToolBar(QObject *parent = 0);
|
||||||
void createActions(const Core::Context &context);
|
void createActions();
|
||||||
QWidget *widget() const;
|
QWidget *widget() const;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
@@ -719,7 +719,7 @@ void InspectorUi::setupDockWidgets()
|
|||||||
{
|
{
|
||||||
Debugger::DebuggerMainWindow *mw = Debugger::DebuggerPlugin::mainWindow();
|
Debugger::DebuggerMainWindow *mw = Debugger::DebuggerPlugin::mainWindow();
|
||||||
|
|
||||||
m_toolBar->createActions(Core::Context(Debugger::Constants::C_QMLDEBUGGER));
|
m_toolBar->createActions();
|
||||||
m_toolBar->setObjectName("QmlInspectorToolbar");
|
m_toolBar->setObjectName("QmlInspectorToolbar");
|
||||||
mw->setToolBar(Debugger::QmlLanguage, m_toolBar->widget());
|
mw->setToolBar(Debugger::QmlLanguage, m_toolBar->widget());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user