diff --git a/src/app/tape/dialogs/dialognewmeasurements.cpp b/src/app/tape/dialogs/dialognewmeasurements.cpp index 897af7bb7..11dbfa6bf 100644 --- a/src/app/tape/dialogs/dialognewmeasurements.cpp +++ b/src/app/tape/dialogs/dialognewmeasurements.cpp @@ -172,7 +172,7 @@ void DialogNewMeasurements::CurrentTypeChanged(int index) //--------------------------------------------------------------------------------------------------------------------- void DialogNewMeasurements::CurrentUnitChanged(int index) { - Q_UNUSED(index); + Q_UNUSED(index) if (MUnit() != Unit::Inch) { diff --git a/src/app/tape/dialogs/tapeconfigdialog.cpp b/src/app/tape/dialogs/tapeconfigdialog.cpp index 457a79e4c..fc8eb4fe1 100644 --- a/src/app/tape/dialogs/tapeconfigdialog.cpp +++ b/src/app/tape/dialogs/tapeconfigdialog.cpp @@ -160,7 +160,7 @@ void TapeConfigDialog::showEvent(QShowEvent *event) //--------------------------------------------------------------------------------------------------------------------- void TapeConfigDialog::resizeEvent(QResizeEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) // remember the size for the next time this dialog is opened, but only // if widget was already initialized, which rules out the resize at // dialog creating, which would diff --git a/src/app/tape/tmainwindow.cpp b/src/app/tape/tmainwindow.cpp index 5d1b11cd9..532cb0834 100644 --- a/src/app/tape/tmainwindow.cpp +++ b/src/app/tape/tmainwindow.cpp @@ -1344,7 +1344,7 @@ void TMainWindow::ShowMData() } catch(const VExceptionBadId &e) { - Q_UNUSED(e); + Q_UNUSED(e) MFields(false); return; } @@ -1403,7 +1403,7 @@ void TMainWindow::ShowMData() } catch (qmu::QmuParserError &e) { - Q_UNUSED(e); + Q_UNUSED(e) formula = meash->GetFormula(); } @@ -2309,7 +2309,7 @@ void TMainWindow::RefreshTable() } catch (qmu::QmuParserError &e) { - Q_UNUSED(e); + Q_UNUSED(e) formula = meash->GetFormula(); } @@ -2919,8 +2919,8 @@ bool TMainWindow::IgnoreLocking(int error, const QString &path) } return true; #else - Q_UNUSED(error); - Q_UNUSED(path); + Q_UNUSED(error) + Q_UNUSED(path) return true;// On older Qt lock assumed always taken. Allow user to ignore warning. #endif // QT_VERSION >= QT_VERSION_CHECK(5, 1, 0) } diff --git a/src/app/valentina/core/vformulaproperty.cpp b/src/app/valentina/core/vformulaproperty.cpp index 1686dc6d8..0b61498ac 100644 --- a/src/app/valentina/core/vformulaproperty.cpp +++ b/src/app/valentina/core/vformulaproperty.cpp @@ -94,8 +94,8 @@ Qt::ItemFlags VFormulaProperty::flags(int column) const QWidget* VFormulaProperty::createEditor(QWidget* parent, const QStyleOptionViewItem& options, const QAbstractItemDelegate* delegate) { - Q_UNUSED(options); - Q_UNUSED(delegate); + Q_UNUSED(options) + Q_UNUSED(delegate) VFormula formula = VProperty::d_ptr->VariantValue.value(); VFormulaPropertyEditor* tmpEditor = new VFormulaPropertyEditor(parent); diff --git a/src/app/valentina/dialogs/configdialog.cpp b/src/app/valentina/dialogs/configdialog.cpp index 5e12c1c10..fea931e05 100644 --- a/src/app/valentina/dialogs/configdialog.cpp +++ b/src/app/valentina/dialogs/configdialog.cpp @@ -149,7 +149,7 @@ void ConfigDialog::showEvent(QShowEvent *event) //--------------------------------------------------------------------------------------------------------------------- void ConfigDialog::resizeEvent(QResizeEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) // remember the size for the next time this dialog is opened, but only // if widget was already initialized, which rules out the resize at // dialog creating, which would diff --git a/src/app/valentina/dialogs/dialogincrements.cpp b/src/app/valentina/dialogs/dialogincrements.cpp index 7bebdfb62..2894f4d65 100644 --- a/src/app/valentina/dialogs/dialogincrements.cpp +++ b/src/app/valentina/dialogs/dialogincrements.cpp @@ -168,7 +168,7 @@ void DialogIncrements::FillIncrements() } catch (qmu::QmuParserError &e) { - Q_UNUSED(e); + Q_UNUSED(e) formula = incr->GetFormula(); } @@ -797,7 +797,7 @@ void DialogIncrements::ShowIncrementDetails() } catch(const VExceptionBadId &e) { - Q_UNUSED(e); + Q_UNUSED(e) EnableDetails(false); return; } @@ -820,7 +820,7 @@ void DialogIncrements::ShowIncrementDetails() } catch (qmu::QmuParserError &e) { - Q_UNUSED(e); + Q_UNUSED(e) formula = incr->GetFormula(); } diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 488977290..baae011ef 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -2558,7 +2558,7 @@ void MainWindow::FullParseFile() } catch (const VExceptionUndo &e) { - Q_UNUSED(e); + Q_UNUSED(e) /* If user want undo last operation before undo we need finish broken redo operation. For those we post event * myself. Later in method customEvent call undo.*/ QApplication::postEvent(this, new UndoEvent()); @@ -4704,8 +4704,8 @@ bool MainWindow::IgnoreLocking(int error, const QString &path) } return true; #else - Q_UNUSED(error); - Q_UNUSED(path); + Q_UNUSED(error) + Q_UNUSED(path) return true;// On older Qt lock assumed always taken. Allow user to ignore warning. #endif // QT_VERSION >= QT_VERSION_CHECK(5, 1, 0) } diff --git a/src/app/valentina/xml/vpattern.cpp b/src/app/valentina/xml/vpattern.cpp index fe2bc9d8d..7f4e79e9d 100644 --- a/src/app/valentina/xml/vpattern.cpp +++ b/src/app/valentina/xml/vpattern.cpp @@ -400,7 +400,7 @@ void VPattern::LiteParseTree(const Document &parse) } catch (const VExceptionUndo &e) { - Q_UNUSED(e); + Q_UNUSED(e) /* If user want undo last operation before undo we need finish broken redo operation. For those we post event * myself. Later in method customEvent call undo.*/ QApplication::postEvent(this, new UndoEvent()); @@ -1409,7 +1409,7 @@ void VPattern::ParseNodePoint(const QDomElement &domElement, const Document &par } catch (const VExceptionBadId &e) { // Possible case. Parent was deleted, but the node object is still here. - Q_UNUSED(e); + Q_UNUSED(e) return;// Just ignore } data->UpdateGObject(id, new VPointF(*point, point->name(), mx, my, idObject, Draw::Modeling)); @@ -2346,7 +2346,7 @@ void VPattern::ParseNodeSpline(const QDomElement &domElement, const Document &pa } catch (const VExceptionBadId &e) { // Possible case. Parent was deleted, but the node object is still here. - Q_UNUSED(e); + Q_UNUSED(e) return;// Just ignore } @@ -2392,7 +2392,7 @@ void VPattern::ParseNodeSplinePath(const QDomElement &domElement, const Document } catch (const VExceptionBadId &e) { // Possible case. Parent was deleted, but the node object is still here. - Q_UNUSED(e); + Q_UNUSED(e) return;// Just ignore } VNodeSplinePath::Create(this, data, id, idObject, parse, Source::FromFile, "", idTool); @@ -2521,7 +2521,7 @@ void VPattern::ParseNodeEllipticalArc(const QDomElement &domElement, const Docum } catch (const VExceptionBadId &e) { // Possible case. Parent was deleted, but the node object is still here. - Q_UNUSED(e); + Q_UNUSED(e) return;// Just ignore } arc->setIdObject(idObject); @@ -2556,7 +2556,7 @@ void VPattern::ParseNodeArc(const QDomElement &domElement, const Document &parse } catch (const VExceptionBadId &e) { // Possible case. Parent was deleted, but the node object is still here. - Q_UNUSED(e); + Q_UNUSED(e) return;// Just ignore } arc->setIdObject(idObject); diff --git a/src/libs/fervor/fvupdater.cpp b/src/libs/fervor/fvupdater.cpp index 9339eb5d8..cc9211c55 100644 --- a/src/libs/fervor/fvupdater.cpp +++ b/src/libs/fervor/fvupdater.cpp @@ -291,8 +291,8 @@ void FvUpdater::startDownloadFeed(const QUrl &url) }); connect(m_reply, &QNetworkReply::downloadProgress, [this](qint64 bytesRead, qint64 totalBytes) { - Q_UNUSED(bytesRead); - Q_UNUSED(totalBytes); + Q_UNUSED(bytesRead) + Q_UNUSED(totalBytes) if (m_httpRequestAborted) { diff --git a/src/libs/ifc/xml/vabstractconverter.cpp b/src/libs/ifc/xml/vabstractconverter.cpp index 5bbcef7c9..aa1a2be00 100644 --- a/src/libs/ifc/xml/vabstractconverter.cpp +++ b/src/libs/ifc/xml/vabstractconverter.cpp @@ -307,7 +307,7 @@ void VAbstractConverter::ValidateInputFile(const QString ¤tSchema) const } catch(const VException &exp) { // Nope, we can't. - Q_UNUSED(exp); + Q_UNUSED(exp) throw e; } } diff --git a/src/libs/ifc/xml/vdomdocument.cpp b/src/libs/ifc/xml/vdomdocument.cpp index d2499b4fd..aff76405c 100644 --- a/src/libs/ifc/xml/vdomdocument.cpp +++ b/src/libs/ifc/xml/vdomdocument.cpp @@ -105,8 +105,8 @@ inline qint64 MessageHandler::column() const void MessageHandler::handleMessage(QtMsgType type, const QString &description, const QUrl &identifier, const QSourceLocation &sourceLocation) { - Q_UNUSED(type); - Q_UNUSED(identifier); + Q_UNUSED(type) + Q_UNUSED(identifier) m_messageType = type; m_description = description; diff --git a/src/libs/qmuparser/qmuparser.cpp b/src/libs/qmuparser/qmuparser.cpp index 68f8dccc3..807104844 100644 --- a/src/libs/qmuparser/qmuparser.cpp +++ b/src/libs/qmuparser/qmuparser.cpp @@ -348,9 +348,9 @@ void QmuParser::InitOprt() //--------------------------------------------------------------------------------------------------------------------- void QmuParser::OnDetectVar(const QString &pExpr, int &nStart, int &nEnd) { - Q_UNUSED(pExpr); - Q_UNUSED(nStart); - Q_UNUSED(nEnd); + Q_UNUSED(pExpr) + Q_UNUSED(nStart) + Q_UNUSED(nEnd) // this is just sample code to illustrate modifying variable names on the fly. // I'm not sure anyone really needs such a feature... /* diff --git a/src/libs/qmuparser/qmuparserbase.cpp b/src/libs/qmuparser/qmuparserbase.cpp index 6c61fa9b2..0facdfd49 100644 --- a/src/libs/qmuparser/qmuparserbase.cpp +++ b/src/libs/qmuparser/qmuparserbase.cpp @@ -218,9 +218,9 @@ void QmuParserBase::ReInit() const //--------------------------------------------------------------------------------------------------------------------- void QmuParserBase::OnDetectVar(const QString &pExpr, int &nStart, int &nEnd) { - Q_UNUSED(pExpr); - Q_UNUSED(nStart); - Q_UNUSED(nEnd); + Q_UNUSED(pExpr) + Q_UNUSED(nStart) + Q_UNUSED(nEnd) } //--------------------------------------------------------------------------------------------------------------------- diff --git a/src/libs/vdxf/dxflib/dl_dxf.cpp b/src/libs/vdxf/dxflib/dl_dxf.cpp index 5a245c236..01ed1b1f4 100644 --- a/src/libs/vdxf/dxflib/dl_dxf.cpp +++ b/src/libs/vdxf/dxflib/dl_dxf.cpp @@ -3846,7 +3846,7 @@ void DL_Dxf::writeHatch2(DL_WriterA& dw, const DL_Attributes& attrib) const { - Q_UNUSED(attrib); + Q_UNUSED(attrib) dw.dxfInt(75, 0); // odd parity dw.dxfInt(76, 1); // pattern type @@ -3904,7 +3904,7 @@ void DL_Dxf::writeHatchLoop1(DL_WriterA& dw, void DL_Dxf::writeHatchLoop2(DL_WriterA& dw, const DL_HatchLoopData& data) { - Q_UNUSED(data); + Q_UNUSED(data) dw.dxfInt(97, 0); } diff --git a/src/libs/vlayout/vgraphicsfillitem.cpp b/src/libs/vlayout/vgraphicsfillitem.cpp index 4edcb17cb..d619b1278 100644 --- a/src/libs/vlayout/vgraphicsfillitem.cpp +++ b/src/libs/vlayout/vgraphicsfillitem.cpp @@ -40,8 +40,8 @@ VGraphicsFillItem::~VGraphicsFillItem() //--------------------------------------------------------------------------------------------------------------------- void VGraphicsFillItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) { - Q_UNUSED(option); - Q_UNUSED(widget); + Q_UNUSED(option) + Q_UNUSED(widget) painter->save(); painter->setBrush(painter->pen().color()); painter->drawPath(path()); diff --git a/src/libs/vlayout/vposter.cpp b/src/libs/vlayout/vposter.cpp index a59e16898..5f52cb1b5 100644 --- a/src/libs/vlayout/vposter.cpp +++ b/src/libs/vlayout/vposter.cpp @@ -244,7 +244,7 @@ int VPoster::CountColumns(int width) const //--------------------------------------------------------------------------------------------------------------------- PosterData VPoster::Cut(int i, int j, const QRect &imageRect) const { - Q_UNUSED(imageRect); + Q_UNUSED(imageRect) const int x = j*PageRect().width() - j*static_cast(allowence); const int y = i*PageRect().height() - i*static_cast(allowence); diff --git a/src/libs/vmisc/backport/qcommandlineparser.cpp b/src/libs/vmisc/backport/qcommandlineparser.cpp index ff70eaae1..0294ceb0a 100644 --- a/src/libs/vmisc/backport/qcommandlineparser.cpp +++ b/src/libs/vmisc/backport/qcommandlineparser.cpp @@ -426,7 +426,7 @@ void QCommandLineParser::process(const QStringList &arguments) void QCommandLineParser::process(const QCoreApplication &app) { // QCoreApplication::arguments() is static, but the app instance must exist so we require it as parameter - Q_UNUSED(app); + Q_UNUSED(app) process(QCoreApplication::arguments()); } diff --git a/src/libs/vmisc/def.cpp b/src/libs/vmisc/def.cpp index 14ee3f3b1..8eba5da5e 100644 --- a/src/libs/vmisc/def.cpp +++ b/src/libs/vmisc/def.cpp @@ -454,9 +454,9 @@ void SetOverrideCursor(const QString &pixmapPath, int hotX, int hotY) QApplication::setOverrideCursor(QCursor(newPixmap, hotX, hotY)); } #else - Q_UNUSED(pixmapPath); - Q_UNUSED(hotX); - Q_UNUSED(hotY); + Q_UNUSED(pixmapPath) + Q_UNUSED(hotX) + Q_UNUSED(hotY) #endif } @@ -478,7 +478,7 @@ void SetOverrideCursor(Qt::CursorShape shape) } #else - Q_UNUSED(shape); + Q_UNUSED(shape) #endif } @@ -501,7 +501,7 @@ void RestoreOverrideCursor(const QString &pixmapPath) QApplication::restoreOverrideCursor(); } #else - Q_UNUSED(pixmapPath); + Q_UNUSED(pixmapPath) #endif } @@ -523,7 +523,7 @@ void RestoreOverrideCursor(Qt::CursorShape shape) } #else - Q_UNUSED(shape); + Q_UNUSED(shape) #endif } diff --git a/src/libs/vmisc/vlockguard.h b/src/libs/vmisc/vlockguard.h index c6864ac52..fcbf57e65 100644 --- a/src/libs/vmisc/vlockguard.h +++ b/src/libs/vmisc/vlockguard.h @@ -189,9 +189,9 @@ bool VLockGuard::TryLock(const QString &lockName, int stale, int timeou #endif } #else - Q_UNUSED(lockName); - Q_UNUSED(stale); - Q_UNUSED(timeout); + Q_UNUSED(lockName) + Q_UNUSED(stale) + Q_UNUSED(timeout) #endif return res; } diff --git a/src/libs/vpatterndb/variables/vinternalvariable.cpp b/src/libs/vpatterndb/variables/vinternalvariable.cpp index fe7c7a28f..d22cfa9bd 100644 --- a/src/libs/vpatterndb/variables/vinternalvariable.cpp +++ b/src/libs/vpatterndb/variables/vinternalvariable.cpp @@ -57,7 +57,7 @@ VInternalVariable::~VInternalVariable() //--------------------------------------------------------------------------------------------------------------------- bool VInternalVariable::Filter(quint32 id) { - Q_UNUSED(id); + Q_UNUSED(id) return false; } diff --git a/src/libs/vpropertyexplorer/plugins/vcolorproperty.cpp b/src/libs/vpropertyexplorer/plugins/vcolorproperty.cpp index e0eb6fc4c..948a2879d 100644 --- a/src/libs/vpropertyexplorer/plugins/vcolorproperty.cpp +++ b/src/libs/vpropertyexplorer/plugins/vcolorproperty.cpp @@ -62,8 +62,8 @@ QVariant VColorProperty::data (int column, int role) const QWidget* VColorProperty::createEditor(QWidget* parent, const QStyleOptionViewItem& options, const QAbstractItemDelegate* delegate) { - Q_UNUSED(options); - Q_UNUSED(delegate); + Q_UNUSED(options) + Q_UNUSED(delegate) VColorPropertyEditor* tmpWidget = new VColorPropertyEditor(parent); tmpWidget->setLocale(parent->locale()); diff --git a/src/libs/vpropertyexplorer/plugins/vemptyproperty.cpp b/src/libs/vpropertyexplorer/plugins/vemptyproperty.cpp index 38ba60ee7..b1e71c06a 100644 --- a/src/libs/vpropertyexplorer/plugins/vemptyproperty.cpp +++ b/src/libs/vpropertyexplorer/plugins/vemptyproperty.cpp @@ -77,9 +77,9 @@ QVariant VEmptyProperty::data (int column, int role) const QWidget* VEmptyProperty::createEditor(QWidget * parent, const QStyleOptionViewItem& options, const QAbstractItemDelegate* delegate) { - Q_UNUSED(options); - Q_UNUSED(parent); - Q_UNUSED(delegate); + Q_UNUSED(options) + Q_UNUSED(parent) + Q_UNUSED(delegate) return NULL; } @@ -88,7 +88,7 @@ QWidget* VEmptyProperty::createEditor(QWidget * parent, const QStyleOptionViewIt //! Gets the data from the widget QVariant VEmptyProperty::getEditorData(const QWidget *editor) const { - Q_UNUSED(editor); + Q_UNUSED(editor) return QVariant(); } @@ -96,7 +96,7 @@ QVariant VEmptyProperty::getEditorData(const QWidget *editor) const //! Returns item flags Qt::ItemFlags VEmptyProperty::flags(int column) const { - Q_UNUSED(column); + Q_UNUSED(column) return Qt::ItemIsEnabled | Qt::ItemIsSelectable; } diff --git a/src/libs/vpropertyexplorer/plugins/venumproperty.cpp b/src/libs/vpropertyexplorer/plugins/venumproperty.cpp index 24495253b..4851d2086 100644 --- a/src/libs/vpropertyexplorer/plugins/venumproperty.cpp +++ b/src/libs/vpropertyexplorer/plugins/venumproperty.cpp @@ -72,8 +72,8 @@ QVariant VEnumProperty::data (int column, int role) const QWidget* VEnumProperty::createEditor(QWidget * parent, const QStyleOptionViewItem& options, const QAbstractItemDelegate* delegate) { - Q_UNUSED(options); - Q_UNUSED(delegate); + Q_UNUSED(options) + Q_UNUSED(delegate) QComboBox* tmpEditor = new QComboBox(parent); tmpEditor->clear(); tmpEditor->setLocale(parent->locale()); diff --git a/src/libs/vpropertyexplorer/plugins/vfileproperty.cpp b/src/libs/vpropertyexplorer/plugins/vfileproperty.cpp index e5f900321..7fb301912 100644 --- a/src/libs/vpropertyexplorer/plugins/vfileproperty.cpp +++ b/src/libs/vpropertyexplorer/plugins/vfileproperty.cpp @@ -84,7 +84,7 @@ QVariant VFileProperty::data (int column, int role) const QWidget* VFileProperty::createEditor(QWidget * parent, const QStyleOptionViewItem& options, const QAbstractItemDelegate* delegate) { - Q_UNUSED(options); + Q_UNUSED(options) VFileEditWidget* tmpWidget = new VFileEditWidget(parent); if (delegate) diff --git a/src/libs/vpropertyexplorer/plugins/vlinecolorproperty.cpp b/src/libs/vpropertyexplorer/plugins/vlinecolorproperty.cpp index c2f04a636..968b0f792 100644 --- a/src/libs/vpropertyexplorer/plugins/vlinecolorproperty.cpp +++ b/src/libs/vpropertyexplorer/plugins/vlinecolorproperty.cpp @@ -85,8 +85,8 @@ QVariant VLineColorProperty::data(int column, int role) const QWidget *VLineColorProperty::createEditor(QWidget *parent, const QStyleOptionViewItem &options, const QAbstractItemDelegate *delegate) { - Q_UNUSED(options); - Q_UNUSED(delegate); + Q_UNUSED(options) + Q_UNUSED(delegate) QComboBox* tmpEditor = new QComboBox(parent); int size = tmpEditor->iconSize().height(); diff --git a/src/libs/vpropertyexplorer/plugins/vlinetypeproperty.cpp b/src/libs/vpropertyexplorer/plugins/vlinetypeproperty.cpp index ece3d58bd..2aa93e811 100644 --- a/src/libs/vpropertyexplorer/plugins/vlinetypeproperty.cpp +++ b/src/libs/vpropertyexplorer/plugins/vlinetypeproperty.cpp @@ -82,8 +82,8 @@ QVariant VLineTypeProperty::data(int column, int role) const QWidget *VLineTypeProperty::createEditor(QWidget *parent, const QStyleOptionViewItem &options, const QAbstractItemDelegate *delegate) { - Q_UNUSED(options); - Q_UNUSED(delegate); + Q_UNUSED(options) + Q_UNUSED(delegate) QComboBox* tmpEditor = new QComboBox(parent); tmpEditor->clear(); tmpEditor->setLocale(parent->locale()); diff --git a/src/libs/vpropertyexplorer/plugins/vnumberproperty.cpp b/src/libs/vpropertyexplorer/plugins/vnumberproperty.cpp index b1524d5e6..be1102820 100644 --- a/src/libs/vpropertyexplorer/plugins/vnumberproperty.cpp +++ b/src/libs/vpropertyexplorer/plugins/vnumberproperty.cpp @@ -58,8 +58,8 @@ VIntegerProperty::VIntegerProperty(const QString &name) QWidget* VIntegerProperty::createEditor(QWidget * parent, const QStyleOptionViewItem& options, const QAbstractItemDelegate* delegate) { - Q_UNUSED(options); - Q_UNUSED(delegate); + Q_UNUSED(options) + Q_UNUSED(delegate) QSpinBox* tmpEditor = new QSpinBox(parent); tmpEditor->setLocale(parent->locale()); @@ -166,8 +166,8 @@ VDoubleProperty::VDoubleProperty(const QString &name) QWidget* VDoubleProperty::createEditor(QWidget * parent, const QStyleOptionViewItem& options, const QAbstractItemDelegate* delegate) { - Q_UNUSED(options); - Q_UNUSED(delegate); + Q_UNUSED(options) + Q_UNUSED(delegate) QDoubleSpinBox* tmpEditor = new QDoubleSpinBox(parent); tmpEditor->setLocale(parent->locale()); tmpEditor->setMinimum(minValue); diff --git a/src/libs/vpropertyexplorer/plugins/vobjectproperty.cpp b/src/libs/vpropertyexplorer/plugins/vobjectproperty.cpp index 0ed8c347f..ab3839f70 100644 --- a/src/libs/vpropertyexplorer/plugins/vobjectproperty.cpp +++ b/src/libs/vpropertyexplorer/plugins/vobjectproperty.cpp @@ -65,8 +65,8 @@ QVariant VObjectProperty::data (int column, int role) const QWidget* VObjectProperty::createEditor(QWidget * parent, const QStyleOptionViewItem& options, const QAbstractItemDelegate* delegate) { - Q_UNUSED(options); - Q_UNUSED(delegate); + Q_UNUSED(options) + Q_UNUSED(delegate) QComboBox* tmpEditor = new QComboBox(parent); tmpEditor->clear(); tmpEditor->setLocale(parent->locale()); diff --git a/src/libs/vpropertyexplorer/plugins/vshortcutproperty.cpp b/src/libs/vpropertyexplorer/plugins/vshortcutproperty.cpp index 2a7e60400..811569d39 100644 --- a/src/libs/vpropertyexplorer/plugins/vshortcutproperty.cpp +++ b/src/libs/vpropertyexplorer/plugins/vshortcutproperty.cpp @@ -58,7 +58,7 @@ QVariant VShortcutProperty::data (int column, int role) const QWidget* VShortcutProperty::createEditor(QWidget * parent, const QStyleOptionViewItem& options, const QAbstractItemDelegate* delegate) { - Q_UNUSED(options); + Q_UNUSED(options) VShortcutEditWidget* tmpWidget = new VShortcutEditWidget(parent); if (delegate) diff --git a/src/libs/vpropertyexplorer/plugins/vstringproperty.cpp b/src/libs/vpropertyexplorer/plugins/vstringproperty.cpp index 692297516..1fd2774ca 100644 --- a/src/libs/vpropertyexplorer/plugins/vstringproperty.cpp +++ b/src/libs/vpropertyexplorer/plugins/vstringproperty.cpp @@ -56,8 +56,8 @@ VPE::VStringProperty::VStringProperty(const QString &name) QWidget *VPE::VStringProperty::createEditor(QWidget *parent, const QStyleOptionViewItem &options, const QAbstractItemDelegate *delegate) { - Q_UNUSED(options); - Q_UNUSED(delegate); + Q_UNUSED(options) + Q_UNUSED(delegate) QLineEdit* tmpEditor = new QLineEdit(parent); tmpEditor->setLocale(parent->locale()); diff --git a/src/libs/vpropertyexplorer/vproperty.cpp b/src/libs/vpropertyexplorer/vproperty.cpp index 17b06bba3..9ba92349d 100644 --- a/src/libs/vpropertyexplorer/vproperty.cpp +++ b/src/libs/vpropertyexplorer/vproperty.cpp @@ -105,10 +105,10 @@ bool VProperty::setData(const QVariant &data, int role) bool VProperty::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index, const QAbstractItemDelegate *delegate) const { - Q_UNUSED(painter); - Q_UNUSED(option); - Q_UNUSED(index); - Q_UNUSED(delegate); + Q_UNUSED(painter) + Q_UNUSED(option) + Q_UNUSED(index) + Q_UNUSED(delegate) return false; } @@ -117,8 +117,8 @@ bool VProperty::paint(QPainter *painter, const QStyleOptionViewItem &option, con QWidget* VProperty::createEditor(QWidget * parent, const QStyleOptionViewItem& options, const QAbstractItemDelegate* delegate) { - Q_UNUSED(options); - Q_UNUSED(delegate); + Q_UNUSED(options) + Q_UNUSED(delegate) QItemEditorFactory *factory = new QItemEditorFactory; QItemEditorCreatorBase *lineCreator = new QStandardItemEditorCreator(); @@ -419,7 +419,7 @@ void VProperty::setPropertyType(const Property &type) void VProperty::UpdateParent(const QVariant &value) { - Q_UNUSED(value); + Q_UNUSED(value) } void VProperty::ValueChildChanged(const QVariant &value, int typeForParent) diff --git a/src/libs/vpropertyexplorer/vpropertymodel.cpp b/src/libs/vpropertyexplorer/vpropertymodel.cpp index 9dd573963..95d6978e0 100644 --- a/src/libs/vpropertyexplorer/vpropertymodel.cpp +++ b/src/libs/vpropertyexplorer/vpropertymodel.cpp @@ -251,7 +251,7 @@ int VPropertyModel::rowCount ( const QModelIndex & parent ) const //! Returns the number of columns int VPropertyModel::columnCount ( const QModelIndex & parent) const { - Q_UNUSED(parent); + Q_UNUSED(parent) return 2; } diff --git a/src/libs/vtools/dialogs/tools/dialogmove.cpp b/src/libs/vtools/dialogs/tools/dialogmove.cpp index a2f3ba643..eaf85799b 100644 --- a/src/libs/vtools/dialogs/tools/dialogmove.cpp +++ b/src/libs/vtools/dialogs/tools/dialogmove.cpp @@ -243,8 +243,8 @@ void DialogMove::ShowDialog(bool click) //--------------------------------------------------------------------------------------------------------------------- void DialogMove::ChosenObject(quint32 id, const SceneObject &type) { - Q_UNUSED(id); - Q_UNUSED(type); + Q_UNUSED(id) + Q_UNUSED(type) // do nothing } diff --git a/src/libs/vtools/dialogs/tools/dialogtool.cpp b/src/libs/vtools/dialogs/tools/dialogtool.cpp index 3b577fe76..cb7759961 100644 --- a/src/libs/vtools/dialogs/tools/dialogtool.cpp +++ b/src/libs/vtools/dialogs/tools/dialogtool.cpp @@ -747,16 +747,16 @@ void DialogTool::CheckState() */ void DialogTool::ChosenObject(quint32 id, const SceneObject &type) { - Q_UNUSED(id); - Q_UNUSED(type); + Q_UNUSED(id) + Q_UNUSED(type) } //--------------------------------------------------------------------------------------------------------------------- void DialogTool::SelectedObject(bool selected, quint32 object, quint32 tool) { - Q_UNUSED(selected); - Q_UNUSED(object); - Q_UNUSED(tool); + Q_UNUSED(selected) + Q_UNUSED(object) + Q_UNUSED(tool) } //--------------------------------------------------------------------------------------------------------------------- @@ -957,13 +957,13 @@ QString DialogTool::getPointName() const //--------------------------------------------------------------------------------------------------------------------- void DialogTool::ShowDialog(bool click) { - Q_UNUSED(click); + Q_UNUSED(click) } //--------------------------------------------------------------------------------------------------------------------- void DialogTool::Build(const Tool &type) { - Q_UNUSED(type); + Q_UNUSED(type) } //--------------------------------------------------------------------------------------------------------------------- diff --git a/src/libs/vtools/tools/drawTools/operation/flipping/vtoolflippingbyaxis.cpp b/src/libs/vtools/tools/drawTools/operation/flipping/vtoolflippingbyaxis.cpp index f160fb284..9751a2dc5 100644 --- a/src/libs/vtools/tools/drawTools/operation/flipping/vtoolflippingbyaxis.cpp +++ b/src/libs/vtools/tools/drawTools/operation/flipping/vtoolflippingbyaxis.cpp @@ -228,7 +228,7 @@ void VToolFlippingByAxis::contextMenuEvent(QGraphicsSceneContextMenuEvent *event } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/operation/flipping/vtoolflippingbyline.cpp b/src/libs/vtools/tools/drawTools/operation/flipping/vtoolflippingbyline.cpp index fc35a2836..af27d8410 100644 --- a/src/libs/vtools/tools/drawTools/operation/flipping/vtoolflippingbyline.cpp +++ b/src/libs/vtools/tools/drawTools/operation/flipping/vtoolflippingbyline.cpp @@ -208,7 +208,7 @@ void VToolFlippingByLine::contextMenuEvent(QGraphicsSceneContextMenuEvent *event } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/operation/vabstractoperation.cpp b/src/libs/vtools/tools/drawTools/operation/vabstractoperation.cpp index 3c38954f1..3d10e3fcc 100644 --- a/src/libs/vtools/tools/drawTools/operation/vabstractoperation.cpp +++ b/src/libs/vtools/tools/drawTools/operation/vabstractoperation.cpp @@ -90,9 +90,9 @@ void VAbstractOperation::GroupVisibility(quint32 object, bool visible) //--------------------------------------------------------------------------------------------------------------------- void VAbstractOperation::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) { - Q_UNUSED(painter); - Q_UNUSED(option); - Q_UNUSED(widget); + Q_UNUSED(painter) + Q_UNUSED(option) + Q_UNUSED(widget) } //--------------------------------------------------------------------------------------------------------------------- @@ -370,7 +370,7 @@ void VAbstractOperation::DeleteFromLabel() } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/operation/vtoolmove.cpp b/src/libs/vtools/tools/drawTools/operation/vtoolmove.cpp index 931c2beba..0e6617b06 100644 --- a/src/libs/vtools/tools/drawTools/operation/vtoolmove.cpp +++ b/src/libs/vtools/tools/drawTools/operation/vtoolmove.cpp @@ -352,7 +352,7 @@ void VToolMove::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/operation/vtoolrotation.cpp b/src/libs/vtools/tools/drawTools/operation/vtoolrotation.cpp index 889d0b81f..20d31eb22 100644 --- a/src/libs/vtools/tools/drawTools/operation/vtoolrotation.cpp +++ b/src/libs/vtools/tools/drawTools/operation/vtoolrotation.cpp @@ -340,7 +340,7 @@ void VToolRotation::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolcurve/vabstractspline.cpp b/src/libs/vtools/tools/drawTools/toolcurve/vabstractspline.cpp index 4eb084624..b075557b0 100644 --- a/src/libs/vtools/tools/drawTools/toolcurve/vabstractspline.cpp +++ b/src/libs/vtools/tools/drawTools/toolcurve/vabstractspline.cpp @@ -150,7 +150,7 @@ void VAbstractSpline::SetFactor(qreal factor) // cppcheck-suppress unusedFunction void VAbstractSpline::hoverEnterEvent(QGraphicsSceneHoverEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) const QSharedPointer curve = VAbstractTool::data.GeometricObject(id); this->setPen(QPen(CorrectColor(curve->GetColor()), qApp->toPixel(WidthMainLine(*VAbstractTool::data.GetPatternUnit()))/factor, Qt::SolidLine, @@ -168,7 +168,7 @@ void VAbstractSpline::hoverEnterEvent(QGraphicsSceneHoverEvent *event) // cppcheck-suppress unusedFunction void VAbstractSpline::hoverLeaveEvent(QGraphicsSceneHoverEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) const QSharedPointer curve = VAbstractTool::data.GeometricObject(id); this->setPen(QPen(CorrectColor(curve->GetColor()), qApp->toPixel(WidthHairLine(*VAbstractTool::data.GetPatternUnit()))/factor)); @@ -217,7 +217,7 @@ void VAbstractSpline::keyReleaseEvent(QKeyEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } break; @@ -400,6 +400,6 @@ QString VAbstractSpline::name() const //--------------------------------------------------------------------------------------------------------------------- void VAbstractSpline::GroupVisibility(quint32 object, bool visible) { - Q_UNUSED(object); + Q_UNUSED(object) setVisible(visible); } diff --git a/src/libs/vtools/tools/drawTools/toolcurve/vtoolarc.cpp b/src/libs/vtools/tools/drawTools/toolcurve/vtoolarc.cpp index 2ef780a52..25d7dfdd9 100644 --- a/src/libs/vtools/tools/drawTools/toolcurve/vtoolarc.cpp +++ b/src/libs/vtools/tools/drawTools/toolcurve/vtoolarc.cpp @@ -316,7 +316,7 @@ void VToolArc::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolcurve/vtoolarcwithlength.cpp b/src/libs/vtools/tools/drawTools/toolcurve/vtoolarcwithlength.cpp index ee4e4e215..dd76cad3b 100644 --- a/src/libs/vtools/tools/drawTools/toolcurve/vtoolarcwithlength.cpp +++ b/src/libs/vtools/tools/drawTools/toolcurve/vtoolarcwithlength.cpp @@ -279,7 +279,7 @@ void VToolArcWithLength::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolcurve/vtoolcubicbezier.cpp b/src/libs/vtools/tools/drawTools/toolcurve/vtoolcubicbezier.cpp index 46fba40c4..b178efc2f 100644 --- a/src/libs/vtools/tools/drawTools/toolcurve/vtoolcubicbezier.cpp +++ b/src/libs/vtools/tools/drawTools/toolcurve/vtoolcubicbezier.cpp @@ -175,7 +175,7 @@ void VToolCubicBezier::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolcurve/vtoolcubicbezierpath.cpp b/src/libs/vtools/tools/drawTools/toolcurve/vtoolcubicbezierpath.cpp index df6976627..a144235f9 100644 --- a/src/libs/vtools/tools/drawTools/toolcurve/vtoolcubicbezierpath.cpp +++ b/src/libs/vtools/tools/drawTools/toolcurve/vtoolcubicbezierpath.cpp @@ -186,7 +186,7 @@ void VToolCubicBezierPath::contextMenuEvent(QGraphicsSceneContextMenuEvent *even } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolcurve/vtoolellipticalarc.cpp b/src/libs/vtools/tools/drawTools/toolcurve/vtoolellipticalarc.cpp index ec2a03131..20ca1b786 100644 --- a/src/libs/vtools/tools/drawTools/toolcurve/vtoolellipticalarc.cpp +++ b/src/libs/vtools/tools/drawTools/toolcurve/vtoolellipticalarc.cpp @@ -384,7 +384,7 @@ void VToolEllipticalArc::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolcurve/vtoolspline.cpp b/src/libs/vtools/tools/drawTools/toolcurve/vtoolspline.cpp index ed60820d5..975986592 100644 --- a/src/libs/vtools/tools/drawTools/toolcurve/vtoolspline.cpp +++ b/src/libs/vtools/tools/drawTools/toolcurve/vtoolspline.cpp @@ -277,7 +277,7 @@ void VToolSpline::ShowVisualization(bool show) void VToolSpline::ControlPointChangePosition(const qint32 &indexSpline, const SplinePointPosition &position, const QPointF &pos) { - Q_UNUSED(indexSpline); + Q_UNUSED(indexSpline) const QSharedPointer spline = VAbstractTool::data.GeometricObject(id); const VSpline spl = CorrectedSpline(*spline, position, pos); @@ -305,7 +305,7 @@ void VToolSpline::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolcurve/vtoolsplinepath.cpp b/src/libs/vtools/tools/drawTools/toolcurve/vtoolsplinepath.cpp index 270ffa1c4..d6110f6b3 100644 --- a/src/libs/vtools/tools/drawTools/toolcurve/vtoolsplinepath.cpp +++ b/src/libs/vtools/tools/drawTools/toolcurve/vtoolsplinepath.cpp @@ -377,7 +377,7 @@ void VToolSplinePath::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/tooldoublepoint/vtooldoublepoint.cpp b/src/libs/vtools/tools/drawTools/toolpoint/tooldoublepoint/vtooldoublepoint.cpp index d530583f8..eefa4484f 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/tooldoublepoint/vtooldoublepoint.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/tooldoublepoint/vtooldoublepoint.cpp @@ -330,7 +330,7 @@ void VToolDoublePoint::keyReleaseEvent(QKeyEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } break; diff --git a/src/libs/vtools/tools/drawTools/toolpoint/tooldoublepoint/vtooltruedarts.cpp b/src/libs/vtools/tools/drawTools/toolpoint/tooldoublepoint/vtooltruedarts.cpp index e612748ef..24f2521d0 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/tooldoublepoint/vtooltruedarts.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/tooldoublepoint/vtooltruedarts.cpp @@ -312,7 +312,7 @@ void VToolTrueDarts::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toolcut/vtoolcutarc.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toolcut/vtoolcutarc.cpp index 78e880945..4c9392d43 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toolcut/vtoolcutarc.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toolcut/vtoolcutarc.cpp @@ -202,7 +202,7 @@ void VToolCutArc::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toolcut/vtoolcutspline.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toolcut/vtoolcutspline.cpp index 1a9435b7c..433f29bea 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toolcut/vtoolcutspline.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toolcut/vtoolcutspline.cpp @@ -202,7 +202,7 @@ void VToolCutSpline::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toolcut/vtoolcutsplinepath.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toolcut/vtoolcutsplinepath.cpp index bb044d606..a9256571f 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toolcut/vtoolcutsplinepath.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toolcut/vtoolcutsplinepath.cpp @@ -290,7 +290,7 @@ void VToolCutSplinePath::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolalongline.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolalongline.cpp index adf05921a..6fb21587a 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolalongline.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolalongline.cpp @@ -107,7 +107,7 @@ void VToolAlongLine::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolbisector.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolbisector.cpp index 1f8fee2c9..ff670bb90 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolbisector.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolbisector.cpp @@ -257,7 +257,7 @@ void VToolBisector::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolcurveintersectaxis.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolcurveintersectaxis.cpp index dde7fd06b..478033be4 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolcurveintersectaxis.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolcurveintersectaxis.cpp @@ -271,7 +271,7 @@ void VToolCurveIntersectAxis::contextMenuEvent(QGraphicsSceneContextMenuEvent *e } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolendline.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolendline.cpp index d4dae1598..828b5c12c 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolendline.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolendline.cpp @@ -208,7 +208,7 @@ void VToolEndLine::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolheight.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolheight.cpp index 872cf464e..83a79bef4 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolheight.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolheight.cpp @@ -215,7 +215,7 @@ void VToolHeight::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoollineintersectaxis.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoollineintersectaxis.cpp index 21463f151..6a145ed1f 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoollineintersectaxis.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoollineintersectaxis.cpp @@ -267,7 +267,7 @@ void VToolLineIntersectAxis::contextMenuEvent(QGraphicsSceneContextMenuEvent *ev } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolnormal.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolnormal.cpp index 8facfde80..f9fb7335b 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolnormal.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolnormal.cpp @@ -235,7 +235,7 @@ void VToolNormal::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolshoulderpoint.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolshoulderpoint.cpp index 478434f82..ae5b1b6ea 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolshoulderpoint.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolshoulderpoint.cpp @@ -263,7 +263,7 @@ void VToolShoulderPoint::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolbasepoint.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolbasepoint.cpp index 540f989fc..04cd385ca 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolbasepoint.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolbasepoint.cpp @@ -151,7 +151,7 @@ VToolBasePoint *VToolBasePoint::Create(quint32 _id, const QString &nameActivPP, //--------------------------------------------------------------------------------------------------------------------- void VToolBasePoint::ShowVisualization(bool show) { - Q_UNUSED(show); //don't have any visualization for base point yet + Q_UNUSED(show) //don't have any visualization for base point yet } //--------------------------------------------------------------------------------------------------------------------- @@ -371,7 +371,7 @@ void VToolBasePoint::SaveOptions(QDomElement &tag, QSharedPointer &obj //--------------------------------------------------------------------------------------------------------------------- void VToolBasePoint::ReadToolAttributes(const QDomElement &domElement) { - Q_UNUSED(domElement); + Q_UNUSED(domElement) // This tool doesn't need read attributes from file. } @@ -404,7 +404,7 @@ void VToolBasePoint::contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ) catch(const VExceptionToolWasDeleted &e) { qCDebug(vTool, "Tool was deleted. Immediately leave method."); - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } qCDebug(vTool, "Context menu closed. Tool was not deleted."); diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoollineintersect.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoollineintersect.cpp index ff97a2bfa..54f54d459 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoollineintersect.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoollineintersect.cpp @@ -224,7 +224,7 @@ void VToolLineIntersect::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointfromarcandtangent.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointfromarcandtangent.cpp index 2c4422aab..73abb59e1 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointfromarcandtangent.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointfromarcandtangent.cpp @@ -296,7 +296,7 @@ void VToolPointFromArcAndTangent::contextMenuEvent(QGraphicsSceneContextMenuEven } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointfromcircleandtangent.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointfromcircleandtangent.cpp index e33140bd9..828ae6053 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointfromcircleandtangent.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointfromcircleandtangent.cpp @@ -280,7 +280,7 @@ void VToolPointFromCircleAndTangent::contextMenuEvent(QGraphicsSceneContextMenuE } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofcontact.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofcontact.cpp index a93c79f4d..cd010e3d9 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofcontact.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofcontact.cpp @@ -279,7 +279,7 @@ void VToolPointOfContact::contextMenuEvent(QGraphicsSceneContextMenuEvent *event } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersection.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersection.cpp index c113e0bda..54646ddae 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersection.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersection.cpp @@ -198,7 +198,7 @@ void VToolPointOfIntersection::contextMenuEvent(QGraphicsSceneContextMenuEvent * } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectionarcs.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectionarcs.cpp index d2c6f1f16..31718d1e6 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectionarcs.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectionarcs.cpp @@ -302,7 +302,7 @@ void VToolPointOfIntersectionArcs::contextMenuEvent(QGraphicsSceneContextMenuEve } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectioncircles.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectioncircles.cpp index b717dccbf..b5b11e80d 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectioncircles.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectioncircles.cpp @@ -316,7 +316,7 @@ void VToolPointOfIntersectionCircles::contextMenuEvent(QGraphicsSceneContextMenu } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectioncurves.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectioncurves.cpp index a4785addd..d754ef988 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectioncurves.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectioncurves.cpp @@ -362,7 +362,7 @@ void VToolPointOfIntersectionCurves::contextMenuEvent(QGraphicsSceneContextMenuE } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolsinglepoint.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolsinglepoint.cpp index 403fe7742..d34df795d 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolsinglepoint.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolsinglepoint.cpp @@ -124,7 +124,7 @@ void VToolSinglePoint::SetEnabled(bool enabled) //--------------------------------------------------------------------------------------------------------------------- void VToolSinglePoint::GroupVisibility(quint32 object, bool visible) { - Q_UNUSED(object); + Q_UNUSED(object) setVisible(visible); } @@ -247,7 +247,7 @@ void VToolSinglePoint::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) */ void VToolSinglePoint::hoverEnterEvent(QGraphicsSceneHoverEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) this->setPen(QPen(CorrectColor(baseColor), qApp->toPixel(WidthMainLine(*VAbstractTool::data.GetPatternUnit()))/factor)); QGraphicsEllipseItem::hoverEnterEvent(event); @@ -260,7 +260,7 @@ void VToolSinglePoint::hoverEnterEvent(QGraphicsSceneHoverEvent *event) */ void VToolSinglePoint::hoverLeaveEvent(QGraphicsSceneHoverEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) this->setPen(QPen(CorrectColor(baseColor), qApp->toPixel(WidthHairLine(*VAbstractTool::data.GetPatternUnit()))/factor)); QGraphicsEllipseItem::hoverLeaveEvent(event); @@ -340,7 +340,7 @@ void VToolSinglePoint::keyReleaseEvent(QKeyEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } break; diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtooltriangle.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtooltriangle.cpp index fd85d5e74..e9cdfe780 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtooltriangle.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtooltriangle.cpp @@ -262,7 +262,7 @@ void VToolTriangle::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/toolpoint/vabstractpoint.cpp b/src/libs/vtools/tools/drawTools/toolpoint/vabstractpoint.cpp index c87076dc3..fe68f5daf 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/vabstractpoint.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/vabstractpoint.cpp @@ -70,7 +70,7 @@ void VAbstractPoint::DeleteFromLabel() } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } diff --git a/src/libs/vtools/tools/drawTools/vdrawtool.cpp b/src/libs/vtools/tools/drawTools/vdrawtool.cpp index 2cdb5fc2f..4de01fb70 100644 --- a/src/libs/vtools/tools/drawTools/vdrawtool.cpp +++ b/src/libs/vtools/tools/drawTools/vdrawtool.cpp @@ -88,8 +88,8 @@ VDrawTool::~VDrawTool() */ void VDrawTool::ShowTool(quint32 id, bool enable) { - Q_UNUSED(id); - Q_UNUSED(enable); + Q_UNUSED(id) + Q_UNUSED(enable) } //--------------------------------------------------------------------------------------------------------------------- diff --git a/src/libs/vtools/tools/drawTools/vtoolline.cpp b/src/libs/vtools/tools/drawTools/vtoolline.cpp index 559772cbd..a759265f9 100644 --- a/src/libs/vtools/tools/drawTools/vtoolline.cpp +++ b/src/libs/vtools/tools/drawTools/vtoolline.cpp @@ -263,7 +263,7 @@ void VToolLine::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } @@ -305,7 +305,7 @@ void VToolLine::RefreshDataInFile() */ void VToolLine::hoverEnterEvent(QGraphicsSceneHoverEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) this->setPen(QPen(CorrectColor(lineColor), qApp->toPixel(WidthMainLine(*VAbstractTool::data.GetPatternUnit()))/factor, LineStyleToPenStyle(typeLine))); @@ -318,7 +318,7 @@ void VToolLine::hoverEnterEvent(QGraphicsSceneHoverEvent *event) */ void VToolLine::hoverLeaveEvent(QGraphicsSceneHoverEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) if (vis.isNull()) { this->setPen(QPen(CorrectColor(lineColor), @@ -373,7 +373,7 @@ void VToolLine::keyReleaseEvent(QKeyEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } break; @@ -503,7 +503,7 @@ void VToolLine::SetLineColor(const QString &value) //--------------------------------------------------------------------------------------------------------------------- void VToolLine::GroupVisibility(quint32 object, bool visible) { - Q_UNUSED(object); + Q_UNUSED(object) setVisible(visible); } diff --git a/src/libs/vtools/tools/nodeDetails/vabstractnode.cpp b/src/libs/vtools/tools/nodeDetails/vabstractnode.cpp index 21e4c9d5d..381509163 100644 --- a/src/libs/vtools/tools/nodeDetails/vabstractnode.cpp +++ b/src/libs/vtools/tools/nodeDetails/vabstractnode.cpp @@ -141,8 +141,8 @@ void VAbstractNode::SetParentType(const ParentType &value) //--------------------------------------------------------------------------------------------------------------------- void VAbstractNode::GroupVisibility(quint32 object, bool visible) { - Q_UNUSED(object); - Q_UNUSED(visible); + Q_UNUSED(object) + Q_UNUSED(visible) } //--------------------------------------------------------------------------------------------------------------------- diff --git a/src/libs/vtools/tools/nodeDetails/vnodepoint.cpp b/src/libs/vtools/tools/nodeDetails/vnodepoint.cpp index 27e3b9861..e693d1b27 100644 --- a/src/libs/vtools/tools/nodeDetails/vnodepoint.cpp +++ b/src/libs/vtools/tools/nodeDetails/vnodepoint.cpp @@ -243,7 +243,7 @@ void VNodePoint::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) */ void VNodePoint::hoverMoveEvent(QGraphicsSceneHoverEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) this->setPen(QPen(currentColor, qApp->toPixel(WidthMainLine(*VAbstractTool::data.GetPatternUnit())))); } @@ -254,7 +254,7 @@ void VNodePoint::hoverMoveEvent(QGraphicsSceneHoverEvent *event) */ void VNodePoint::hoverLeaveEvent(QGraphicsSceneHoverEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) this->setPen(QPen(currentColor, qApp->toPixel(WidthHairLine(*VAbstractTool::data.GetPatternUnit())))); } diff --git a/src/libs/vtools/tools/vgrainlineitem.cpp b/src/libs/vtools/tools/vgrainlineitem.cpp index 29a91e81e..4fea3b503 100644 --- a/src/libs/vtools/tools/vgrainlineitem.cpp +++ b/src/libs/vtools/tools/vgrainlineitem.cpp @@ -94,8 +94,8 @@ VGrainlineItem::~VGrainlineItem() */ void VGrainlineItem::paint(QPainter* pP, const QStyleOptionGraphicsItem* pOption, QWidget* pWidget) { - Q_UNUSED(pOption); - Q_UNUSED(pWidget); + Q_UNUSED(pOption) + Q_UNUSED(pWidget) pP->save(); QColor clr = Qt::black; pP->setPen(QPen(clr, 3)); diff --git a/src/libs/vtools/tools/vtextgraphicsitem.cpp b/src/libs/vtools/tools/vtextgraphicsitem.cpp index 850c87abc..d9b815266 100644 --- a/src/libs/vtools/tools/vtextgraphicsitem.cpp +++ b/src/libs/vtools/tools/vtextgraphicsitem.cpp @@ -109,8 +109,8 @@ void VTextGraphicsItem::SetFont(const QFont& fnt) */ void VTextGraphicsItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) { - Q_UNUSED(widget); - Q_UNUSED(option); + Q_UNUSED(widget) + Q_UNUSED(option) painter->fillRect(m_rectBoundingBox, QColor(251, 251, 175)); painter->setRenderHints(QPainter::Antialiasing | QPainter::TextAntialiasing); @@ -579,7 +579,7 @@ void VTextGraphicsItem::hoverMoveEvent(QGraphicsSceneHoverEvent* pHE) */ void VTextGraphicsItem::hoverLeaveEvent(QGraphicsSceneHoverEvent* pHE) { - Q_UNUSED(pHE); + Q_UNUSED(pHE) RestoreOverrideCursor(Qt::SizeFDiagCursor); } diff --git a/src/libs/vtools/tools/vtooldetail.cpp b/src/libs/vtools/tools/vtooldetail.cpp index f0345a571..1814548fa 100644 --- a/src/libs/vtools/tools/vtooldetail.cpp +++ b/src/libs/vtools/tools/vtooldetail.cpp @@ -379,7 +379,7 @@ void VToolDetail::Remove(bool ask) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } } @@ -695,7 +695,7 @@ void VToolDetail::keyReleaseEvent(QKeyEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } break; @@ -752,7 +752,7 @@ void VToolDetail::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) //--------------------------------------------------------------------------------------------------------------------- void VToolDetail::hoverMoveEvent(QGraphicsSceneHoverEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) if (flags() & QGraphicsItem::ItemIsMovable) { SetOverrideCursor(cursorArrowOpenHand, 1, 1); @@ -762,7 +762,7 @@ void VToolDetail::hoverMoveEvent(QGraphicsSceneHoverEvent *event) //--------------------------------------------------------------------------------------------------------------------- void VToolDetail::hoverEnterEvent(QGraphicsSceneHoverEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) if (flags() & QGraphicsItem::ItemIsMovable) { SetOverrideCursor(cursorArrowOpenHand, 1, 1); @@ -772,7 +772,7 @@ void VToolDetail::hoverEnterEvent(QGraphicsSceneHoverEvent *event) //--------------------------------------------------------------------------------------------------------------------- void VToolDetail::hoverLeaveEvent(QGraphicsSceneHoverEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) //Disable cursor-arrow-openhand if (flags() & QGraphicsItem::ItemIsMovable) { @@ -824,7 +824,7 @@ void VToolDetail::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) } catch(const VExceptionToolWasDeleted &e) { - Q_UNUSED(e); + Q_UNUSED(e) return;//Leave this method immediately!!! } return; //Leave this method immediately after call!!! @@ -1195,8 +1195,8 @@ void VToolDetail::ShowVisualization(bool show) //--------------------------------------------------------------------------------------------------------------------- void VToolDetail::GroupVisibility(quint32 object, bool visible) { - Q_UNUSED(object); - Q_UNUSED(visible); + Q_UNUSED(object) + Q_UNUSED(visible) } //--------------------------------------------------------------------------------------------------------------------- diff --git a/src/libs/vtools/tools/vtooluniondetails.cpp b/src/libs/vtools/tools/vtooluniondetails.cpp index fe65a630c..fc1b961ef 100644 --- a/src/libs/vtools/tools/vtooluniondetails.cpp +++ b/src/libs/vtools/tools/vtooluniondetails.cpp @@ -176,7 +176,7 @@ void VToolUnionDetails::AddToNewDetail(VMainGraphicsScene *scene, VAbstractPatte QLineF l2(*center, p2); center->setMode(Draw::Modeling); quint32 idCenter = data->AddGObject(center); - Q_UNUSED(idCenter); + Q_UNUSED(idCenter) VArc *arc1 = new VArc(*center, arc->GetRadius(), arc->GetFormulaRadius(), l1.angle(), QString().setNum(l1.angle()), l2.angle(), QString().setNum(l2.angle())); arc1->setMode(Draw::Modeling); @@ -210,7 +210,7 @@ void VToolUnionDetails::AddToNewDetail(VMainGraphicsScene *scene, VAbstractPatte QLineF l2(*center, p2); center->setMode(Draw::Modeling); quint32 idCenter = data->AddGObject(center); - Q_UNUSED(idCenter); + Q_UNUSED(idCenter) VEllipticalArc *arc1 = new VEllipticalArc (*center, arc->GetRadius1(), arc->GetRadius2(), arc->GetFormulaRadius1(), arc->GetFormulaRadius2(), l1.angle(), QString().setNum(l1.angle()), l2.angle(), @@ -561,8 +561,8 @@ void VToolUnionDetails::decrementReferens() //--------------------------------------------------------------------------------------------------------------------- void VToolUnionDetails::GroupVisibility(quint32 object, bool visible) { - Q_UNUSED(object); - Q_UNUSED(visible); + Q_UNUSED(object) + Q_UNUSED(visible) } //--------------------------------------------------------------------------------------------------------------------- @@ -643,7 +643,7 @@ VToolUnionDetails* VToolUnionDetails::Create(const quint32 _id, const VDetail &d VNodeDetail det1p1; VNodeDetail det1p2; d1.NodeOnEdge(indexD1, det1p1, det1p2); - Q_UNUSED(det1p2); + Q_UNUSED(det1p2) VPointF point1; VPointF point2; diff --git a/src/libs/vtools/visualization/line/operation/visoperation.cpp b/src/libs/vtools/visualization/line/operation/visoperation.cpp index 39877ade0..4cc52b06e 100644 --- a/src/libs/vtools/visualization/line/operation/visoperation.cpp +++ b/src/libs/vtools/visualization/line/operation/visoperation.cpp @@ -65,7 +65,7 @@ void VisOperation::SetObjects(QVector objects) //--------------------------------------------------------------------------------------------------------------------- void VisOperation::VisualMode(const quint32 &pointId) { - Q_UNUSED(pointId); + Q_UNUSED(pointId) VMainGraphicsScene *scene = qobject_cast(qApp->getCurrentScene()); SCASSERT(scene != nullptr) diff --git a/src/libs/vwidgets/vgraphicssimpletextitem.cpp b/src/libs/vwidgets/vgraphicssimpletextitem.cpp index 2f95261ff..270ac192c 100644 --- a/src/libs/vwidgets/vgraphicssimpletextitem.cpp +++ b/src/libs/vwidgets/vgraphicssimpletextitem.cpp @@ -194,7 +194,7 @@ void VGraphicsSimpleTextItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event) */ void VGraphicsSimpleTextItem::hoverLeaveEvent(QGraphicsSceneHoverEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) if (flags() & QGraphicsItem::ItemIsMovable) { //Disable cursor-arrow-openhand diff --git a/src/libs/vwidgets/vmaingraphicsview.cpp b/src/libs/vwidgets/vmaingraphicsview.cpp index 8e68bc497..936afd478 100644 --- a/src/libs/vwidgets/vmaingraphicsview.cpp +++ b/src/libs/vwidgets/vmaingraphicsview.cpp @@ -130,7 +130,7 @@ void GraphicsViewZoom::set_zoom_factor_base(double value) //--------------------------------------------------------------------------------------------------------------------- void GraphicsViewZoom::VerticalScrollingTime(qreal x) { - Q_UNUSED(x); + Q_UNUSED(x) // Try to adapt scrolling to speed of rotating mouse wheel and scale factor // Value of _numScheduledScrollings is too short, so we scale the value @@ -151,7 +151,7 @@ void GraphicsViewZoom::VerticalScrollingTime(qreal x) //--------------------------------------------------------------------------------------------------------------------- void GraphicsViewZoom::HorizontalScrollingTime(qreal x) { - Q_UNUSED(x); + Q_UNUSED(x) // Try to adapt scrolling to speed of rotating mouse wheel and scale factor // Value of _numScheduledScrollings is too short, so we scale the value