From 97b5b8009254004608feefb903cbf44abaa099f6 Mon Sep 17 00:00:00 2001 From: Casper van Donderen Date: Mon, 7 May 2012 18:49:48 +0200 Subject: Doc: Modularize QtWidgets documentation. This change moves the snippets and images to the modularized directories. Change-Id: Idec1afb9db7ea6add1ca4cf25ec4019d8bce0c4d Reviewed-by: Marius Storm-Olsen --- src/widgets/itemviews/qitemdelegate.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/widgets/itemviews/qitemdelegate.cpp') diff --git a/src/widgets/itemviews/qitemdelegate.cpp b/src/widgets/itemviews/qitemdelegate.cpp index bd9f4510f7..68d31c7dd2 100644 --- a/src/widgets/itemviews/qitemdelegate.cpp +++ b/src/widgets/itemviews/qitemdelegate.cpp @@ -400,7 +400,7 @@ QString QItemDelegatePrivate::valueToText(const QVariant &value, const QStyleOpt For example, a selected item may need to be displayed differently to unselected items, as shown in the following code: - \snippet examples/itemviews/pixelator/pixeldelegate.cpp 2 + \snippet itemviews/pixelator/pixeldelegate.cpp 2 \dots After painting, you should ensure that the painter is returned to its @@ -1136,21 +1136,21 @@ QRect QItemDelegate::textRectangle(QPainter * /*painter*/, const QRect &rect, key press events are handled by default: \list - \li \gui Tab - \li \gui Backtab - \li \gui Enter - \li \gui Return - \li \gui Esc + \li \uicontrol Tab + \li \uicontrol Backtab + \li \uicontrol Enter + \li \uicontrol Return + \li \uicontrol Esc \endlist - In the case of \gui Tab, \gui Backtab, \gui Enter and \gui Return + In the case of \uicontrol Tab, \uicontrol Backtab, \uicontrol Enter and \uicontrol Return key press events, the \a editor's data is comitted to the model - and the editor is closed. If the \a event is a \gui Tab key press + and the editor is closed. If the \a event is a \uicontrol Tab key press the view will open an editor on the next item in the - view. Likewise, if the \a event is a \gui Backtab key press the + view. Likewise, if the \a event is a \uicontrol Backtab key press the view will open an editor on the \e previous item in the view. - If the event is a \gui Esc key press event, the \a editor is + If the event is a \uicontrol Esc key press event, the \a editor is closed \e without committing its data. \sa commitData(), closeEditor() -- cgit v1.2.3