Skip to content

Commit 753977d

Browse files
committedOct 17, 2013
Fix for #8874, right-clicking on message in message bar shows black background for context menu
1 parent 176db46 commit 753977d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎src/gui/qgsmessagebaritem.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@ void QgsMessageBarItem::writeContent()
138138
mTextEdit->setFrameShape( QFrame::NoFrame );
139139
// stylesheet set here so Qt-style substitued scrollbar arrows can show within limited height
140140
// adjusts to height of font set in app options
141-
mTextEdit->setStyleSheet( "* { background-color: rgba(0,0,0,0); margin-top: 0.25em; max-height: 1.75em; min-height: 1.75em; } "
142-
"QScrollBar::add-page,QScrollBar::sub-page,QScrollBar::handle { background-color: rgba(0,0,0,0); color: rgba(0,0,0,0); }" );
141+
mTextEdit->setStyleSheet( "QTextEdit { background-color: rgba(0,0,0,0); margin-top: 0.25em; max-height: 1.75em; min-height: 1.75em; } "
142+
"QScrollBar { background-color: rgba(0,0,0,0); } "
143+
"QScrollBar::add-page,QScrollBar::sub-page,QScrollBar::handle { background-color: rgba(0,0,0,0); color: rgba(0,0,0,0); } "
144+
"QScrollBar::up-arrow,QScrollBar::down-arrow { color: rgb(0,0,0); } " );
143145
mLayout->addWidget( mTextEdit );
144146
}
145147
QString content = mText;

0 commit comments

Comments
 (0)
Please sign in to comment.