forked from qt-creator/qt-creator
QmlDesigner: Fix warnings
- unused variables - mis-ordered field initializations Change-Id: I9f265799597e7c0f4f41cbb20edf19c48cae4c0e Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -43,10 +43,9 @@ AnnotationEditorDialog::AnnotationEditorDialog(QWidget *parent,
|
||||
const QString &targetId,
|
||||
const QString &customId)
|
||||
: QDialog(parent)
|
||||
, m_defaults(std::make_unique<DefaultAnnotationsModel>())
|
||||
, m_customId(customId)
|
||||
, ui(std::make_unique<Ui::AnnotationEditorDialog>())
|
||||
, m_statusIsActive(false)
|
||||
, m_customId(customId)
|
||||
, m_defaults(std::make_unique<DefaultAnnotationsModel>())
|
||||
{
|
||||
ui->setupUi(this);
|
||||
setGlobal(m_isGlobal);
|
||||
|
||||
@@ -515,6 +515,7 @@ void DebugView::currentStateChanged(const ModelNode &/*node*/)
|
||||
|
||||
void DebugView::nodeOrderChanged(const NodeListProperty &listProperty)
|
||||
{
|
||||
Q_UNUSED(listProperty)
|
||||
if (isDebugViewEnabled()) {
|
||||
QTextStream message;
|
||||
QString string;
|
||||
|
||||
@@ -60,7 +60,6 @@ const int startItemOffset = 96;
|
||||
|
||||
const qreal labelFontSize = 10;
|
||||
const qreal labelShowThreshold = 0.25; // Everything lower than that will hide all labels
|
||||
const qreal defaultDpi = 96.0;
|
||||
|
||||
void drawIcon(QPainter *painter,
|
||||
int x,
|
||||
|
||||
@@ -420,6 +420,8 @@ void TimelineView::customNotification(const AbstractView * /*view*/,
|
||||
const QList<ModelNode> &nodeList,
|
||||
const QList<QVariant> &data)
|
||||
{
|
||||
Q_UNUSED(nodeList)
|
||||
Q_UNUSED(data)
|
||||
if (identifier == QStringLiteral("reset QmlPuppet")) {
|
||||
QmlTimeline timeline = widget()->graphicsScene()->currentTimeline();
|
||||
if (timeline.isValid())
|
||||
|
||||
Reference in New Issue
Block a user