mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-18 01:09:59 +01:00
Fix compilation warning (clang and gcc)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5301 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -1255,6 +1255,7 @@ void DynamicElementTextModel::updateDataFromText(DynamicElementTextItem *deti, V
|
||||
qsi->child(width_txt_row,1)->setData(deti->textWidth(), Qt::EditRole);
|
||||
break;
|
||||
}
|
||||
default:break;
|
||||
}
|
||||
|
||||
m_block_dataChanged = false;
|
||||
@@ -1296,6 +1297,7 @@ void DynamicElementTextModel::updateDataFromGroup(ElementTextItemGroup *group, D
|
||||
enableGroupRotation(group);
|
||||
break;
|
||||
}
|
||||
default:break;
|
||||
}
|
||||
|
||||
m_block_dataChanged = false;
|
||||
@@ -1540,6 +1542,7 @@ bool DynamicTextItemDelegate::eventFilter(QObject *object, QEvent *event)
|
||||
emit commitData(sb); break;
|
||||
case QEvent::Wheel:
|
||||
emit commitData(sb); break;
|
||||
default:break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ bool ImagePropertiesWidget::setLiveEdit(bool live_edit)
|
||||
* @return the change in an undo command (ItemResizerCommand).
|
||||
* If there is no change return nullptr
|
||||
*/
|
||||
QUndoCommand* ImagePropertiesWidget::associatedUndo()
|
||||
QUndoCommand* ImagePropertiesWidget::associatedUndo() const
|
||||
{
|
||||
|
||||
qreal value = ui->m_scale_slider->value();
|
||||
|
||||
@@ -42,7 +42,7 @@ class ImagePropertiesWidget : public PropertiesEditorWidget
|
||||
void apply() override;
|
||||
void reset() override;
|
||||
bool setLiveEdit(bool live_edit) override;
|
||||
QUndoCommand* associatedUndo();
|
||||
QUndoCommand* associatedUndo() const override;
|
||||
|
||||
private:
|
||||
void updateUi() override;
|
||||
|
||||
Reference in New Issue
Block a user