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 &targetId,
|
||||||
const QString &customId)
|
const QString &customId)
|
||||||
: QDialog(parent)
|
: QDialog(parent)
|
||||||
, m_defaults(std::make_unique<DefaultAnnotationsModel>())
|
|
||||||
, m_customId(customId)
|
|
||||||
, ui(std::make_unique<Ui::AnnotationEditorDialog>())
|
, ui(std::make_unique<Ui::AnnotationEditorDialog>())
|
||||||
, m_statusIsActive(false)
|
, m_customId(customId)
|
||||||
|
, m_defaults(std::make_unique<DefaultAnnotationsModel>())
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
setGlobal(m_isGlobal);
|
setGlobal(m_isGlobal);
|
||||||
|
|||||||
@@ -515,6 +515,7 @@ void DebugView::currentStateChanged(const ModelNode &/*node*/)
|
|||||||
|
|
||||||
void DebugView::nodeOrderChanged(const NodeListProperty &listProperty)
|
void DebugView::nodeOrderChanged(const NodeListProperty &listProperty)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(listProperty)
|
||||||
if (isDebugViewEnabled()) {
|
if (isDebugViewEnabled()) {
|
||||||
QTextStream message;
|
QTextStream message;
|
||||||
QString string;
|
QString string;
|
||||||
|
|||||||
@@ -60,7 +60,6 @@ const int startItemOffset = 96;
|
|||||||
|
|
||||||
const qreal labelFontSize = 10;
|
const qreal labelFontSize = 10;
|
||||||
const qreal labelShowThreshold = 0.25; // Everything lower than that will hide all labels
|
const qreal labelShowThreshold = 0.25; // Everything lower than that will hide all labels
|
||||||
const qreal defaultDpi = 96.0;
|
|
||||||
|
|
||||||
void drawIcon(QPainter *painter,
|
void drawIcon(QPainter *painter,
|
||||||
int x,
|
int x,
|
||||||
|
|||||||
@@ -420,6 +420,8 @@ void TimelineView::customNotification(const AbstractView * /*view*/,
|
|||||||
const QList<ModelNode> &nodeList,
|
const QList<ModelNode> &nodeList,
|
||||||
const QList<QVariant> &data)
|
const QList<QVariant> &data)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(nodeList)
|
||||||
|
Q_UNUSED(data)
|
||||||
if (identifier == QStringLiteral("reset QmlPuppet")) {
|
if (identifier == QStringLiteral("reset QmlPuppet")) {
|
||||||
QmlTimeline timeline = widget()->graphicsScene()->currentTimeline();
|
QmlTimeline timeline = widget()->graphicsScene()->currentTimeline();
|
||||||
if (timeline.isValid())
|
if (timeline.isValid())
|
||||||
|
|||||||
Reference in New Issue
Block a user