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:
blacksun
2015-05-02 22:25:01 +00:00
parent a30f51f2ce
commit b7031a0009
9 changed files with 109 additions and 34 deletions

View File

@@ -31,7 +31,7 @@
* @param parent
*/
MasterPropertiesWidget::MasterPropertiesWidget(Element *elmt, QWidget *parent) :
QWidget(parent),
PropertiesEditorWidget(parent),
ui(new Ui::MasterPropertiesWidget),
element_(elmt)
{
@@ -58,12 +58,9 @@ MasterPropertiesWidget::~MasterPropertiesWidget()
* pushed to the stack of element project.
* Return true if link change, else false
*/
bool MasterPropertiesWidget::apply() {
if (QUndoCommand *undo = associatedUndo()) {
void MasterPropertiesWidget::apply() {
if (QUndoCommand *undo = associatedUndo())
element_ -> diagram() -> undoStack().push(undo);
return true;
}
return false;
}
/**