Fix compiler warnings in accessible code.

- Add missing return value.
- Remove unused static functions.

Change-Id: I0271cacc2a01b33209c4d9d2d958ad89924f8951
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
This commit is contained in:
Friedemann Kleint 2012-02-07 16:35:53 +01:00 committed by Qt by Nokia
parent deea48ef6a
commit 8e1107fb22
2 changed files with 1 additions and 24 deletions

View File

@ -106,30 +106,6 @@ QList<QWidget*> childWidgets(const QWidget *widget, bool includeTopLevel)
\internal \internal
*/ */
static QTextBlock qTextBlockAt(const QTextDocument *doc, int pos)
{
Q_ASSERT(pos >= 0);
QTextBlock block = doc->begin();
int i = 0;
while (block.isValid() && i < pos) {
block = block.next();
++i;
}
return block;
}
static int qTextBlockPosition(QTextBlock block)
{
int child = 0;
while (block.isValid()) {
block = block.previous();
++child;
}
return child;
}
/*! /*!
\fn QAccessibleTextEdit::QAccessibleTextEdit(QWidget* widget) \fn QAccessibleTextEdit::QAccessibleTextEdit(QWidget* widget)

View File

@ -390,6 +390,7 @@ QAccessibleInterface *QAccessibleWidget::focusChild() const
if (isAncestor(widget(), fw) || fw == widget()) if (isAncestor(widget(), fw) || fw == widget())
return QAccessible::queryAccessibleInterface(fw); return QAccessible::queryAccessibleInterface(fw);
return 0;
} }
/*! \reimp */ /*! \reimp */