<table><tr><td style="">antonanikin created this revision.<br />antonanikin added a reviewer: KDevelop.<br />antonanikin 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/D11081">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The patch provides new UI approach for problem reporter tool view. Old (current) version hides some UI elements for selected problem model if the correspondent feature is not supported, for example "Show imports" button for cppcheck model. This leads to inconsistent UI during model changing - tool view layout also changed and non-disabled UI elements are moved ("jumps") inside the form.</p>

<p>New version uses disabling unsupported UI elements instead hiding, which blocks layout changing. Also new widget is used for "Scope" and "Grouping" buttons - now this buttons has fixed size compliant to menu action with maximum text width. This done also for blocking widgets resize during UI operations. New menu widget also fixes tooltips showing, which is broken for current version. QSignalMapper is dropped during it'snow deprecated class (since Qt 5.10).</p>

<p>New version also allows us to add mechanism for temporarily blocking (disabling) some widgets for example "Full Update" button when model reset is started. This now done with using ProblemModel::featuresChanged signal which emitted by cppcheck plugin at start and at the end of analysis.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>BRANCH</strong><div><div>problemsview</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D11081">https://phabricator.kde.org/D11081</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kdevplatform/shell/problemmodel.cpp<br />
kdevplatform/shell/problemmodel.h<br />
plugins/cppcheck/problemmodel.cpp<br />
plugins/problemreporter/CMakeLists.txt<br />
plugins/problemreporter/actionmenu.cpp<br />
plugins/problemreporter/actionmenu.h<br />
plugins/problemreporter/problemsview.cpp<br />
plugins/problemreporter/problemsview.h<br />
plugins/problemreporter/tests/CMakeLists.txt</div></div></div><br /><div><strong>To: </strong>antonanikin, KDevelop<br /><strong>Cc: </strong>kdevelop-devel<br /></div>