Skip to content
Snippets Groups Projects
Commit 15240dac authored by Olivier Langella's avatar Olivier Langella
Browse files

trying to render sequence

parent 1c0e5c66
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,7 @@
#include "ptmsequencedelegate.h"
#include "../../grouping/ptm/ptmsamplescan.h"
#include <QTextEdit>
#include <QPainter>
PtmSequenceDelegate::PtmSequenceDelegate(QWidget *parent) : QStyledItemDelegate(parent) {
......@@ -42,8 +43,14 @@ void PtmSequenceDelegate::paint(QPainter *painter, const QStyleOptionViewItem &o
// if (option.state & QStyle::State_Selected)
// painter->fillRect(option.rect, option.palette.highlight());
//QTextEdit edit;
QTextEdit edit_seq;
edit_seq.setPlainText(p_ptm_sample_scan->getRepresentativePeptideMatch()->getPeptideXtpSp().get()->getSequence());
painter->save();
painter->translate(option.rect.x(), option.rect.y());
edit_seq.render(painter);
painter->restore();
//edit_seq.render(painter);
//edit..paint(painter, option.rect, option.palette,
// StarRating::ReadOnly);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment