r21300 by craig -

scribus-commit scribus-commit at lists.scribus.net
Sun May 8 11:24:47 UTC 2016


Author: craig
Date: Sun May  8 11:24:46 2016
New Revision: 21300

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21300
Log:
Add source to palettes to fill out GUI and add detail

Modified:
    trunk/Scribus/scribus/scribusstructs.h
    trunk/Scribus/scribus/ui/resourcemanager.cpp

Modified: trunk/Scribus/scribus/scribusstructs.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21300&path=/trunk/Scribus/scribus/scribusstructs.h
==============================================================================
--- trunk/Scribus/scribus/scribusstructs.h	(original)
+++ trunk/Scribus/scribus/scribusstructs.h	Sun May  8 11:24:46 2016
@@ -382,6 +382,7 @@
 	QString filetype;
 	QString type;
 	QString movetofile;
+	QString source;
 	bool download;
 };
 

Modified: trunk/Scribus/scribus/ui/resourcemanager.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21300&path=/trunk/Scribus/scribus/ui/resourcemanager.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/resourcemanager.cpp	(original)
+++ trunk/Scribus/scribus/ui/resourcemanager.cpp	Sun May  8 11:24:46 2016
@@ -669,6 +669,7 @@
 						d.license=e.attribute("license");
 						d.filetype=e.attribute("filetype");
 						d.type=e.attribute("type");
+						d.source=e.attribute("source");
 						QUrl url(d.url);
 						if (url.isValid() && !url.isEmpty() && !url.host().isEmpty())
 							availableList.append(d);
@@ -694,7 +695,7 @@
 		QTableWidgetItem *newItem1 = new QTableWidgetItem(d.desc);
 		newItem1->setFlags(newItem1->flags() & ~Qt::ItemIsEditable & ~Qt::ItemIsSelectable);
 		availableTableWidget->setItem(row, column++, newItem1);
-		QTableWidgetItem *newItem2 = new QTableWidgetItem("");
+		QTableWidgetItem *newItem2 = new QTableWidgetItem(d.source);
 		newItem2->setFlags(newItem1->flags());
 		availableTableWidget->setItem(row, column++, newItem2);
 		QTableWidgetItem *newItem3 = new QTableWidgetItem();
@@ -711,7 +712,7 @@
 		++row;
 	}
 	QStringList headers;
-	headers << tr("Description") << tr("") << tr("Installed") << tr("License") << tr("Download");
+	headers << tr("Description") << tr("Source") << tr("Installed") << tr("License") << tr("Download");
 	availableTableWidget->setHorizontalHeaderLabels(headers);
 	availableTableWidget->resizeColumnsToContents();
 	availableTableWidget->setSortingEnabled(true);




More information about the scribus-commit mailing list