Remove empty statement.
--HG-- branch : develop
This commit is contained in:
parent
ffab000e0f
commit
2d61b87256
|
@ -172,7 +172,7 @@ void DialogNewMeasurements::CurrentTypeChanged(int index)
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void DialogNewMeasurements::CurrentUnitChanged(int index)
|
||||
{
|
||||
Q_UNUSED(index);
|
||||
Q_UNUSED(index)
|
||||
|
||||
if (MUnit() != Unit::Inch)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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<VFormula>();
|
||||
VFormulaPropertyEditor* tmpEditor = new VFormulaPropertyEditor(parent);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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...
|
||||
/*
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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<int>(allowence);
|
||||
const int y = i*PageRect().height() - i*static_cast<int>(allowence);
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -189,9 +189,9 @@ bool VLockGuard<Guarded>::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;
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ VInternalVariable::~VInternalVariable()
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
bool VInternalVariable::Filter(quint32 id)
|
||||
{
|
||||
Q_UNUSED(id);
|
||||
Q_UNUSED(id)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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<QLineEdit>();
|
||||
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -228,7 +228,7 @@ void VToolFlippingByAxis::contextMenuEvent(QGraphicsSceneContextMenuEvent *event
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -208,7 +208,7 @@ void VToolFlippingByLine::contextMenuEvent(QGraphicsSceneContextMenuEvent *event
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -352,7 +352,7 @@ void VToolMove::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -340,7 +340,7 @@ void VToolRotation::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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<VAbstractCurve> curve = VAbstractTool::data.GeometricObject<VAbstractCurve>(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<VAbstractCurve> curve = VAbstractTool::data.GeometricObject<VAbstractCurve>(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);
|
||||
}
|
||||
|
|
|
@ -316,7 +316,7 @@ void VToolArc::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -279,7 +279,7 @@ void VToolArcWithLength::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -175,7 +175,7 @@ void VToolCubicBezier::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -186,7 +186,7 @@ void VToolCubicBezierPath::contextMenuEvent(QGraphicsSceneContextMenuEvent *even
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -384,7 +384,7 @@ void VToolEllipticalArc::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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<VSpline> spline = VAbstractTool::data.GeometricObject<VSpline>(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!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -377,7 +377,7 @@ void VToolSplinePath::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -312,7 +312,7 @@ void VToolTrueDarts::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -202,7 +202,7 @@ void VToolCutArc::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -202,7 +202,7 @@ void VToolCutSpline::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -290,7 +290,7 @@ void VToolCutSplinePath::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -107,7 +107,7 @@ void VToolAlongLine::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -257,7 +257,7 @@ void VToolBisector::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -271,7 +271,7 @@ void VToolCurveIntersectAxis::contextMenuEvent(QGraphicsSceneContextMenuEvent *e
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -208,7 +208,7 @@ void VToolEndLine::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -215,7 +215,7 @@ void VToolHeight::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -267,7 +267,7 @@ void VToolLineIntersectAxis::contextMenuEvent(QGraphicsSceneContextMenuEvent *ev
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -235,7 +235,7 @@ void VToolNormal::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -263,7 +263,7 @@ void VToolShoulderPoint::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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<VGObject> &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.");
|
||||
|
|
|
@ -224,7 +224,7 @@ void VToolLineIntersect::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -296,7 +296,7 @@ void VToolPointFromArcAndTangent::contextMenuEvent(QGraphicsSceneContextMenuEven
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -280,7 +280,7 @@ void VToolPointFromCircleAndTangent::contextMenuEvent(QGraphicsSceneContextMenuE
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -279,7 +279,7 @@ void VToolPointOfContact::contextMenuEvent(QGraphicsSceneContextMenuEvent *event
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -198,7 +198,7 @@ void VToolPointOfIntersection::contextMenuEvent(QGraphicsSceneContextMenuEvent *
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -302,7 +302,7 @@ void VToolPointOfIntersectionArcs::contextMenuEvent(QGraphicsSceneContextMenuEve
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -316,7 +316,7 @@ void VToolPointOfIntersectionCircles::contextMenuEvent(QGraphicsSceneContextMenu
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -362,7 +362,7 @@ void VToolPointOfIntersectionCurves::contextMenuEvent(QGraphicsSceneContextMenuE
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -262,7 +262,7 @@ void VToolTriangle::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -70,7 +70,7 @@ void VAbstractPoint::DeleteFromLabel()
|
|||
}
|
||||
catch(const VExceptionToolWasDeleted &e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
return;//Leave this method immediately!!!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -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()))));
|
||||
}
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -65,7 +65,7 @@ void VisOperation::SetObjects(QVector<quint32> objects)
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VisOperation::VisualMode(const quint32 &pointId)
|
||||
{
|
||||
Q_UNUSED(pointId);
|
||||
Q_UNUSED(pointId)
|
||||
VMainGraphicsScene *scene = qobject_cast<VMainGraphicsScene *>(qApp->getCurrentScene());
|
||||
SCASSERT(scene != nullptr)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user