Summary: | Mouse Right Click menu is overlapped with Clipboard History menu | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-ktexteditor | Reporter: | Silviu <laurentiusilviu> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | andrew.crouthamel, christoph, mail, patilpushpak8, shivangs44 |
Priority: | NOR | Keywords: | junior-jobs, triaged |
Version: | 5.44.0 | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Issue example
The issue is not reproducable in 5.2.4 version |
It looks like the clipboard history entries are not elided, which they should obviously be. This should be easy to fix, I'll add the "junior job" flag. I'd love to try to handle this, but I'm not sure what program OP is having this issue in. I'm not very familiar with ktexteditor, but from a search it seems that it's a 'component' that can be included in your own programs? (https://github.com/KDE/ktexteditor). If I can better understand the product OP is using I could try to handle it. Yes, the KTextEditor frameworks is used by Kate, KWrite, KDevelop, and Kile. Hmm, we elide after 48 chars. /** * insert complete paste history */ int i = 0; Q_FOREACH (const QString &text, KTextEditor::EditorPrivate::self()->clipboardHistory()) { /** * get text for the menu ;) */ QString leftPart = (text.size() > 48) ? (text.left(48) + QLatin1String("...")) : text; QAction *a = menu()->addAction(leftPart.replace(QLatin1String("\n"), QLatin1String(" ")), this, SLOT(paste())); a->setData(i++); } => how to reproduce that? Might it be specific to Windows OS? Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! Regarding the operating system where I recorded this issue, I use Windows 7, 64 bit Thanks for the update! Created attachment 115440 [details] The issue is not reproducable in 5.2.4 version The issue is not reproducible on latest setup provided by KDE tested on kdevelop-5.2.4-x64-setup.exe http://mirror.vinahost.vn/kde/stable/kdevelop/5.2.4/bin/windows/kdevelop-5.2.4-x64-setup.exe The bug is reported on version 5.44 however i found kdevelop5.2.4-x64.exe as latest version. how do i test that version 5.44 to check & fix it. (In reply to pushpak patil from comment #10) > Created attachment 115440 [details] > The issue is not reproducable in 5.2.4 version > > The issue is not reproducible on latest setup provided by KDE > tested on kdevelop-5.2.4-x64-setup.exe > > http://mirror.vinahost.vn/kde/stable/kdevelop/5.2.4/bin/windows/kdevelop-5.2. > 4-x64-setup.exe > > The bug is reported on version 5.44 > however i found kdevelop5.2.4-x64.exe as latest version. > how do i test that version 5.44 to check & fix it. That's referencing the frameworks version. I tried a recent nightly from https://kate-editor.org/get-it/ for Windows. I have no issues there. The menu is properly elided like the code should do. |
Created attachment 111893 [details] Issue example Please take a look on the attached print screen. I, placed the cursor over "Jump to Declaration" in order to press on it. But because before to arrive to "Jump to Declaration" line, I crossed over "Clipboard History" line, the submenu of "Clipboard History" was launched. So, I arrived with the mouse cursor over "Jump to Declaration" line in order to press on it, but even the mouse cursor was placed over the "Jump to Declaration" line, the selected menu is "Clipboard History" -> $matrix line, which is not correct, and when I pressed on the mouse button, the "Clipboard History" -> $matrix menu was launched, which is wrong. Thanks a lot!