OSDN Git Service

Use `//' style comments
[kita/kita.git] / src / respopup.cpp
index 01eaf44..5240bd3 100644 (file)
@@ -102,14 +102,14 @@ void ResPopup::adjustSize()
         QRect qr = curnode.getRect();
         int tmpwd = qr.right() - qr.left();
 
-        /*----------------------------------*/
+        //----------------------------------
 
         if (curnode.nodeType() == DOM::Node::TEXT_NODE) {
             if (xx == 0) xx = qr.left();
             width += tmpwd;
         }
 
-        /*----------------------------------*/
+        //----------------------------------
 
         else if (curnode.nodeName().string() == "div") {
             if (leftmrg == 0) leftmrg = qr.left();
@@ -117,7 +117,7 @@ void ResPopup::adjustSize()
             xx = 0;
         }
 
-        /*----------------------------------*/
+        //----------------------------------
 
         else if (curnode.nodeName().string() == "br") {
             width = 0;
@@ -125,12 +125,12 @@ void ResPopup::adjustSize()
         }
 
 
-        /*----------------------------------*/
+        //----------------------------------
 
         if (leftmrg + xx + width > maxwidth) maxwidth = leftmrg + xx + width;
         if (qr.bottom() > maxheight) maxheight = qr.bottom();
 
-        /* move to the next node */
+        // move to the next node
         DOM::Node next = curnode.firstChild();
 
         if (next.isNull()) next = curnode.nextSibling();
@@ -166,11 +166,11 @@ void ResPopup::adjustPos(const QPoint& point)
         POS_RightDown
     };
 
-    /* config */
+    // config
 
     const int mrg = 16;
 
-    /*----------------------------*/
+    //----------------------------
 
     if (!m_htmlPart) return ;
 
@@ -276,11 +276,11 @@ void ResPopup::adjustPos(const QPoint& point)
 /* move mouse pointer above the popup frame */  /* public */
 void ResPopup::moveMouseAbove()
 {
-    /* config */
+    // config
 
     const int mrg = 10;
 
-    /*-------------------------------*/
+    //-------------------------------
 
     QPoint pos = QCursor::pos();
     int cx = pos.x(), cy = pos.y();