remove reset buttons for VBox height and HBox width

as they reset to 0 rather than 10 and 5 respecivly.
This commit is contained in:
Joachim Schmitz 2016-12-01 10:49:03 +01:00
parent 0ba36ed4b0
commit 409a14f167
3 changed files with 2 additions and 33 deletions

View file

@ -458,7 +458,7 @@ InspectorVBox::InspectorVBox(QWidget* parent)
{ P_ID::RIGHT_MARGIN, 0, 0, vb.rightMargin, vb.resetRightMargin },
{ P_ID::TOP_MARGIN, 0, 0, vb.topMargin, vb.resetTopMargin },
{ P_ID::BOTTOM_MARGIN, 0, 0, vb.bottomMargin, vb.resetBottomMargin },
{ P_ID::BOX_HEIGHT, 0, 0, vb.height, vb.resetHeight }
{ P_ID::BOX_HEIGHT, 0, 0, vb.height, 0 }
};
mapSignals();
}
@ -495,7 +495,7 @@ InspectorHBox::InspectorHBox(QWidget* parent)
iList = {
{ P_ID::TOP_GAP, 0, 0, hb.leftGap, hb.resetLeftGap },
{ P_ID::BOTTOM_GAP, 0, 0, hb.rightGap, hb.resetRightGap },
{ P_ID::BOX_WIDTH, 0, 0, hb.width, hb.resetWidth }
{ P_ID::BOX_WIDTH, 0, 0, hb.width, 0 }
};
mapSignals();

View file

@ -181,23 +181,6 @@
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QToolButton" name="resetWidth">
<property name="toolTip">
<string>Reset to default</string>
</property>
<property name="accessibleName">
<string>Reset 'Width' value</string>
</property>
<property name="text">
<string notr="true"/>
</property>
<property name="icon">
<iconset resource="../musescore.qrc">
<normaloff>:/data/icons/edit-reset.svg</normaloff>:/data/icons/edit-reset.svg</iconset>
</property>
</widget>
</item>
</layout>
</item>
</layout>

View file

@ -360,20 +360,6 @@
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QToolButton" name="resetHeight">
<property name="toolTip">
<string>Reset to default</string>
</property>
<property name="accessibleName">
<string>Reset 'Height' value</string>
</property>
<property name="icon">
<iconset resource="../musescore.qrc">
<normaloff>:/data/icons/edit-reset.svg</normaloff>:/data/icons/edit-reset.svg</iconset>
</property>
</widget>
</item>
</layout>
</item>
</layout>