{
/* [0]<html> -> [1]<head> -> [2]<style> */
DOM::HTMLCollection collection = htmlDocument().all();
- DOM::HTMLElement elm;
+ DOM::HTMLElement element;
unsigned int i;
for ( i = 0 ; i < collection.length() ; i++ ) {
- elm = collection.item( i );
- if ( elm.tagName().upper() == "STYLE" ) {
+ element = collection.item( i );
+ if ( element.tagName().upper() == "STYLE" ) {
QString style = QString( "body { font-size: %1pt; font-family: %2; color: %3; background-color: %4; }" )
.arg( Kita::Config::threadFont().pointSize() )
.arg( Kita::Config::threadFont().family() )
style0 += KitaConfig::styleSheetText();
}
- elm.setInnerText( style0 );
+ element.setInnerText( style0 );
htmlDocument().applyChanges();
break;
}
emit mousePressed(); /* to KitaThreadView to focus this view. */
KURL kurl;
- if ( e->url().string() != QString::null )
+ if ( e->url().string() != QString::null ) {
kurl = KURL( Kita::BoardManager::boardURL( m_datURL ), e->url().string() );
+ }
- m_pushctrl = m_pushmidbt = m_pushrightbt = FALSE;
- if ( e->qmouseEvent() ->button() & Qt::RightButton ) m_pushrightbt = TRUE;
- if ( e->qmouseEvent() ->state() & Qt::ControlButton ) m_pushctrl = TRUE;
- if ( e->qmouseEvent() ->button() & Qt::MidButton ) m_pushmidbt = TRUE;
+ if ( e->qmouseEvent()->button() & Qt::RightButton ) {
+ m_isPushedRightButton = TRUE;
+ } else {
+ m_isPushedRightButton = FALSE;
+ }
if ( e->url() != NULL ) {
}
clickAnchor( kurl );
- m_pushctrl = m_pushmidbt = m_pushrightbt = FALSE;
- return ;
+ m_isPushedRightButton = FALSE;
+ return;
}
KHTMLPart::khtmlMousePressEvent( e );
/*-------------------------*/
/* start multi-popup mdde */
- if ( m_pushrightbt && startMultiPopup() ) return ;
+ if ( m_isPushedRightButton && startMultiPopup() ) return ;
/*-------------------------------*/
/* open Kita Navi or goto anchor */
if ( m_popup && m_popup->isVisible() ) {
m_multiPopup = TRUE;
m_popup->moveMouseAbove();
- } else m_multiPopup = FALSE;
+ } else {
+ m_multiPopup = FALSE;
+ }
return m_multiPopup;
}