src/3rdparty/webkit/WebKit/qt/Api/qwebpage.cpp
changeset 19 fcece45ef507
parent 18 2f34d5167611
child 29 b72c6db6890b
equal deleted inserted replaced
18:2f34d5167611 19:fcece45ef507
  1246             break;
  1246             break;
  1247         }
  1247         }
  1248 #if QT_VERSION >= 0x040600
  1248 #if QT_VERSION >= 0x040600
  1249         case QInputMethodEvent::Selection: {
  1249         case QInputMethodEvent::Selection: {
  1250             if (renderTextControl) {
  1250             if (renderTextControl) {
  1251                 renderTextControl->setSelectionStart(a.start);
  1251                 renderTextControl->setSelectionStart(qMin(a.start, (a.start + a.length)));
  1252                 renderTextControl->setSelectionEnd(a.start + a.length);
  1252                 renderTextControl->setSelectionEnd(qMax(a.start, (a.start + a.length)));
  1253             }
  1253             }
  1254             break;
  1254             break;
  1255         }
  1255         }
  1256 #endif
  1256 #endif
  1257         }
  1257         }