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;
|
||||
}
|
||||
|
||||
void QmlInspectorToolBar::createActions(const Core::Context &context)
|
||||
void QmlInspectorToolBar::createActions()
|
||||
{
|
||||
Core::Context context(Debugger::Constants::C_QMLDEBUGGER);
|
||||
Core::ICore *core = Core::ICore::instance();
|
||||
Core::ActionManager *am = core->actionManager();
|
||||
|
||||
|
@@ -38,14 +38,12 @@
|
||||
#include <QtCore/QObject>
|
||||
#include <QtGui/QIcon>
|
||||
|
||||
QT_FORWARD_DECLARE_CLASS(QAction)
|
||||
QT_FORWARD_DECLARE_CLASS(QActionGroup)
|
||||
QT_FORWARD_DECLARE_CLASS(QColor)
|
||||
QT_FORWARD_DECLARE_CLASS(QToolButton)
|
||||
|
||||
namespace Core {
|
||||
class Context;
|
||||
}
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QAction;
|
||||
class QActionGroup;
|
||||
class QColor;
|
||||
class QToolButton;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace Utils {
|
||||
class StyledBar;
|
||||
@@ -73,7 +71,7 @@ public:
|
||||
};
|
||||
|
||||
explicit QmlInspectorToolBar(QObject *parent = 0);
|
||||
void createActions(const Core::Context &context);
|
||||
void createActions();
|
||||
QWidget *widget() const;
|
||||
|
||||
public slots:
|
||||
|
@@ -719,7 +719,7 @@ void InspectorUi::setupDockWidgets()
|
||||
{
|
||||
Debugger::DebuggerMainWindow *mw = Debugger::DebuggerPlugin::mainWindow();
|
||||
|
||||
m_toolBar->createActions(Core::Context(Debugger::Constants::C_QMLDEBUGGER));
|
||||
m_toolBar->createActions();
|
||||
m_toolBar->setObjectName("QmlInspectorToolbar");
|
||||
mw->setToolBar(Debugger::QmlLanguage, m_toolBar->widget());
|
||||
|
||||
|
Reference in New Issue
Block a user