r22663 by jghali - Change units in picture browser when current document change

scribus-commit scribus-commit at lists.scribus.net
Thu Aug 30 21:39:02 UTC 2018


Author: jghali
Date: Thu Aug 30 21:39:02 2018
New Revision: 22663

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22663
Log:
Change units in picture browser when current document change

Modified:
    trunk/Scribus/scribus/plugins/picbrowser/picturebrowser.cpp
    trunk/Scribus/scribus/plugins/picbrowser/picturebrowser.h

Modified: trunk/Scribus/scribus/plugins/picbrowser/picturebrowser.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22663&path=/trunk/Scribus/scribus/plugins/picbrowser/picturebrowser.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/picbrowser/picturebrowser.cpp	(original)
+++ trunk/Scribus/scribus/plugins/picbrowser/picturebrowser.cpp	Thu Aug 30 21:39:02 2018
@@ -315,7 +315,7 @@
 	{
 		if (index == 2)
 		{
-			updateDocumentbrowser();
+			updateDocumentBrowser();
 		}
 
 		navigationStack->setCurrentIndex(index);
@@ -1668,7 +1668,9 @@
 void PictureBrowser::changedDocument(ScribusDoc* doc)
 {
 	m_Doc = doc;
-	updateDocumentbrowser();
+
+	unitChange();
+	updateDocumentBrowser();
 	actionsGoButton->setEnabled(true);
 	insertImageButton->setEnabled(true);
 	documentChanged=true;
@@ -1686,7 +1688,7 @@
 	insertImageButton->setEnabled(false);
 }
 
-void PictureBrowser::updateDocumentbrowser()
+void PictureBrowser::updateDocumentBrowser()
 {
 	documentWidget->clear();
 	documentItems.clear();

Modified: trunk/Scribus/scribus/plugins/picbrowser/picturebrowser.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22663&path=/trunk/Scribus/scribus/plugins/picbrowser/picturebrowser.h
==============================================================================
--- trunk/Scribus/scribus/plugins/picbrowser/picturebrowser.h	(original)
+++ trunk/Scribus/scribus/plugins/picbrowser/picturebrowser.h	Thu Aug 30 21:39:02 2018
@@ -206,7 +206,7 @@
 		//updates the QListView when the set of previewimages was changed (new images, zoom, previewmode changed etc)
 		void loadIcons();
 		void setSettings();
-		void updateDocumentbrowser();
+		void updateDocumentBrowser();
 		void updateBrowser ( bool filter, bool sort, bool reload );
 		void updateInformationTab ( int index );
 		void updateCollectionsWidget ( bool addImages );




More information about the scribus-commit mailing list