Skip to content

Commit

Permalink
Removed unnecessary debugging code.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Nov 26, 2015
1 parent b84ec72 commit a82dcec
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions OMEdit/OMEditGUI/Modeling/LibraryTreeWidget.cpp
Expand Up @@ -2114,9 +2114,6 @@ void LibraryTreeView::libraryTreeItemExpanded(LibraryTreeItem *pLibraryTreeItem)
*/
void LibraryTreeView::libraryTreeItemExpanded(QModelIndex index)
{
QTime commandTime;
commandTime.start();
qDebug() << commandTime.currentTime().toString("hh:mm:ss:zzz");
// since expanded SIGNAL is triggered when tree has expanded the index so we must collapse it first and then load data and expand it back.
collapse(index);
QModelIndex sourceIndex = mpLibraryWidget->getLibraryTreeProxyModel()->mapToSource(index);
Expand All @@ -2125,8 +2122,6 @@ void LibraryTreeView::libraryTreeItemExpanded(QModelIndex index)
bool state = blockSignals(true);
expand(index);
blockSignals(state);
qDebug() << commandTime.currentTime().toString("hh:mm:ss:zzz");
qDebug() << QString::number((double)commandTime.elapsed() / 1000).append(" secs");
}

/*!
Expand Down

0 comments on commit a82dcec

Please sign in to comment.