mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 02:10:52 +01:00
QetShapeItem can be edited via the properties editor dock
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4024 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
* @param text text to display
|
||||
* @param parent undo parent
|
||||
*/
|
||||
ItemResizerCommand::ItemResizerCommand (QetGraphicsItem *qgi, qreal &old_, qreal &new_, const QString &text, QUndoCommand *parent):
|
||||
ItemResizerCommand::ItemResizerCommand (QetGraphicsItem *qgi, const qreal &old_, const qreal &new_, const QString &text, QUndoCommand *parent):
|
||||
QUndoCommand(parent),
|
||||
m_qgi (qgi),
|
||||
m_old_size (old_),
|
||||
@@ -56,7 +56,7 @@ ItemResizerCommand::~ItemResizerCommand() {}
|
||||
*/
|
||||
bool ItemResizerCommand::mergeWith(const QUndoCommand *other)
|
||||
{
|
||||
if (id() != other->id()) return false;
|
||||
if (id() != other->id() || other->childCount()) return false;
|
||||
ItemResizerCommand const *undo = static_cast<const ItemResizerCommand *>(other);
|
||||
if (m_qgi != undo->m_qgi) return false;
|
||||
m_new_size = undo->m_new_size;
|
||||
|
||||
Reference in New Issue
Block a user