TextEditor: Remove unneeded ifdefs.

Change-Id: I21b508b4fc911296aee1c077445c7d6c1e765c20
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
Christian Kandeler
2012-11-06 15:45:23 +01:00
parent 5b7c86d931
commit e64543aa61
2 changed files with 4 additions and 15 deletions

View File

@@ -2606,13 +2606,7 @@ void BaseTextEditorWidgetPrivate::snippetTabOrBacktab(bool forward)
QPoint BaseTextEditorWidget::toolTipPosition(const QTextCursor &c) const
{
const QPoint cursorPos = mapToGlobal(cursorRect(c).bottomRight() + QPoint(1,1));
return cursorPos + QPoint(d->m_extraArea->width(),
#ifdef Q_OS_WIN
-24
#else
-16
#endif
);
return cursorPos + QPoint(d->m_extraArea->width(), HostOsInfo::isWindowsHost() ? -24 : -16);
}
void BaseTextEditorWidget::processTooltipRequest(const QTextCursor &c)