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:
parent
deea48ef6a
commit
8e1107fb22
@ -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)
|
||||||
|
|
||||||
|
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user