Skip to content
Permalink
Browse files

Fix for #8874, right-clicking on message in message bar shows black b…

…ackground for context menu
  • Loading branch information
dakcarto committed Oct 17, 2013
1 parent 176db46 commit 753977de161bcd2ab694b3727e92da5fc46d48ac
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/gui/qgsmessagebaritem.cpp
@@ -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;

0 comments on commit 753977d

Please sign in to comment.
You can’t perform that action at this time.