mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Wrap code for better readability
This commit is contained in:
@@ -29,7 +29,8 @@
|
||||
@param conductor : conductor to edit propertie
|
||||
@param parent : parent widget
|
||||
*/
|
||||
ConductorPropertiesDialog::ConductorPropertiesDialog(Conductor *conductor, QWidget *parent) :
|
||||
ConductorPropertiesDialog::ConductorPropertiesDialog(Conductor *conductor,
|
||||
QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::ConductorPropertiesDialog)
|
||||
{
|
||||
@@ -58,11 +59,13 @@ ConductorPropertiesDialog::~ConductorPropertiesDialog()
|
||||
@param conductor : conductor to edit propertie
|
||||
@param parent : parent widget
|
||||
*/
|
||||
void ConductorPropertiesDialog::PropertiesDialog(Conductor *conductor, QWidget *parent)
|
||||
void ConductorPropertiesDialog::PropertiesDialog(Conductor *conductor,
|
||||
QWidget *parent)
|
||||
{
|
||||
ConductorPropertiesDialog cpd (conductor, parent);
|
||||
|
||||
if (cpd.exec() == QDialog::Rejected || cpd.properties() == conductor->properties()) return;
|
||||
if (cpd.exec() == QDialog::Rejected
|
||||
|| cpd.properties() == conductor->properties()) return;
|
||||
|
||||
QVariant old_value, new_value;
|
||||
old_value.setValue(conductor->properties());
|
||||
|
||||
Reference in New Issue
Block a user