C++ (Qt) qDebug() << "Before delete item"; trmodel->removeRow(index.row(), index.parent()); qDebug() << "Arter delete item";
Before delete itemRecordtable tools updateTry delete record num 2 table count 3Remove dir "mytetradata/base/0000000388" startMove file from "mytetradata/base/0000000388/text.txt" to "mytetradata/trash/0000000686_text.txt"Try delete directory "mytetradata/base/0000000388"Directory "mytetradata/base/0000000388" delete succesfullRecordtable tools update <--------------- Это началась обработка слотаIn function recordview_select()Save current record text()ASSERT failure in QList<T>::at: "index out of range", file /usr/local/Trolltech/Qt-4.4.1/include/QtCore/qlist.h, line 393Aborted (core dumped)
C++ (Qt)bool TreeModel::removeRows(int position, int rows, const QModelIndex &parent){ TreeItem *parentItem = getItem(parent); bool success = true; beginRemoveRows(parent, position, position + rows - 1); success = parentItem->removeChildren(position, rows); endRemoveRows(); return success;}
C++ (Qt) // Сигналы для обновления панели инструментов connect(recordview, SIGNAL(activated(const QModelIndex &)), this, SLOT(tools_update(void))); connect(recordview, SIGNAL(clicked(const QModelIndex &)), this, SLOT(tools_update(void))); connect(recordview, SIGNAL(doubleClicked(const QModelIndex &)), this, SLOT(tools_update(void))); connect(recordview, SIGNAL(entered(const QModelIndex &)), this, SLOT(tools_update(void))); connect(recordview, SIGNAL(pressed(const QModelIndex &)), this, SLOT(tools_update(void))); connect(QApplication::clipboard(),SIGNAL(dataChanged()), this, SLOT(tools_update(void)));
C++ (Qt) // Сигнал что ветка выбрана мышкой connect(knowtree,SIGNAL(pressed(const QModelIndex &)), this,SLOT(on_knowtree_clicked(const QModelIndex &))); // Сигнал что ветка выбрана стрелками на клавиатуре connect(knowtree->selectionModel(), SIGNAL(currentRowChanged (const QModelIndex&, const QModelIndex&)), this, SLOT(on_knowtree_clicked(const QModelIndex&)));