<table><tr><td style="">gkowal created this revision.<br />gkowal added a reviewer: KDE PIM: KMail.<br />Restricted Application added a project: KDE PIM.<br />Restricted Application added a subscriber: kde-pim.<br />gkowal 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/D14617">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Both functions of QProgressBar, setMaximum() and setValue(), accept arguments of int type, however arguments current and maxValue of setQuotaInfo() are of qint64 type. If any of these arguments exceeds the upper limit of int type (around 2GB) the progress bar is displayed incorrectly.</p>
<p>Fix this by directly calculating the percentage of used quota and passing it to setValue() and dropping the setting of maximum (which by default is 100).</p>
<p>Also, correctly round the percentage and make sure it is always in the correct range.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R206 KMail</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D14617">https://phabricator.kde.org/D14617</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/collectionpage/collectionquotawidget.cpp</div></div></div><br /><div><strong>To: </strong>gkowal, KDE PIM: KMail<br /><strong>Cc: </strong>kde-pim, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>