Skip to content
Snippets Groups Projects
Commit f67c5ffe authored by stefan's avatar stefan
Browse files

New SequenceViewer, fixed coloring of selection

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2279 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent f7f54419
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,9 @@ void BackgroundPainter::Paint(QPainter* painter, const QStyleOptionViewItem& opt ...@@ -38,6 +38,9 @@ void BackgroundPainter::Paint(QPainter* painter, const QStyleOptionViewItem& opt
painter->fillRect(option.rect, QColor(240,240,240)); painter->fillRect(option.rect, QColor(240,240,240));
} }
else{
painter->fillRect(option.rect, QColor(255,255,255));
}
if(index.row()>0 && (index.column())%10 == 0){ if(index.row()>0 && (index.column())%10 == 0){
painter->setPen(QPen(QColor(135,135,135))); painter->setPen(QPen(QColor(135,135,135)));
painter->drawLine(option.rect.topRight(),option.rect.bottomRight()); painter->drawLine(option.rect.topRight(),option.rect.bottomRight());
......
...@@ -169,7 +169,9 @@ void SequenceTableView::InitStaticField(){ ...@@ -169,7 +169,9 @@ void SequenceTableView::InitStaticField(){
static_field_->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); static_field_->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
static_field_->show(); static_field_->show();
static_field_->setStyleSheet("QTableView { border: 0px;" static_field_->setStyleSheet("QTableView { border: 0px;"
"background-color: #FFFFFF}" "selection-color: transparent;"
"selection-background-color: transparent;"
"background-color: white}"
"QTableView::item{ border: none;" "QTableView::item{ border: none;"
"padding: 0px; border-width: 0px; margin: 0px;}"); "padding: 0px; border-width: 0px; margin: 0px;}");
static_field_->setShowGrid(false); static_field_->setShowGrid(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment