Image 01
profile-image

KDEfanboy

KDEfanboy KDEfanboy
Utilities
test
Digg.com plugin for Konqueror

Utilities 10 comments

Score 50.0%
Aug 15 2006
Hmm, I've tried some profiles and I can't get anything like this. Try emailing or on freenode sending me a konqueror profile and perhaps a screenshot and I'll see if I can replicate it. Any other Gentoo users experience it? Does it stay in that relative position even after resizing? In the meantime, I don't know what could cause the part width() to return different responses for different profiles.. so you might try explicitly calling adjustSize() on the new widget, and/or increase the timeout to reposition the widget. Something like,

--- plugin_digg.cpp.old 2006-08-18 01:08:25.000000000 -0600
+++ plugin_digg.cpp 2006-08-18 01:20:18.000000000 -0600
@@ -54,7 +54,7 @@ PluginDigg::~PluginDigg()

bool PluginDigg::eventFilter(QObject *object, QEvent *event)
{
- if (m_diggPluginWidget && event->type() == QEvent::Resize) QTimer::singleShot(0, this, SLOT(slotSetDiggPluginWidgetPosition()));
+ if (m_diggPluginWidget && event->type() == QEvent::Resize) QTimer::singleShot(1000, this, SLOT(slotSetDiggPluginWidgetPosition()));
return KParts::Plugin::eventFilter(object, event);
}

@@ -64,6 +64,7 @@ void PluginDigg::slotToggleDiggPluginWid
if (m_diggPluginWidget) m_diggPluginWidget->setShown(!m_diggPluginWidget->isVisible());
else {
m_diggPluginWidget = new DiggPluginWidget((QWidget*)(m_part->widget()->parent()), "digg");
+ m_diggPluginWidget->adjustSize();
connect(m_diggPluginWidget, SIGNAL(submitUrl(const KURL &)), SLOT(slotSubmitUrl(const KURL &)));

setWidgetPosition(m_diggPluginWidget); - Aug 18 2006
Yw! I've been wanting to Digg but I needed something first to make it all easier in my browser of choice. :P Glad to see another find it useful too! Thanks for the digg; if it's useful to more Konqueror diggers, I'm glad for that too. :) - Aug 15 2006