r20117 by jghali - #13078: Font preview looks not like it should

scribus-commit scribus-commit at lists.scribus.net
Fri May 22 23:10:20 UTC 2015


Author: jghali
Date: Fri May 22 23:10:20 2015
New Revision: 20117

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20117
Log:
#13078: Font preview looks not like it should

Modified:
    trunk/Scribus/scribus/plugins/fontpreview/fontpreview.cpp

Modified: trunk/Scribus/scribus/plugins/fontpreview/fontpreview.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20117&path=/trunk/Scribus/scribus/plugins/fontpreview/fontpreview.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/fontpreview/fontpreview.cpp (original)
+++ trunk/Scribus/scribus/plugins/fontpreview/fontpreview.cpp Fri May 22 23:10:20 2015
@@ -36,7 +36,7 @@
 	proxyModel->setDynamicSortFilter(true);
 	proxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
 	proxyModel->setSourceModel(fontModel);
-	proxyModel->setFilterKeyColumn(0);
+	proxyModel->setFilterKeyColumn(1);
 	proxyModel->setSortCaseSensitivity(Qt::CaseInsensitive);
 	fontList->setModel(proxyModel);
 
@@ -206,6 +206,10 @@
 
 void FontPreview::setExtendedView(bool state)
 {
-	for (int i=1; i < fontList->model()->columnCount(); ++i)
+	for (int i=0; i < fontList->model()->columnCount(); ++i)
+	{
+		if (i == 1)
+			continue;
 		fontList->setColumnHidden(i, !state);
-}
+	}
+}




More information about the scribus-commit mailing list