Summary: | Constants buttons do not work | ||
---|---|---|---|
Product: | [Applications] kcalc | Reporter: | JohnB <john.barnes> |
Component: | general | Assignee: | Evan Teran <evan.teran> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ciclista41, laurent.rineau, luigi.toscano, petrielmjr, ramsoft, rdieter, wellingtonwallace |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kcalc/a4dfbe234f8a6d1a052c36e535be60f030bf35ca | Version Fixed In: | 15.12.3 |
Sentry Crash Report: |
Description
JohnB
2015-10-07 09:45:03 UTC
Kcalc version 2.13 on Fedora 22 running KDE Frameworks 5.14.0, Qt 5.5.0, Plasma 5.4.1 I have the same problem on Arch Linux using kcalc 15.08.2, frameworks 5.15, Qt 5.5.1(built against 5.5.0) and plasma-desktop 5.4.2 Same problem on openSUSE Leap 42.1 KCalc 15.12.0 - KDE Frameworks 5.18.0 - Qt 5.5.1 (built against 5.5.1) I have the same bug on Fedora 23, KCalc 15.12.1-KDE Frameworks 5.18.0-Qt 5.5.1. In addition to being unable to retrieve a constant, storing the display in one of the constants doesn't work either. The behavior is very like kcalc doesn't recognize that the constant button has been clicked. Being unable to retrieve one of the predefined constants is a hassle, but not too bad. Not being able to use the additional storage is much more irritating. Ctrl-C and Ctrl-V don't seem to work either. I have the same bug on Archlinux using kcalc 15.12.1-KDE Frameworks 5.18.0-QT 5.5.1 (built against 5.5.1). I think it's a bug connected with the changes in the signal/slot system. I proposed a patch here: https://git.reviewboard.kde.org/r/127017/ but I'd really like to have a comment from the maintainer (or one of the people who helped with the Qt5 porting, or anyone with better internal knowledge of Qt then me) before proceeding. Of course feel free to test it. Git commit a4dfbe234f8a6d1a052c36e535be60f030bf35ca by Luigi Toscano. Committed on 08/03/2016 at 22:19. Pushed by ltoscano into branch 'Applications/15.12'. Fix click event for constant buttons It looks like the new style of "connect" tries to use the clicked signal as defined inside the function, which does not trigger slotClicked(). This change explicitly use the clicked signal from the (grand)parent class and the expected chain of signal/slots triggering is restored. REVIEW: 127017 FIXED-IN: 15.12.3 M +1 -1 kcalc_const_button.cpp http://commits.kde.org/kcalc/a4dfbe234f8a6d1a052c36e535be60f030bf35ca Thanks, Luigi! I look forward to using the fixed version when it becomes available on Archlinux. |