Image 01
profile-image

mmj

Anno Nym
Qt Widgets
QScale

Qt Widgets 17 comments

by mmj
Score 72.2%
Jan 07 2012
Hi Totoxa,

it's awesome to see, that people are using this code. Tanks for the Python port.
I think it will be my preferred way to use it, in case I have to implement a new GUI for lab devices. - Sep 05 2014
Hi,
thanks for your comments.
1) I've quickly looked into the code to see, why it does not work with switches max/min values. Here is a quick patch:
289c289
< for(int i = 0; i <= (int)(minorSteps * valueSpan / majorStep); i++){
---
> for(int i = 0; i <= (int)(minorSteps * abs(valueSpan) / majorStep); i++){
295c295
< painter->rotate(majorStep * angleSpan / (-valueSpan * minorSteps));
---
> painter->rotate(majorStep * angleSpan / (-fabs(valueSpan) * minorSteps));
302,303c302,303
< for(int i = (int)ceil(m_minimum / majorStep);
< i <= (int)(m_maximum / majorStep); i++){
---
> for(int i = (int)ceil(fmin(m_minimum, m_maximum) / majorStep);
> i <= (int)(fmax(m_minimum, m_maximum) / majorStep); i++){

I've done this in quite short time, and I don't know the code anymore, as I have written it years ago. So it is not unlikely, that it has inintended side effects.

2) I initially planned to do that, but I think you are more flexible, when using a extra widget. In my applications I did it that way. The reason is, that it looks too tiny, if you use the standard font. In case you make it bold and bigger, it does not line up with the other fonts in the GUI. So the only option is to provide full font formatting options in the API. This produces code and you still are less flexible (can not use QLCDNumber).

3) This should be easy to add (filling some circle with a QConicalGradient brush). The only effort is to write a sensible API to define the velues for that.

Well, while these things are no big deal, I'm not shure, If I find time in near future to add them, as I did not program in C++ for years now. - Jul 24 2012
> By the way , can you please elaborate , how you have decided the formula for radius and other parameters? This will help me to add some more feature for my work.

I've uploades some scratches at http://www.2shared.com/file/lZOLuK_e/QScale-construction.html
This are some geometrical scratches, as I don't have the derivation of the formulars at hand.
This explains the derivation of the rotation point. The label bounding box is the bounding box from the labelSample as derived in updateLabelSample() - Mar 27 2012
Oh, I did not knew this yet. Nice hint. (especially as I have currently can't effort the time to write the plugin) - Feb 11 2012
Hi, to integrate it in your project you can copy qscale.h and qscale.cpp into your project. Then include this two files in your project file as you see it in QScale.pro. Now you can include qscale.h in your program and create a instance. This you can see in the main.cpp file. - Feb 01 2012
kvnkb

Various KDE Stuff 7 comments

Score 58.0%
Nov 28 2013
I think it would be appropriate to start the description with a short English explanation. Even though this program is mainly interesting for Viatnamese folks, this is a English website and there are several reasons other people could be interested.

From the sources:
“Vietnamese input method for KDE.” - Nov 07 2013
Py-Cashew

Plasma 4 Widgets 28 comments

Score 84.7%
Aug 31 2013
Is my interpretation correct, that your OSS contribution basically sums up to this post?

You are free to make suggestions, but do not attack devs personally.

I don’t know the architectural backgrounds to the FAQ response, but as a developer, I see, that some simple things may violate archtectural guidelines. Braking the guidelines may increase the bug count and complicates debugging.

So without knowing the code, the only question is, why they don't ship the plasmoid script with the SC. Either it is something personal, or they just think kde-apps is as good, and this way they don't have to care for the code. I think it is a legitim decission. - Sep 02 2013
Codie

Developers Apps 11 comments

Score 50.0%
Sep 08 2010
You have not mentioned what's the address of the website. - Sep 08 2010
Yakuake

System Software
by Sho

Score 86.7%
Mar 05 2016
Losungen

Plasma 4 Widgets
by jwchile

Score 73.0%
Dec 04 2012
Kminicom

System Software
by fe6fbq

Score 58.0%
9   Feb 21 2016
Score 70.0%
9   Mar 05 2015
Score 70.0%
9   Mar 05 2015
Grey Cross

Cliparts
by salavine1

Score 70.0%
9   Mar 05 2015
Shit Happens! (de)

Plasma Comic Sources
by l3u

Score 58.0%
9   Mar 05 2015
Feast

Cursors
by markitos66

Score 76.7%
9   Oct 11 2013
yesirosa

Plasma Color Schemes
by yesi

Score 58.0%
9   Sep 23 2013
line of nice goats

Wallpaper Other
by zenren

Score 62.5%
9   Sep 23 2013
Getreide im Wind

Wallpaper Other
by rubenstorm

Score 40.0%
3   Sep 18 2013
Pauline

Wallpaper Other
by shprotyna

Score 53.3%
9   Sep 02 2013
Py-Cashew

Plasma 4 Widgets
by BenoitMonin

Score 84.7%
9   Sep 02 2013
Windows 7

Plasma Themes
by PaKoX

Score 68.0%
3   Aug 27 2013
Ultimate Edition KDE

Wallpapers KDE Plasma
by pamfeuer

Score 43.3%
3   Aug 23 2013
Score 41.4%
3   Aug 23 2013
Score 51.0%
9   Aug 22 2013
launchSwitch

Plasma 4 Widgets
by bege

Score 70.0%
9   Mar 12 2013
Idea: Save Amarok 1.4

Various KDE 1.-4. Improvements
by stalin2000

Score 38.2%
3   Oct 24 2012
Oxygen KDE (Firefox Theme)

Various KDE 1.-4. Improvements
by jimmy88

Score 87.0%
9   Feb 28 2012
Konversation

Chat & Messenging
by Sho

Score 80.0%
9   Nov 15 2011
Eckernfoerde

Wallpaper Other
by Ferdo7

Score 70.0%
9   Nov 14 2011
Autumn in Germany

Wallpaper Other
by JGRgermany

Score 62.5%
9   Nov 12 2011
wacom tablet

System Software
by Etric

Score 85.4%
9   Oct 24 2011
Score 79.2%
9   Oct 15 2011
Yakuake

System Software
by Sho

Score 86.7%
9   Sep 02 2011
Old Boat

Wallpaper Other
by balexandre2

Score 58.6%
9   Jul 02 2011
Akt II

Wallpaper Other
by linuxlex

Score 56.7%
9   Jun 27 2011
Purogrey by LMolr

Plasma Color Schemes
by LMolr

Score 77.3%
3   Jun 22 2011
Losungen

Plasma 4 Widgets
by jwchile

Score 73.0%
9   May 31 2011
A Rainy Day in Istanbul

Wallpaper Other
by kobzeci

Score 72.2%
9   May 21 2011
Score 71.7%
9   May 02 2011
Score 46.0%
3   Apr 30 2011
simply

Wallpaper Other
by shprotyna

Score 63.3%
9   Apr 21 2011
Score 61.7%
9   Mar 26 2011
Score 57.4%
9   Jan 06 2011
Score 80.8%
9   Dec 14 2010
Africa_Sabana

Wallpaper Other
by Futterkiste

Score 70.0%
9   Dec 09 2010
The Amazing View

Wallpaper Other
by ipad

Score 53.8%
9   Dec 08 2010
Score 52.2%
9   Dec 03 2010
Hakassya

Wallpaper Other
by HypperPotam

Score 74.0%
9   Nov 27 2010
Over The Hills

Wallpaper Other
by ipad

Score 53.6%
9   Nov 27 2010
Reflection

Wallpaper Other
by malikdhadha

Score 72.2%
9   Nov 24 2010
NIGHTFeaR 4

Wallpaper Other
by paninaro

Score 72.7%
9   Nov 18 2010
Score 56.0%
3   Nov 18 2010
night desktop

Plasma/KDE Screenshots
by xivona

Score 50.0%
3   Nov 18 2010
Score 46.0%
3   Nov 18 2010
Guitar

Wallpaper Other
by alltiptop

Score 63.3%
9   Nov 18 2010
Facebook Login

KDM4 Themes
by dorian4o4

Score 66.7%
3   Nov 18 2010
HolyServices

Qt Tools
by jst

Score 53.3%
9   Nov 18 2010
KEncFS

System Software
by felmur

Score 80.6%
9   Oct 25 2010
Score 77.8%
9   Oct 25 2010
4 seasons

Wallpaper Other
by DmitryNoD

Score 72.2%
9   Oct 18 2010
Score 45.6%
3   Oct 18 2010
Score 70.0%
9   Oct 13 2010
Milky

Icon Themes
by gokcen

Score 81.5%
9   Sep 30 2010
Linux wallpaper

Wallpaper Other
by alltiptop

Score 52.2%
9   Sep 30 2010
arch linux orbit

Individual Icons/-sets
by giannis12a

Score 53.3%
3   Sep 28 2010
nuclear start

Individual Icons/-sets
by giannis12a

Score 46.0%
3   Sep 28 2010
ubuntu start

Individual Icons/-sets
by giannis12a

Score 46.0%
3   Sep 28 2010
debian start

Individual Icons/-sets
by giannis12a

Score 46.0%
3   Sep 28 2010
debian orbit

Individual Icons/-sets
by giannis12a

Score 46.0%
3   Sep 28 2010
Score 68.0%
9   Sep 28 2010
Logo Debian+KDE icon (Kickoff)

Individual Icons/-sets
by tehdrama

Score 53.8%
3   Sep 27 2010
Tux

Cliparts
by mdh3ll

Score 83.5%
9   Sep 27 2010
Score 63.3%
9   Sep 27 2010
Sword

Drawings/Paintings
by kilometk

Score 70.0%
9   Sep 22 2010