r17064 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:27 UTC 2011


Author: jghali
Date: Thu Dec  8 21:49:27 2011
New Revision: 17064

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17064
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:
    trunk/Scribus/scribus/ui/contextmenu.cpp

Modified: trunk/Scribus/scribus/ui/contextmenu.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17064&path=/trunk/Scribus/scribus/ui/contextmenu.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/contextmenu.cpp (original)
+++ trunk/Scribus/scribus/ui/contextmenu.cpp Thu Dec  8 21:49:27 2011
@@ -105,11 +105,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