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();
xx = 0;
}
- /*----------------------------------*/
+ //----------------------------------
else if (curnode.nodeName().string() == "br") {
width = 0;
}
- /*----------------------------------*/
+ //----------------------------------
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();
POS_RightDown
};
- /* config */
+ // config
const int mrg = 16;
- /*----------------------------*/
+ //----------------------------
if (!m_htmlPart) return ;
/* 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();