Bug 392837 - Mouse Right Click menu is overlapped with Clipboard History menu
Summary: Mouse Right Click menu is overlapped with Clipboard History menu
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.44.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: junior-jobs, triaged
Depends on:
Blocks:
 
Reported: 2018-04-07 17:37 UTC by Silviu
Modified: 2019-07-13 21:20 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Issue example (99.06 KB, image/png)
2018-04-07 17:37 UTC, Silviu
Details
The issue is not reproducable in 5.2.4 version (157.43 KB, image/jpeg)
2018-10-06 11:31 UTC, pushpak patil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Silviu 2018-04-07 17:37:40 UTC
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!
Comment 1 Sven Brauch 2018-04-07 17:39:05 UTC
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.
Comment 2 Shivang Saxena 2018-05-11 14:22:32 UTC
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.
Comment 3 Christoph Feck 2018-06-05 23:32:19 UTC
Yes, the KTextEditor frameworks is used by Kate, KWrite, KDevelop, and Kile.
Comment 4 Christoph Cullmann 2018-07-15 17:38:50 UTC
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++);
    }
Comment 5 Christoph Cullmann 2018-07-15 17:40:17 UTC
=> how to reproduce that?
Comment 6 Christoph Feck 2018-08-02 19:45:09 UTC
Might it be specific to Windows OS?
Comment 7 Andrew Crouthamel 2018-09-28 03:34:24 UTC
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!
Comment 8 Silviu 2018-09-28 07:36:10 UTC
Regarding the operating system where I recorded this issue, I use Windows 7, 64 bit
Comment 9 Andrew Crouthamel 2018-09-28 17:01:45 UTC
Thanks for the update!
Comment 10 pushpak patil 2018-10-06 11:31:23 UTC
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.
Comment 11 Andrew Crouthamel 2018-10-07 01:05:36 UTC
(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.
Comment 12 Christoph Cullmann 2019-07-13 21:20:10 UTC
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.