Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QWidget* CustomItemDelegate::createEditor(QWidget* parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
- {
- QStyleOptionViewItemV4 opt = option;
- initStyleOption(&opt,index);
- Q_ASSERT(index.model());
- QStringList sentToList = index.data(Qt::EditRole).toStringList();
- QString fileLabel = index.data(Qt::DisplayRole).toString();
- if (!sentToList.empty()) {
- SentToDialog* sentToDialog = new SentToDialog(sentToList, fileLabel);
- sentToDialog->exec();
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment