crossplatform.ru

Здравствуйте, гость ( Вход | Регистрация )

 
Ответить в данную темуНачать новую тему
> Using Drag and Drop with Item Views, Адаптация перевода.
Admin
  опции профиля:
сообщение 13.12.2007, 12:08
Сообщение #1


Администратор
****

Группа: Администратор
Сообщений: 646
Регистрация: 9.10.2007
Из: crossplatform.ru
Пользователь №: 1

Спасибо сказали: 17 раз(а)




Репутация:   2  


Using Drag and Drop with Item Views
http://crossplatform.ru/documentation/qtdo...el-view-dnd.php

Сделано.

Осталось не переведенным:
Цитата
When a drop occurs, the model index corresponding to the parent item will either be valid, indicating that the drop occurred on an item, or it will be invalid, indicating that the drop occurred somewhere in the view that corresponds to top level of the model.


Цитата
We initially examine the row number supplied to see if we can use it to insert items into the model, regardless of whether the parent index is valid or not.


Цитата
If the parent model index is valid, the drop occurred on an item. In this simple list model, we find out the row number of the item and use that value to insert dropped items into the top level of the model.
Перейти в начало страницы
 
Быстрая цитата+Цитировать сообщение

Быстрый ответОтветить в данную темуНачать новую тему
Теги
Нет тегов для показа


1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0




RSS Текстовая версия Сейчас: 29.3.2024, 8:26