[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    KColorPicker and other plasmoids
From:       Toussis Manolis <manolis () koppermind ! homelinux ! org>
Date:       2008-06-16 9:13:43
Message-ID: 200806161213.43973.manolis () koppermind ! homelinux ! org
[Download RAW message or body]

I noticed that KColorPicker uses a minimum Pushbutton size that is bigger that 
it actually needs.
I read the source code, and it seems that in the constructor of the applet we 
can use something like:

    m_grabButton = new PickerButton(this);
    m_grabButton->SetMinimumSize(22,22);
    ....
    m_historyButton = new PickerButton(this);
    m_historyButton->SetMinimumSize(22,22);

So the button cat be only 22x22 if there is no space.
I am not familiar with layouts though, so I cannot know if it works...
It works for my applet, where I don't use layouts...

ps. The same problem applies to other widgets (for example calculator)

_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic