-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix QPushButton with color, used for color picking feedback. #672
Conversation
Oops something wrong here... need to rebase. |
No no, it indeed depends on #662. |
7f858db
to
4d2fafd
Compare
...well the stylesheet solution looked nicer here... when it worked Several "color picking" buttons have a text string consisting of a few spaces ( Could a similar solution also work for all the color-picking buttons in |
Due to platform differences creating a simple color picker button seems difficult. See discussion in issue Qucs#74. This patch used part of PR Qucs#135 to implement the button with a pixmap on it. Stylesheets could be used instead. This patch also pulls all the get/set of colors into buttons into misc::
4d2fafd
to
9b6f495
Compare
Cleaned up the white spaces and pulled all the color setter/getters into misc:: |
Can someone check on Linux o see if this makes sense? |
I can check that tomorrow... |
I've just tested this PR in Ubuntu and I didn't find issues. However, I've found the following warning:
It was here before this PR, but, now you've opened this PR, I guess it would be a good idea to remove that... I think the PR works as expected. I tried to resize the window with different aspect ratios and it always triggers the color picker regardless the area you click inside the button. Moreover, I didn't see any warning in the standard output when clicking the button, so it seems to be ok 👍 |
Thank you. I removed the unused variable you pointed and another one i found along the way. |
Close #74.
Based on PR #662.