mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-20 15:24:14 +02:00
Address review
1. Drop dead prepareGeometryChange()/update() calls in setPotential(), split unrelated terminaleditor.h re-indent into its own change 2. Removed: setPotential() had prepareGeometryChange()/update() left over from the label-display mechanism that was dropped before this PR
This commit is contained in:
@@ -479,9 +479,7 @@ void PartTerminal::setMasterLabelIndex(int index)
|
||||
void PartTerminal::setPotential(const QString &potential)
|
||||
{
|
||||
if (d->m_potential == potential) return;
|
||||
prepareGeometryChange();
|
||||
d->m_potential = potential;
|
||||
update();
|
||||
emit potentialChanged();
|
||||
}
|
||||
|
||||
|
||||
@@ -65,13 +65,13 @@ class TerminalEditor : public ElementItemEditor
|
||||
void labelSizeEdited();
|
||||
void labelRotationEdited();
|
||||
void labelAlignClicked();
|
||||
void labelFrameEdited();
|
||||
void labelColorClicked();
|
||||
void activeConnections(bool active);
|
||||
void activeChangeConnections(bool active);
|
||||
void useMasterLabelEdited();
|
||||
void masterLabelIndexEdited();
|
||||
bool updateMasterLabelVisibility();
|
||||
void labelFrameEdited();
|
||||
void labelColorClicked();
|
||||
void activeConnections(bool active);
|
||||
void activeChangeConnections(bool active);
|
||||
void useMasterLabelEdited();
|
||||
void masterLabelIndexEdited();
|
||||
bool updateMasterLabelVisibility();
|
||||
|
||||
private:
|
||||
Ui::TerminalEditor *ui;
|
||||
|
||||
Reference in New Issue
Block a user