mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Create a common widget to edit propertie
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3930 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
* @param parent parent widget
|
||||
*/
|
||||
ElementInfoWidget::ElementInfoWidget(Element *elmt, QWidget *parent) :
|
||||
QWidget(parent),
|
||||
PropertiesEditorWidget(parent),
|
||||
ui(new Ui::ElementInfoWidget),
|
||||
element_(elmt),
|
||||
elmt_info(elmt->elementInformations()),
|
||||
@@ -55,14 +55,11 @@ ElementInfoWidget::~ElementInfoWidget()
|
||||
* @brief ElementInfoWidget::apply
|
||||
* Apply the new information with a new undo command (got with method associatedUndo)
|
||||
* pushed to the stack of element project.
|
||||
* Return true if new info change, else false.
|
||||
*/
|
||||
bool ElementInfoWidget::apply() {
|
||||
if (QUndoCommand *undo = associatedUndo()) {
|
||||
void ElementInfoWidget::apply()
|
||||
{
|
||||
if (QUndoCommand *undo = associatedUndo())
|
||||
element_ -> diagram() -> undoStack().push(undo);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user