Skip to content

Commit

Permalink
Fix for #8874, right-clicking on message in message bar shows black b…
Browse files Browse the repository at this point in the history
…ackground for context menu
  • Loading branch information
dakcarto committed Oct 17, 2013
1 parent 176db46 commit 753977d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gui/qgsmessagebaritem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,10 @@ void QgsMessageBarItem::writeContent()
mTextEdit->setFrameShape( QFrame::NoFrame );
// stylesheet set here so Qt-style substitued scrollbar arrows can show within limited height
// adjusts to height of font set in app options
mTextEdit->setStyleSheet( "* { background-color: rgba(0,0,0,0); margin-top: 0.25em; max-height: 1.75em; min-height: 1.75em; } "
"QScrollBar::add-page,QScrollBar::sub-page,QScrollBar::handle { background-color: rgba(0,0,0,0); color: rgba(0,0,0,0); }" );
mTextEdit->setStyleSheet( "QTextEdit { background-color: rgba(0,0,0,0); margin-top: 0.25em; max-height: 1.75em; min-height: 1.75em; } "
"QScrollBar { background-color: rgba(0,0,0,0); } "
"QScrollBar::add-page,QScrollBar::sub-page,QScrollBar::handle { background-color: rgba(0,0,0,0); color: rgba(0,0,0,0); } "
"QScrollBar::up-arrow,QScrollBar::down-arrow { color: rgb(0,0,0); } " );
mLayout->addWidget( mTextEdit );
}
QString content = mText;
Expand Down

0 comments on commit 753977d

Please sign in to comment.