Definitely make sense.
I just spent a few hours to make the old code work again and tried to adopt
WoC approach.
At first, I tried with following code in GglAppletScript :
QGraphicsProxyWidget* proxy = new QGraphicsProxyWidget(applet_);
proxy->setWidget(widget_); // widget_ is QtViewWidget which shows a
google gadget view
proxy->show();
proxy->setParent(applet_);
And in GglAppletScript::paintInterface, I do nothing.
With this code, Google gadgets are shown outside plasmoid applets. So I
modified the above code as following:
QGraphicsProxyWidget* proxy = new QGraphicsProxyWidget(applet_);
proxy->setWidget(widget_);
proxy->show();
QGraphicsLinearLayout *layout = new QGraphicsLinearLayout(applet_);
layout->setContentsMargins(0,0,0,0);
layout->setSpacing(0);
layout->addItem(proxy);
applet_->setLayout(layout);
Then I got blank plasmoids. The QtViewWidget didn't show up at all. So can
you give me some hints about the right way to handle WoC within
AppletScript?
2008/6/6 Aaron J. Seigo <ase...@kde.org>:
> On Thursday 05 June 2008, Dong Tiger wrote:
> > After KDE's WoC integration, we decided to stop working on it till things
> > calm down. Now the first beta of KDE 4.1 was just out. I think it's the
> > right time to start it again. We'll make these code work again and then
> > release it to public.
> that is beyond awesome. if it makes sense, we could also host the plasma
> integration code in our svn alongside the other widget bridges.
> --
> 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 Trolltech