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/qlistwidget.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/widgets/itemviews/qlistwidget.cpp') diff --git a/src/widgets/itemviews/qlistwidget.cpp b/src/widgets/itemviews/qlistwidget.cpp index 01cb7b4235..4a17b65328 100644 --- a/src/widgets/itemviews/qlistwidget.cpp +++ b/src/widgets/itemviews/qlistwidget.cpp @@ -474,7 +474,7 @@ Qt::DropActions QListModel::supportedDropActions() const List items can be inserted automatically into a list, when they are constructed, by specifying the list widget: - \snippet doc/src/snippets/qlistwidget-using/mainwindow.cpp 2 + \snippet qlistwidget-using/mainwindow.cpp 2 Alternatively, list items can also be created without a parent widget, and later inserted into a list using QListWidget::insertItem(). @@ -1154,7 +1154,7 @@ void QListWidgetPrivate::_q_dataChanged(const QModelIndex &topLeft, List widgets are constructed in the same way as other widgets: - \snippet doc/src/snippets/qlistwidget-using/mainwindow.cpp 0 + \snippet qlistwidget-using/mainwindow.cpp 0 The selectionMode() of a list widget determines how many of the items in the list can be selected at the same time, and whether complex selections @@ -1166,15 +1166,15 @@ void QListWidgetPrivate::_q_dataChanged(const QModelIndex &topLeft, parent widget and added to the list later. If a list widget already exists when the items are constructed, the first method is easier to use: - \snippet doc/src/snippets/qlistwidget-using/mainwindow.cpp 1 + \snippet qlistwidget-using/mainwindow.cpp 1 If you need to insert a new item into the list at a particular position, then it should be constructed without a parent widget. The insertItem() function should then be used to place it within the list. The list widget will take ownership of the item. - \snippet doc/src/snippets/qlistwidget-using/mainwindow.cpp 6 - \snippet doc/src/snippets/qlistwidget-using/mainwindow.cpp 7 + \snippet qlistwidget-using/mainwindow.cpp 6 + \snippet qlistwidget-using/mainwindow.cpp 7 For multiple items, insertItems() can be used instead. The number of items in the list is found with the count() function. To remove items from the @@ -1258,7 +1258,7 @@ void QListWidgetPrivate::_q_dataChanged(const QModelIndex &topLeft, This signal is emitted when the \a item is activated. The \a item is activated when the user clicks or double clicks on it, depending on the system configuration. It is also activated when the user presses the - activation key (on Windows and X11 this is the \gui Return key, on Mac OS + activation key (on Windows and X11 this is the \uicontrol Return key, on Mac OS X it is \key{Ctrl+0}). */ -- cgit v1.2.3