<table><tr><td style="">devanshuagarwal updated this revision to Diff 63246.<br />devanshuagarwal edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-hfkvyhcpbaiqrxm/">(Show Details)</a><br />devanshuagarwal added a comment.
</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/D22935">View Revision</a></tr></table><br /><div><div><p>I have created a new class "MyTextEdit" in "generalTest" which is derived from "QTextEdit".</p>
<p>"MyTextEdit" is able to show separate tooltips for different words. At an internal level, it stores the ranges of the cursor on which tooltip is to be shown in AVL Tree and then reproduces the tooltip whenever the mouse hovers on that range.</p>
<p>I have used AVLTree because it is self-balanced Binary Search Tree. Here insertions operations are limited but the number of search operations are huge. This gives us the performance of O(logn). The reason for not using a simple map to store range and tooltips is the huge number of search operations.</p>
<p>I have introduced new tags to represent tooltips in the feature-rich string. This makes all insert operations in avl tree object abstract to the user of MyTextEdit.</p>
<p>The tags can be used as <br />
[tooltip][data]"data to present"[/data][tip]"tool tip for data"[/tip][/tooltip]</p>
<p>"The data to present" and "tooltip for data" can by feature rich string</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;">This way seems to be more robust than the previous way for displaying tooltip in HTML table for stats. It is also more self-explanatory for a user to use. <br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);"><br />
I have attached the screenshot showing the result. </span>{F71<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">61643}</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">74403}</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R262 LabPlot</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D22935?vs=63089&id=63246">https://phabricator.kde.org/D22935?vs=63089&id=63246</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22935">https://phabricator.kde.org/D22935</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/CMakeLists.txt<br />
src/backend/generalTest/CorrelationCoefficient.cpp<br />
src/backend/generalTest/GeneralTest.cpp<br />
src/backend/generalTest/GeneralTest.h<br />
src/backend/generalTest/HypothesisTest.cpp<br />
src/backend/generalTest/MyTextEdit.cpp<br />
src/backend/generalTest/MyTextEdit.h<br />
src/kdefrontend/generalTest/GeneralTestView.cpp<br />
src/kdefrontend/generalTest/GeneralTestView.h</div></div></div><br /><div><strong>To: </strong>devanshuagarwal, sgerlach, asemke<br /><strong>Cc: </strong>kde-edu, LabPlot, narvaez, apol<br /></div>