r17063 by jghali - #10418: Image characteristics written black on black in context menu on Ubuntu
scribus-commit
scribus-commit at lists.scribus.net
Thu Dec 8 21:49:02 UTC 2011
Author: jghali
Date: Thu Dec 8 21:49:02 2011
New Revision: 17063
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17063
Log:
#10418: Image characteristics written black on black in context menu on Ubuntu
The problem is related to read only QTextEdit on Ubuntu : gtk style display black text on drak grey, use a QLabel to workaround that.
Modified:
branches/Version135/Scribus/scribus/contextmenu.cpp
Modified: branches/Version135/Scribus/scribus/contextmenu.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17063&path=/branches/Version135/Scribus/scribus/contextmenu.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/contextmenu.cpp (original)
+++ branches/Version135/Scribus/scribus/contextmenu.cpp Thu Dec 8 21:49:02 2011
@@ -99,11 +99,10 @@
act->setText( ScribusView::tr("In&fo"));
if (currItem->asImageFrame())
{
- QTextEdit* menuTextEdit= new QTextEdit("<html>" + currItem->infoDescription() + "</html>", this);
- menuTextEdit->setReadOnly(true);
- menuTextEdit->setFrameShape(QFrame::NoFrame);
+ QLabel* menuLabel = new QLabel("<html>" + currItem->infoDescription() + "</html>", this);
+ menuLabel->setFrameShape(QFrame::NoFrame);
QWidgetAction* menuTextWidget = new QWidgetAction(this);
- menuTextWidget->setDefaultWidget(menuTextEdit);
+ menuTextWidget->setDefaultWidget(menuLabel);
menuInfo->addAction(menuTextWidget);
}
}
More information about the scribus-commit
mailing list