Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void JobDependenciesDelegate::updateEditorGeometry(QWidget * a_pEditor,
  2.     const QStyleOptionViewItem & a_option, const QModelIndex & a_index) const
  3. {
  4.     (void)a_index;
  5.     QListWidget * pListWidget = qobject_cast<QListWidget *>(a_pEditor);
  6.     if(!pListWidget)
  7.         return;
  8.     QPoint origin = a_option.widget->mapToGlobal(a_option.rect.topLeft());
  9.     pListWidget->move(origin);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement