Right clicking on applet on panel gets different events

2009-12-30 Thread Dong Tiger
Hi, The applet has a QWidget embedded through QGraphicsProxyWidget. When moved to a panel, the first several right clicking will trigger QGraphicsView::contextMenuEvent, which is expected. But after that, QGraphicsProxyWidget::mouseReleaseEvent will be triggered instead. Here is the backtraces fo

Re: Plasma::Package::registerPackage stops working?

2009-07-26 Thread Dong Tiger
2009/7/25 Aaron J. Seigo > On Friday 24 July 2009, Dong Tiger wrote: > > After removing the line of "X-KDE-ParentApp=", it appears in the dialog. > > aha! and looking at the code in libplasma, the reason for that is fairly > obvious. i'll be committing (and ba

Re: Plasma::Package::registerPackage stops working?

2009-07-24 Thread Dong Tiger
After removing the line of "X-KDE-ParentApp=", it appears in the dialog. 2009/7/23 Dong Tiger > Below is the generated desktop file for one Google gadget. > > [Desktop Entry] > Comment=Got Weather? Displays weather conditions inside a 3D glass sphere. > Encoding=UTF-8 &

Re: Plasma::Package::registerPackage stops working?

2009-07-23 Thread Dong Tiger
On Wednesday 22 July 2009, Dong Tiger wrote: > > 2009/7/23 Aaron J. Seigo > > > > > On Wednesday 22 July 2009, Dong Tiger wrote: > > > > I found I can't add Google Gadget into plasma any more. Google > Gadget > > > > in plasma uses Plasma::Pac

Re: Plasma::Package::registerPackage stops working?

2009-07-22 Thread Dong Tiger
2009/7/23 Aaron J. Seigo > On Wednesday 22 July 2009, Dong Tiger wrote: > > I found I can't add Google Gadget into plasma any more. Google Gadget in > > plasma uses Plasma::Package::registerPackage to add gadgets into plasma. > It > > used to work. > > * is

How a script engine knows all plasmoid installed?

2009-07-22 Thread Dong Tiger
Hi, I need to know that so one google gadget won't be installed as plasmoid twice. Any suggestion on how to do that? Is it a common request among script engines? Thanks -- Tiger ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/ma

Re: Plasma::Package::registerPackage stops working?

2009-07-22 Thread Dong Tiger
Now I remember installPackage is used to install plasmoid from local file. I can use plasmodviewer to run installed google gadgets but they just don't show up in the "Add Widget..." dialog. 2009/7/22 Marco Martin > On Wednesday 22 July 2009, Dong Tiger wrote: > > Hi,

Plasma::Package::registerPackage stops working?

2009-07-21 Thread Dong Tiger
Hi, I found I can't add Google Gadget into plasma any more. Google Gadget in plasma uses Plasma::Package::registerPackage to add gadgets into plasma. It used to work. I saw there is another method installPackage in Plasma::Package. Should it be used instead of registerPackage? One more thing I a

Re: How to adjust applet size according to its child QGraphicsWidget?

2009-02-25 Thread Dong Tiger
size of the layout change. > The question is how can I do it? When the embedded QGraphicsWidget need to enlarge, say from 200x200 to 400x400, how can I decide what the applet size should be? > > 2008/12/30 Dong Tiger > >> Hi, >> >> A QGraphicsWidget is

Re: How to adjust applet size according to its child QGraphicsWidget?

2008-12-30 Thread Dong Tiger
No luck:( 2008/12/30 Marco Martin > On Tuesday 30 December 2008, Dong Tiger wrote: > > Hi, > > > > A QGraphicsWidget is embeded into Plasma::Applet through > > QGraphicsLinearLayout. When this QGraphicsWidget's size changes, how to > get > > the applet

How to adjust applet size according to its child QGraphicsWidget?

2008-12-30 Thread Dong Tiger
Hi, A QGraphicsWidget is embeded into Plasma::Applet through QGraphicsLinearLayout. When this QGraphicsWidget's size changes, how to get the applet's size adjusted accordingly? The code snippet looks like: child = new MyGraphicsWidget(applet); layout = new QGraphicsLinearLayout(applet); la

Congratulations and some ideas

2008-11-28 Thread Dong Tiger
Hi all, I see KDE4.2 beta1 is warmly welcomed by community. I have used KDE4.2 all the time for a few months. I have to say it's getting greater and greater. Congratulations to all people here:) I have a few ideas that I would like to have (Maybe in KDE4.3). First is that applications can be min

Re: custom widget browsers, Add Applet dialog

2008-10-14 Thread Dong Tiger
Cool! Thanks Aaron. -- Tiger 2008/10/14 Aaron J. Seigo <[EMAIL PROTECTED]> > hi all.. > > i've made it possible to add a custom widget browser to the Add Applet > dialog > via a PackageStructure plugin. this should allow things to happen like the > Google Gadgets to launch the browser dialog for

Show customized context menu in applet and appletscript

2008-10-09 Thread Dong Tiger
Hi, For example, the context menu shown by folderview when right clicking on a file icon doesn't have menu items like "Remove this folder view" and "Desktop options". Folderview achieves this by reimplementing mousePressEvent. But in an AppletScript subclass, there is no mousePressEvent to reimpl

Re: A screen shot and a question

2008-09-16 Thread Dong Tiger
2008/9/16 Aaron J. Seigo <[EMAIL PROTECTED]> > On Tuesday 16 September 2008, Marco Martin wrote: > > On Tuesday 16 September 2008, Dong Tiger wrote: > > > Hi all, > > > > > > I tried to make Google Gadgets(GG in short) to work on plasma panel. > He

How to refer to $PREFIX/share/apps/plasma/plasmoids in CMakeLists.txt?

2008-09-15 Thread Dong Tiger
Hi, I need to install something into this directory. This directory must have a name, just like $PREFIX/share/kde4/services has a name as ${SERVICES_INSTALL_DIR}. Thanks, -- Tiger ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/m

Can you review my patch?

2008-09-08 Thread Dong Tiger
Hi Aaron, Recently I've made some changes to GGL in KDE. Since it'll be my first commit to kde's svn, I am wondering if you can review this patch. The changes include: 1. Improved CMake script for ggl 2. Moved Applet::setHasConfigurationInterface(bool hasInterface) to public 3. A few other change