public int getBorderWidth() {
   checkWidget();
   if (variant == TextUtils.LINE_EDIT) {
     return (style & SWT.BORDER) != 0 ? OS.QLineEdit_swt_getBorderWidth(topHandle) : 0;
   } else {
     return super.getBorderWidth();
   }
 }
  public Rectangle computeTrim(int x, int y, int width, int height) {
    checkWidget();

    if (variant == TextUtils.LINE_EDIT) {
      if ((style & SWT.BORDER) != 0) {
        int border = OS.QLineEdit_swt_getBorderWidth(topHandle);
        x -= border;
        y -= border;
        width += 2 * border;
        height += 2 * border;
      }
      return new Rectangle(x, y, width, height);
    } else {
      return super.computeTrim(x, y, width, height);
    }
  }