Doc: Compile more GUI snippets
Compile snippets from snippets/code. Fix minor issues (e.g. whitespace, missing semi-colon) in passing. Done-with: Nico Vertriest <nico.vertriest@qt.io> Task-number: QTBUG-81486 Change-Id: Ifbdd5c3152e84c608a6562f4061075b61331a5d6 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>bb10
parent
6454d227fa
commit
f0fb5eac85
|
|
@ -4,3 +4,4 @@ QT += core gui widgets
|
|||
|
||||
SOURCES = \
|
||||
doc_src_richtext.cpp
|
||||
src_gui_accessible_qaccessible.cpp
|
||||
|
|
|
|||
|
|
@ -47,9 +47,17 @@
|
|||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
#include <QAccessible>
|
||||
|
||||
namespace src_gui_accessible_qaccessible {
|
||||
class MyWidget
|
||||
{
|
||||
void setFocus(Qt::FocusReason reason);
|
||||
};
|
||||
QAccessibleInterface *f = nullptr;
|
||||
|
||||
//! [1]
|
||||
typedef QAccessibleInterface* myFactoryFunction(const QString &key, QObject *);
|
||||
typedef QAccessibleInterface *myFactoryFunction(const QString &key, QObject *);
|
||||
//! [1]
|
||||
|
||||
//! [2]
|
||||
|
|
@ -61,3 +69,4 @@ void MyWidget::setFocus(Qt::FocusReason reason)
|
|||
}
|
||||
//! [2]
|
||||
|
||||
} // src_gui_accessible_qaccessible
|
||||
|
|
|
|||
Loading…
Reference in New Issue