.exe!StatTreeCtrl::parent(const QModelIndex & index)Строка 173 C++ Qt5Cored.dll!QModelIndex::parent()Строка 417 C++ Qt5Widgetsd.dll!QTreeView::drawRow(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index)Строка 1672 C++ Qt5Widgetsd.dll!QTreeView::drawTree(QPainter * painter, const QRegion & region)Строка 1511 C++ Qt5Widgetsd.dll!QTreeView::paintEvent(QPaintEvent * event)Строка 1340 C++ Qt5Widgetsd.dll!QWidget::event(QEvent * event)Строка 8938 C++ Qt5Widgetsd.dll!QFrame::event(QEvent * e)Строка 550 C++ Qt5Widgetsd.dll!QAbstractScrollArea::viewportEvent(QEvent * e)Строка 1213 C++ Qt5Widgetsd.dll!QAbstractItemView::viewportEvent(QEvent * event)Строка 1748 C++ Qt5Widgetsd.dll!QTreeView::viewportEvent(QEvent * event)Строка 1321 C++ Qt5Widgetsd.dll!QAbstractScrollAreaPrivate::viewportEvent(QEvent * event)Строка 111 C++ Qt5Widgetsd.dll!QAbstractScrollAreaFilter::eventFilter(QObject * o, QEvent * e)Строка 127 C++ Qt5Cored.dll!QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject * receiver, QEvent * event)Строка 1099 C++ Qt5Widgetsd.dll!QApplicationPrivate::notify_helper(QObject * receiver, QEvent * e)Строка 3795 C++ Qt5Widgetsd.dll!QApplication::notify(QObject * receiver, QEvent * e)Строка 3762 C++ Qt5Cored.dll!QCoreApplication::notifyInternal2(QObject * receiver, QEvent * event)Строка 988 C++ Qt5Cored.dll!QCoreApplication::sendSpontaneousEvent(QObject * receiver, QEvent * event)Строка 234 C++ Qt5Widgetsd.dll!QWidgetPrivate::sendPaintEvent(const QRegion & toBePainted)Строка 5708 C++> Qt5Widgetsd.dll!QWidgetPrivate::drawWidget(QPaintDevice * pdev, const QRegion & rgn, const QPoint & offset, int flags, QPainter * sharedPainter, QWidgetBackingStore * backingStore)Строка 5649 C++ Qt5Widgetsd.dll!QWidgetBackingStore::doSync()Строка 1395 C++ Qt5Widgetsd.dll!QWidgetBackingStore::sync()Строка 1180 C++ Qt5Widgetsd.dll!QWidgetPrivate::syncBackingStore()Строка 1964 C++ Qt5Widgetsd.dll!QWidget::event(QEvent * event)Строка 9101 C++ Qt5Widgetsd.dll!QMainWindow::event(QEvent * event)Строка 1544 C++ Qt5Widgetsd.dll!QApplicationPrivate::notify_helper(QObject * receiver, QEvent * e)Строка 3799 C++ Qt5Widgetsd.dll!QApplication::notify(QObject * receiver, QEvent * e)Строка 3762 C++ Qt5Cored.dll!QCoreApplication::notifyInternal2(QObject * receiver, QEvent * event)Строка 988 C++ Qt5Cored.dll!QCoreApplication::sendEvent(QObject * receiver, QEvent * event)Строка 231 C++ Qt5Cored.dll!QCoreApplicationPrivate::sendPostedEvents(QObject * receiver, int event_type, QThreadData * data)Строка 1649 C++ Qt5Cored.dll!QEventDispatcherWin32::sendPostedEvents()Строка 1295 C++ qwindowsd.dll!QWindowsGuiEventDispatcher::sendPostedEvents()Строка 82 C++ Qt5Cored.dll!qt_internal_proc(HWND__ * hwnd, unsigned int message, unsigned __int64 wp, __int64 lp)Строка 445 C++
C++ (Qt)QModelIndex QAbstractItemModel::index ( int row, int column, const QModelIndex & parent = QModelIndex() ) const;
QModelIndex StatTreeCtrl::index(int row, int column, const QModelIndex & parent) const{ if (!hasIndex(row, column, parent)) return QModelIndex(); IStatisticModel::Ptr parentItem; if (!parent.isValid()) parentItem = rootItem; else parentItem = getItem(parent); IStatisticModel::Ptr childItem = parentItem->children().at(row); if (childItem) { //childItem.duplicate(); return createIndex(row, column, childItem); } else return QModelIndex();}