<table><tr><td style="">ndavis created this revision.<br />ndavis added a reviewer: Plasma.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />ndavis requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D28606">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>iconSize sets the size of the ToolButton's icon if it is set to a value.<br />
If no value is set, the ToolButtonStyle IconItem's minimumWidth is bound to buttonContent.height like it was before this patch and iconSize is bound to the paintedWidth of the icon.</p>

<p>Usecase: In places where a custom icon size is wanted, a developer must create an IconItem nested in the ToolButton. This makes it so a developer only needs to change a single property.</p></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item">Set iconSize for a PC2 ToolButton and see if the icon size is changed.</li>
<li class="remarkup-list-item">Bind the width of a component to a ToolButton's iconSize and see if it works.3. Do step 2, but don't do step 1 and see if it works</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R242 Plasma Framework (Library)</div></div></div><br /><div><strong>BRANCH</strong><div><div>pc2-toolbutton-iconSize (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28606">https://phabricator.kde.org/D28606</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/declarativeimports/plasmacomponents/qml/ToolButton.qml<br />
src/declarativeimports/plasmastyle/ToolButtonStyle.qml</div></div></div><br /><div><strong>To: </strong>ndavis, Plasma<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns<br /></div>