// , m_currentJob( 0 )
, m_labelMaxLength( 60 )
, m_popup( 0 )
+ , m_popupTimer( 0 )
{
m_threadPart = new KitaHTMLPart(threadFrame);
QHBoxLayout* aLayout = new QHBoxLayout(threadFrame);
#if 0
// BUG: view¤«¤é¥Þ¥¦¥¹¥«¡¼¥½¥ë¤¬³°¤ì¤¿»þ¤ÎÂнè¤ò¤·¤Æ¤¤¤Ê¤¤
+ // ¤È¤ê¤¢¤¨¤ºTimer¤Ç¤´¤Þ¤«¤·¤¿¤±¤É¡¢ËÜÅö¤ÏKHTMLView¤Î¥µ¥Ö¥¯¥é¥¹¤ò¤Ä¤¯¤Ã¤Æ¡¢
+ // leaveEvent()¤ò¼ÂÁõ¤¹¤ëɬÍפ¬¤¢¤ë(¤¿¤Ö¤ó)
if ( ! url.isEmpty() ) {
KHTMLView* view = m_threadPart->view();
if( ! m_popup ) {
m_popup = new QLabel( view, "res_popup", WStyle_Customize | WStyle_NoBorder | WStyle_Tool );
}
+ if( ! m_popupTimer ) {
+ m_popupTimer = new QTimer( m_popup );
+ connect( m_popupTimer, SIGNAL( timeout() ), this, SLOT( popupTimeout() ) );
+ }
+
m_popup->setText( url );
m_popup->move( view->mapFromGlobal( QCursor::pos() ) );
m_popup->adjustSize();
m_popup->show();
+
+ m_popupTimer->start( 10000, TRUE );
} else {
m_popup->hide();
}
#endif
}
+void KitaThreadView::popupTimeout()
+{
+ qDebug("foo");
+ if( m_popup ) {
+ m_popup->hide();
+ }
+ qDebug("bar");
+}
+
void KitaThreadView::slotPopupMenu( KXMLGUIClient *client, const QPoint &global, const KURL &url, const QString &mimeType, mode_t mode)
{
KActionCollection * collection = client->actionCollection();
int m_labelMaxLength;
Kita::PostInfo m_postInfo;
QLabel* m_popup;
+ QTimer* m_popupTimer;
void insertSearchCombo();
KURL filterReadCGI( const KURL& );
void slotBookmarkButtonClicked( bool on );
void slotWriteButtonClicked();
void slotShowErrorDialog( const QString& input, const KURL& urlOfInput = 0 );
+ void popupTimeout();
signals:
void showThreadCompleted( const KURL& threadUrl );