/** * Returns the height of a line. * * @return the height of a row of text * @exception SWTException * <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver * </ul> */ public int getLineHeight() { checkWidget(); if (variant == TextUtils.LINE_EDIT) { return OS.QWidget_QFontMetrics_lineSpacing(topHandle); } else { return OS.QTextEdit_swt_getLineHeight(topHandle); } }