From ad2b9b003b5d6500dee7e221d25ec708b7c475ae Mon Sep 17 00:00:00 2001 From: CDtoo Date: Fri, 23 Mar 2018 10:46:48 +0800 Subject: [PATCH] little warning --- imagelook.cpp | 1 + myimagelist.cpp | 2 +- mypixitem.cpp | 1 + variatedialog.cpp | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/imagelook.cpp b/imagelook.cpp index 35283ed..039f009 100644 --- a/imagelook.cpp +++ b/imagelook.cpp @@ -83,6 +83,7 @@ void ImageLook::showImage(Mat matL,QString nameL,QString controlName) void ImageLook::mouseDoubleClickEvent(QMouseEvent *e) { + Q_UNUSED(e) ////////***********图片复原代码**************///// pixItem->setPos(0,0); pixItem->setScaleValue(1); diff --git a/myimagelist.cpp b/myimagelist.cpp index 0799ef6..f35e76a 100644 --- a/myimagelist.cpp +++ b/myimagelist.cpp @@ -180,7 +180,7 @@ void MyImageList::receiveAction()//收到消息刷新列表 void MyImageList::showTableView(Mat imageData,QString textData,QString strVariable,int rows) { - + Q_UNUSED(rows) ui->tableView->setEditTriggers(QAbstractItemView::NoEditTriggers); ui->tableView->setAutoScroll(true); QStandardItemModel *model = new QStandardItemModel; diff --git a/mypixitem.cpp b/mypixitem.cpp index 946f96b..7d00a21 100644 --- a/mypixitem.cpp +++ b/mypixitem.cpp @@ -60,6 +60,7 @@ void MyPixItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *) //双击复位 void MyPixItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) { + Q_UNUSED(event) setPos(0,0); m_scaleValue = 0; setScale(1); diff --git a/variatedialog.cpp b/variatedialog.cpp index 1c7a5dc..c2de3bf 100644 --- a/variatedialog.cpp +++ b/variatedialog.cpp @@ -1,5 +1,5 @@ #include "variatedialog.h" -#include "ui_variatedialog.h" +//#include "ui_variatedialog.h" #include "mainwindow.h" #include #include