Re: Bug in Plasma.ScrollWidget or Bug in my head ?

2010-03-02 Thread Cédric Bellegarde
Le Lundi 01 Mars 2010 22:26:37, Aaron J. Seigo a écrit :
 looks like i'll need to add support for sizepolicy setting on
 qgraphicswidget  as well since those aren't in the properties for it :/

I'm not sur to understand:
- Is this a qgraphicswidget bug?
- If yes, can i bypass it?

Thank,

-- 
Cédric Bellegarde
Ensat
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Strange ampersand in Plasma tooltips

2010-03-02 Thread Artur Souza (MoRpHeUz)
On Tuesday 02 March 2010, 08:10 Myriam Schweingruber wrote:
 Strange, AFAIK I have exactly the same configuration as you have, but
 don't see those ampersands here. I also can't remember ever having
 seen those before.

To add more funny to the equation, I had an open bug for the pastebin applet 
where the user is complaining about almost the same issue but for the context 
menu (right click) on pastebin applet and plasma is restarted. I couldn't 
reproduce it here too...

Cheers,

--
Artur Duque de Souza
openBossa
INdT - Instituto Nokia de Tecnologia
--
Blog: http://blog.morpheuz.cc
PGP: 0xDBEEAAC3 @ wwwkeys.pgp.net
--


signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Strange ampersand in Plasma tooltips

2010-03-02 Thread Marco Martin
On Monday 01 March 2010, Mark Kretschmann wrote:
 On Mon, Mar 1, 2010 at 8:32 AM, Mark Kretschmann kretschm...@kde.org 
wrote:
  Attaching a screenshot of this issue.
 
 Erm. Somehow the attachment didn't work, trying again, sorry :)
 
 
 I've also made the file accessible here:
 
 http://mark.kollide.net/ampersand_in_tooltips.png

probably a KLocale::removeAcceleratorMarker() is missing somewhere :)

Cheers,
Marco Martin
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Strange ampersand in Plasma tooltips

2010-03-02 Thread Will Stephenson
On Monday 01 March 2010 08:32:55 Mark Kretschmann wrote:
 I'm having a weird issue here, and I wonder if it's just me, or if
 it's maybe a bug in Plasma:
 
 Many of the tooltips of the Plasma::IconWidget buttons we use in
 Amarok (like in the toolbar and in applets) contain weird ampersand
 characters, that is . I assume they come from keyboard shortcuts,
 but surely they shouldn't be shown in the tooltip, no?
 
 I've asked about this in the #plasma IRC channel before, but noone had
 an idea. Do you have any? :)

What KUIT tags are you using in the i18n'ed strings? Some @info KUIT markup 
adds rich text for use in actions which looks weird in a widget not expecting 
it.

Will
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Strange ampersand in Plasma tooltips

2010-03-02 Thread Marco Martin
On Monday 01 March 2010, Mark Kretschmann wrote:
 Heya,
 
 I'm having a weird issue here, and I wonder if it's just me, or if
 it's maybe a bug in Plasma:
 
 Many of the tooltips of the Plasma::IconWidget buttons we use in
 Amarok (like in the toolbar and in applets) contain weird ampersand
 characters, that is . I assume they come from keyboard shortcuts,
 but surely they shouldn't be shown in the tooltip, no?
 
 I've asked about this in the #plasma IRC channel before, but noone had
 an idea. Do you have any? :)
 
 
 Attaching a screenshot of this issue.

they should be gone now :)
(both on trunk and 4.4 branch)

Cheers,
Marco Martin
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Strange ampersand in Plasma tooltips

2010-03-02 Thread Artur Souza (MoRpHeUz)
On Tuesday 02 March 2010, 10:07 Marco Martin wrote:
 they should be gone now :)
 (both on trunk and 4.4 branch)

For pastebin too ? :)

Cheers,

--
Artur Duque de Souza
openBossa
INdT - Instituto Nokia de Tecnologia
--
Blog: http://blog.morpheuz.cc
PGP: 0xDBEEAAC3 @ wwwkeys.pgp.net
--


signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Strange ampersand in Plasma tooltips

2010-03-02 Thread Marco Martin
On Tuesday 02 March 2010, Artur Souza (MoRpHeUz) wrote:
 On Tuesday 02 March 2010, 10:07 Marco Martin wrote:
  they should be gone now :)
  (both on trunk and 4.4 branch)
 
 For pastebin too ? :)
 

no, just for IconWidget tooltips

-- 
Marco Martin
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Fixing krunner's threading

2010-03-02 Thread Thiago Macieira
Em Segunda-feira 22 Fevereiro 2010, às 19:18:15, Andreas Hartmetz escreveu:
 Now that many of the more prominent crashes in krunner have been fixed
 I think it's time to attack something more theoretic: runners run in
 threads and often don't pay any attention to thread-safety of API they
 use. Two weeks ago I've added a warning to KIO::Scheduler() to warn
 about its use from non-main threads, but so far nobody paid attention.

I'm actually raising the bar here.

I'm turning on QT_FATAL_WARNINGS by default in Qt debug builds (starting with 
Qt 4.7).

It's time people stopped ignoring Qt warnings, which indicate that there are 
problems in your code. I can see these warnings coming out of plasma:

Object::disconnect: Unexpected null parameter
QGraphicsScene::removeItem: cannot remove 0-item

This from krunner:
QObject::killTimer: timers cannot be stopped from another thread
QObject::startTimer: timers cannot be started from another thread

These from khtml:
QPainter::font: Painter not active
QPainter::setFont: Painter not active
QPainter::setPen: Painter not active
QWidget::repaint: Recursive repaint detected
QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::translate: Painter not active
QPainter::setClipRect: Painter not active
QPainter::setPen: Painter not active
QPainter::worldTransform: Painter not active
QPainter::font: Painter not active
QPainter::setFont: Painter not active
QPainter::setPen: Painter not active
QWidget::repaint: Recursive repaint detected

etc.

This means applications triggering Qt warnings will result in SIGABRT and Dr 
Konqi popping up.

I'm hoping to finally bring these warnings to attention. Because clearly 
filling 
up people's $HOME/.xsession-errors isn't enough (mine was over 4GB the other 
day).

If the warning is a problem in Qt or cannot be fixed without Qt help, says so! 
I don't care who's to blame, just as long as those warnings stop showing up.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
  PGP/GPG: 0x6EF45358; fingerprint:
  E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358


signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Plasmate alpha2?

2010-03-02 Thread Aaron J. Seigo
On March 2, 2010, Yuen Hoe Lim wrote:
  Yes, that'd be very nice :) I'd be ok with anything except this weekend.
  
  What about you moofang? Diego?
  
  Fine for me :)
 
 Does friday 5 Mar 14:00 UTC work for you guys? :)

works for me.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Bug in Plasma.ScrollWidget or Bug in my head ?

2010-03-02 Thread Aaron J. Seigo
On March 2, 2010, Cédric Bellegarde wrote:
 Le Lundi 01 Mars 2010 22:26:37, Aaron J. Seigo a écrit :
  looks like i'll need to add support for sizepolicy setting on
  qgraphicswidget  as well since those aren't in the properties for it :/
 
 I'm not sur to understand:
 - Is this a qgraphicswidget bug?

no, just set the size policy on the QGraphicsWidget to be expanding.


-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Fixing krunner's threading

2010-03-02 Thread Aaron J. Seigo
On March 2, 2010, Thiago Macieira wrote:
 are problems in your code. I can see these warnings coming out of plasma:
 
 Object::disconnect: Unexpected null parameter
 QGraphicsScene::removeItem: cannot remove 0-item
 
 This from krunner:
 QObject::killTimer: timers cannot be stopped from another thread
 QObject::startTimer: timers cannot be started from another thread

anyone who can send us (plasma-devel@) backtraces for these will earn one hug 
and/or cookie, your choice. :)

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Help me use plasma activities. Or at least understand.

2010-03-02 Thread Luiz Felipe Talvik
Hey,

I'm having trouble putting plasma's activities to use or even grasping
its concept. I'm writing this email because I'm found out I'm not the
only 
one(http://itmanagement.earthweb.com/osrc/article.php/12068_3867956_1/KDE-and-GNOME-Seven-Irritations-in-Each.htm).
I tried asking about it a year
ago(http://forum.kde.org/viewtopic.php?f=67t=18564), but I've got no
proper answers.

I read a lot about plasma on the mailing list and blogs, I'm a
advanced user, I've used all kde4 versions. And yet I can't use or
even understand plasma activities. I don't know any kde user that
effectively uses activities.

Are there any screen cast showing real usage of plasma activities(not
just features)?
Is the current concept already written in stone or is it changing?
Plasma activities / Virtual desktop == Plasmoid organizer / Windows organizer ?

regards,
Talvik

ps: I know activities can be tied to virtual desktops. But I want to
how it is used with the default kde config.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Strange ampersand in Plasma tooltips

2010-03-02 Thread Michael Jansen
On Tuesday 02 March 2010 14:40:25 Marco Martin wrote:
 On Tuesday 02 March 2010, Artur Souza (MoRpHeUz) wrote:
  On Tuesday 02 March 2010, 10:07 Marco Martin wrote:
   they should be gone now :)
   (both on trunk and 4.4 branch)
  
  For pastebin too ? :)
 
 no, just for IconWidget tooltips

It would be a nice thing to post the solution too. In case someone find this 
thread when having the 
same problem.

Mike
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Bug in Plasma.ScrollWidget or Bug in my head ?

2010-03-02 Thread Cédric Bellegarde
Le Mardi 02 Mars 2010 16:49:15, Aaron J. Seigo a écrit :
 On March 2, 2010, Cédric Bellegarde wrote: 
  Le Lundi 01 Mars 2010 22:26:37, Aaron J. Seigo a écrit :
   looks like i'll need to add support for sizepolicy setting on
   qgraphicswidget  as well since those aren't in the properties for it :/
  
  I'm not sur to understand:
  - Is this a qgraphicswidget bug?
 
 no, just set the size policy on the QGraphicsWidget to be expanding.


No, setting size policy to expanding doesn't work :(

But, i've found a solution.

My view class now inherits Plasma.ScrollView and i've got this function in my 
class:

def updateGeometry (self):

Update ScrollWidget and  QGraphicsWidget geometry

Plasma.ScrollWidget.updateGeometry (self)
self.__widget.setGeometry (self.geometry ())


And like this it works.

Cédric
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Strange ampersand in Plasma tooltips

2010-03-02 Thread Marco Martin
On Tuesday 02 March 2010, Michael Jansen wrote:
 On Tuesday 02 March 2010 14:40:25 Marco Martin wrote:
  On Tuesday 02 March 2010, Artur Souza (MoRpHeUz) wrote:
   On Tuesday 02 March 2010, 10:07 Marco Martin wrote:
they should be gone now :)
(both on trunk and 4.4 branch)
   
   For pastebin too ? :)
  
  no, just for IconWidget tooltips
 
 It would be a nice thing to post the solution too. In case someone find
 this thread when having the same problem.
 

just this one liner

http://websvn.kde.org/trunk/KDE/kdelibs/plasma/widgets/iconwidget.cpp?r1=1097929r2=1097986

Cheers,
Marco Martin
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Help me use plasma activities. Or at least understand.

2010-03-02 Thread Aaron J. Seigo
On March 2, 2010, Luiz Felipe Talvik wrote:
 I'm having trouble putting plasma's activities to use or even grasping
 its concept.

this is not a user support channel, nor am i interested in it becoming one. 
there is quite a bit of information about this topic that can be found in 
various places on the internet, including userbase. but a search engine like 
google can help quite a bit. we don't have the manpower to replace your own 
ability to do research. sorry. :/

we're working on a new UI workflow that should land in KDE SC 4.5 that will 
hopefully make it all a bit clearer for the average user (and hopefully, as a 
result, crystal clear for a power user such as yourself).

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Help me use plasma activities. Or at least understand.

2010-03-02 Thread Luiz Felipe Talvik
Sorry, but I've googled(my forum post is the first entry, and it goes
unanswered), tried the forums, irc channel read a lot of blog posts
for a long time. Since I went trough most channels, I've scalated to
the devs list.

I promise I'll be patient.

On Tue, Mar 2, 2010 at 2:42 PM, Aaron J. Seigo ase...@kde.org wrote:
 On March 2, 2010, Luiz Felipe Talvik wrote:
 I'm having trouble putting plasma's activities to use or even grasping
 its concept.

 this is not a user support channel, nor am i interested in it becoming one.
 there is quite a bit of information about this topic that can be found in
 various places on the internet, including userbase. but a search engine like
 google can help quite a bit. we don't have the manpower to replace your own
 ability to do research. sorry. :/

 we're working on a new UI workflow that should land in KDE SC 4.5 that will
 hopefully make it all a bit clearer for the average user (and hopefully, as a
 result, crystal clear for a power user such as yourself).

 --
 Aaron J. Seigo
 humru othro a kohnu se
 GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

 KDE core developer sponsored by Qt Development Frameworks
 ___
 Plasma-devel mailing list
 Plasma-devel@kde.org
 https://mail.kde.org/mailman/listinfo/plasma-devel

___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Help me use plasma activities. Or at least understand.

2010-03-02 Thread Chani
On March 2, 2010 10:01:23 Luiz Felipe Talvik wrote:
 Sorry, but I've googled(my forum post is the first entry, and it goes
 unanswered), tried the forums, irc channel read a lot of blog posts
 for a long time. Since I went trough most channels, I've scalated to
 the devs list.
 

a lot of blog posts?
like my blog post on planetkde in february that had a screencast on 
activities?

-- 
This message brought to you by eevil bananas and the number 3.
www.chani3.com


signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Help me use plasma activities. Or at least understand.

2010-03-02 Thread Luiz Felipe Talvik
a power user such as myself is feeling a little bit of hostility,
maybe it's just my impression.
a lot of blog posts? is exactly the number of posts that I have read
like my blog post on planetkde in february that had a screencast on
activities yes like those. (a third of the comments on that post can
be categorizer on i don't understand plasma activities, the rest is
about your chocolat voice).

All I wanted was just to see real usage of plasma activities.
No need to give further answers

thanks

On Tue, Mar 2, 2010 at 3:40 PM, Chani chan...@gmail.com wrote:
 On March 2, 2010 10:01:23 Luiz Felipe Talvik wrote:
 Sorry, but I've googled(my forum post is the first entry, and it goes
 unanswered), tried the forums, irc channel read a lot of blog posts
 for a long time. Since I went trough most channels, I've scalated to
 the devs list.


 a lot of blog posts?
 like my blog post on planetkde in february that had a screencast on
 activities?

 --
 This message brought to you by eevil bananas and the number 3.
 www.chani3.com

 ___
 Plasma-devel mailing list
 Plasma-devel@kde.org
 https://mail.kde.org/mailman/listinfo/plasma-devel


___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Help me use plasma activities. Or at least understand.

2010-03-02 Thread Hans Chen
Hi,

From the topic:

Can someone explain this to me? Will this change? Is KDE going to kill
windows concept, or merge it into a plasmoid?

They won't be merged, but there will be an option of link virtual desktops
and activities. That's what I get from reading the forum replies, and I
think they answer your question quite well.

All I wanted was just to see real usage of plasma activities.

Why not post follow-up questions in the forum? :) I didn't see you asking
that in the topic you linked to.
Someone posted such a topic here:
http://forum.kde.org/viewtopic.php?f=15t=83782
This motivated me to write the following blog post:
http://hanswchen.wordpress.com/2009/11/17/how-do-you-use-activities/
Just to clarify my workflow: when I want to, say, work on one of my coding
projects, I switch to the Development activity. I might have some windows
that aren't related to this activity on one virtual desktop - for example, I
typically have my web browser and music player on desktop 1 - but the other
virtual desktops are for coding stuff.

As Aaron pointed out, this mailing list isn't for user support. I would
suggest that you continue to ask in the forums, and if you aren't happy with
the answers, ask follow-up questions.

With best regards,
Hans Chen

On Tue, Mar 2, 2010 at 20:11, Luiz Felipe Talvik tal...@gmail.com wrote:

 a power user such as myself is feeling a little bit of hostility,
 maybe it's just my impression.
 a lot of blog posts? is exactly the number of posts that I have read
 like my blog post on planetkde in february that had a screencast on
 activities yes like those. (a third of the comments on that post can
 be categorizer on i don't understand plasma activities, the rest is
 about your chocolat voice).

 All I wanted was just to see real usage of plasma activities.
 No need to give further answers

 thanks

 On Tue, Mar 2, 2010 at 3:40 PM, Chani chan...@gmail.com wrote:
  On March 2, 2010 10:01:23 Luiz Felipe Talvik wrote:
  Sorry, but I've googled(my forum post is the first entry, and it goes
  unanswered), tried the forums, irc channel read a lot of blog posts
  for a long time. Since I went trough most channels, I've scalated to
  the devs list.
 
 
  a lot of blog posts?
  like my blog post on planetkde in february that had a screencast on
  activities?
 
  --
  This message brought to you by eevil bananas and the number 3.
  www.chani3.com
 
  ___
  Plasma-devel mailing list
  Plasma-devel@kde.org
  https://mail.kde.org/mailman/listinfo/plasma-devel
 
 
 ___
 Plasma-devel mailing list
 Plasma-devel@kde.org
 https://mail.kde.org/mailman/listinfo/plasma-devel

___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Fixing krunner's threading

2010-03-02 Thread Richard Moore
On Tue, Mar 2, 2010 at 2:49 PM, Thiago Macieira thi...@kde.org wrote:
 I'm turning on QT_FATAL_WARNINGS by default in Qt debug builds (starting with
 Qt 4.7).

 It's time people stopped ignoring Qt warnings, which indicate that there are
 problems in your code. I can see these warnings coming out of plasma:

Note that people can enable those now by running their applications
with the environment variable set:

QT_FATAL_WARNINGS=1 myapp

This is a very valuable (and often missed) way of finding such issues.

Rich.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: kdereview/networkmanagement/applet

2010-03-02 Thread Aaron J. Seigo
On March 2, 2010, Sebastian Kügler wrote:
 We should probably expose the setPixmap(QPixmap) method in Plasma::Label's
 API, as this functionality is very useful if you want to display a
 custom-painted pixmap we don't have the path of.

or provide a Plasma::PixmapWidget that doesn't use a QGraphicsProxyWidget at 
all.

it's unfortunate that QGraphicsPixmapItem is a QGraphicsItem and not a 
QGraphicsWidget :/

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: kdereview/networkmanagement/applet

2010-03-02 Thread Marco Martin
On Tuesday 02 March 2010, Aaron J. Seigo wrote:
 On March 2, 2010, Sebastian Kügler wrote:
  We should probably expose the setPixmap(QPixmap) method in
  Plasma::Label's API, as this functionality is very useful if you want to
  display a custom-painted pixmap we don't have the path of.
 
 or provide a Plasma::PixmapWidget that doesn't use a QGraphicsProxyWidget
 at all.
 
 it's unfortunate that QGraphicsPixmapItem is a QGraphicsItem and not a
 QGraphicsWidget :/
yes, agree on Pixmapwidget since it could save some significant weight 
compared to a label

Cheers,
Marco Martin
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: kdereview/networkmanagement/applet

2010-03-02 Thread Alexis Ménard
On Tue, Mar 2, 2010 at 11:17 PM, Marco Martin notm...@gmail.com wrote:
 On Tuesday 02 March 2010, Aaron J. Seigo wrote:
 On March 2, 2010, Sebastian Kügler wrote:
  We should probably expose the setPixmap(QPixmap) method in
  Plasma::Label's API, as this functionality is very useful if you want to
  display a custom-painted pixmap we don't have the path of.

 or provide a Plasma::PixmapWidget that doesn't use a QGraphicsProxyWidget
 at all.

 it's unfortunate that QGraphicsPixmapItem is a QGraphicsItem and not a
 QGraphicsWidget :/
 yes, agree on Pixmapwidget since it could save some significant weight
 compared to a label

Yep 1... It's quite easy to implement...


 Cheers,
 Marco Martin
 ___
 Plasma-devel mailing list
 Plasma-devel@kde.org
 https://mail.kde.org/mailman/listinfo/plasma-devel

___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: kdereview/networkmanagement/applet

2010-03-02 Thread Aaron J. Seigo
On March 2, 2010, Alexis Ménard wrote:
 On Tue, Mar 2, 2010 at 11:17 PM, Marco Martin notm...@gmail.com wrote:
  On Tuesday 02 March 2010, Aaron J. Seigo wrote:
  On March 2, 2010, Sebastian Kügler wrote:
   We should probably expose the setPixmap(QPixmap) method in
   Plasma::Label's API, as this functionality is very useful if you want
   to display a custom-painted pixmap we don't have the path of.
  
  or provide a Plasma::PixmapWidget that doesn't use a
  QGraphicsProxyWidget at all.
  
  it's unfortunate that QGraphicsPixmapItem is a QGraphicsItem and not a
  QGraphicsWidget :/
  
  yes, agree on Pixmapwidget since it could save some significant weight
  compared to a label
 
 Yep 1... It's quite easy to implement...

how about in Qt? QGraphicsPixmapWidget? ;)

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Creating a rectangular icon

2010-03-02 Thread Antony Loebs
On Fri, Feb 26, 2010 at 6:57 PM, Aaron J. Seigo ase...@kde.org wrote:

 On February 26, 2010, Antony Loebs wrote:
  Two problems: one, I don't see how to make a click on a label register,
  and two, while it looks fine on the desktop, if it is started in the
 panel
  it is squashed horizontally (so the image looks like a vertical line
 about
  four or five pixels wide). Additionally, when I rescale the panel, the
  image scales vertically, but not horizontally.

 sounds like a layouting issue; you probably need to set a preferred and/or
 minimum size in your widget.

 remember that panels can be very small, however. it's never fun when a
 widget
 enforces a minimum size that's overly large. :)

  Ok, when I added
self.layout.setPreferredWidth(120)
that displays it correctly, but now it doesn't expand or contract at all
horizontally. It does expand and contract vertically, however. What should I
add so that the height and the width of the image scale relative to each
other?

 ---
  import subprocess
 
  self.button = Plasma.Label(self.applet)
  self.button.setImage(self.package().path() + contents/images/image.png)

 that should be: self.package().filePath(images, image.png)


When I do that, I get a big red button with a white X. (This is using
4.4.1-0ubuntu1 on Kubuntu Lucid, just upgraded today.)

Also, I still can't get clicks on the label to register with
self.connect(self.button, SIGNAL(linkActivated()), self.notify)
Any hints?

Thanks in advance!
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Creating a rectangular icon

2010-03-02 Thread Antony Loebs
On Tue, Mar 2, 2010 at 8:42 PM, Antony Loebs barefootedjournal...@gmail.com
 wrote:



 On Fri, Feb 26, 2010 at 6:57 PM, Aaron J. Seigo ase...@kde.org wrote:

  self.button = Plasma.Label(self.applet)
  self.button.setImage(self.package().path() +
 contents/images/image.png)

 that should be: self.package().filePath(images, image.png)


 When I do that, I get a big red button with a white X. (This is using
 4.4.1-0ubuntu1 on Kubuntu Lucid, just upgraded today.)

 Oops, my bad. I forgot a closing parenthesis at the end. Helps to run it
through plasmoidviewer... :)
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel