forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/3.4'
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
vec4 orange = vec4(1.0, 165.0 / 255.0, 0.0, 1.0);
|
||||
lowp vec4 orange = vec4(1.0, 165.0 / 255.0, 0.0, 1.0);
|
||||
void main()
|
||||
{
|
||||
gl_FragColor = orange;
|
||||
|
||||
@@ -76,7 +76,6 @@ public:
|
||||
QmlProfilerTraceViewPrivate(QmlProfilerTraceView *qq) : q(qq) {}
|
||||
QmlProfilerTraceView *q;
|
||||
|
||||
QmlProfilerStateManager *m_profilerState;
|
||||
QmlProfilerTool *m_profilerTool;
|
||||
QmlProfilerViewManager *m_viewContainer;
|
||||
|
||||
@@ -90,7 +89,7 @@ public:
|
||||
Timeline::TimelineZoomControl *m_zoomControl;
|
||||
};
|
||||
|
||||
QmlProfilerTraceView::QmlProfilerTraceView(QWidget *parent, QmlProfilerTool *profilerTool, QmlProfilerViewManager *container, QmlProfilerModelManager *modelManager, QmlProfilerStateManager *profilerState)
|
||||
QmlProfilerTraceView::QmlProfilerTraceView(QWidget *parent, QmlProfilerTool *profilerTool, QmlProfilerViewManager *container, QmlProfilerModelManager *modelManager)
|
||||
: QWidget(parent), d(new QmlProfilerTraceViewPrivate(this))
|
||||
{
|
||||
setObjectName(QLatin1String("QML Profiler"));
|
||||
@@ -141,9 +140,6 @@ QmlProfilerTraceView::QmlProfilerTraceView(QWidget *parent, QmlProfilerTool *pro
|
||||
|
||||
// Connect this last so that it's executed after the models have updated their data.
|
||||
connect(modelManager->qmlModel(), SIGNAL(changed()), d->m_modelProxy, SIGNAL(stateChanged()));
|
||||
connect(d->m_modelManager, SIGNAL(stateChanged()), this, SLOT(profilerDataModelStateChanged()));
|
||||
|
||||
d->m_profilerState = profilerState;
|
||||
|
||||
// Minimum height: 5 rows of 20 pixels + scrollbar of 50 pixels + 20 pixels margin
|
||||
setMinimumHeight(170);
|
||||
@@ -308,23 +304,6 @@ void QmlProfilerTraceView::showContextMenu(QPoint position)
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// Profiler State
|
||||
void QmlProfilerTraceView::profilerDataModelStateChanged()
|
||||
{
|
||||
switch (d->m_modelManager->state()) {
|
||||
case QmlProfilerDataState::Empty: break;
|
||||
case QmlProfilerDataState::ClearingData:
|
||||
d->m_mainView->hide();
|
||||
break;
|
||||
case QmlProfilerDataState::AcquiringData: break;
|
||||
case QmlProfilerDataState::ProcessingData: break;
|
||||
case QmlProfilerDataState::Done:
|
||||
d->m_mainView->show();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void QmlProfilerTraceView::changeEvent(QEvent *e)
|
||||
{
|
||||
|
||||
@@ -51,8 +51,7 @@ class QmlProfilerTraceView : public QWidget
|
||||
public:
|
||||
explicit QmlProfilerTraceView(QWidget *parent, QmlProfilerTool *profilerTool,
|
||||
QmlProfilerViewManager *container,
|
||||
QmlProfilerModelManager *modelManager,
|
||||
QmlProfilerStateManager *profilerState);
|
||||
QmlProfilerModelManager *modelManager);
|
||||
~QmlProfilerTraceView();
|
||||
|
||||
bool hasValidSelection() const;
|
||||
@@ -68,7 +67,6 @@ public slots:
|
||||
|
||||
private slots:
|
||||
void updateCursorPosition();
|
||||
void profilerDataModelStateChanged();
|
||||
|
||||
protected:
|
||||
void changeEvent(QEvent *e) Q_DECL_OVERRIDE;
|
||||
|
||||
@@ -95,8 +95,7 @@ void QmlProfilerViewManager::createViews()
|
||||
d->traceView = new QmlProfilerTraceView(mw,
|
||||
d->profilerTool,
|
||||
this,
|
||||
d->profilerModelManager,
|
||||
d->profilerState);
|
||||
d->profilerModelManager);
|
||||
d->traceView->setWindowTitle(tr("Timeline"));
|
||||
connect(d->traceView, SIGNAL(gotoSourceLocation(QString,int,int)),
|
||||
this, SIGNAL(gotoSourceLocation(QString,int,int)));
|
||||
|
||||
Reference in New Issue
Block a user