r19528 by jghali - some refactoring

scribus-commit scribus-commit at lists.scribus.net
Tue Sep 23 10:52:16 UTC 2014


Author: jghali
Date: Tue Sep 23 10:52:16 2014
New Revision: 19528

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19528
Log:
some refactoring

Modified:
    branches/Version14x/Scribus/scribus/extimageprops.cpp

Modified: branches/Version14x/Scribus/scribus/extimageprops.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19528&path=/branches/Version14x/Scribus/scribus/extimageprops.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/extimageprops.cpp (original)
+++ branches/Version14x/Scribus/scribus/extimageprops.cpp Tue Sep 23 10:52:16 2014
@@ -169,10 +169,10 @@
 			uint counter = 0;
 			for (it2 = info->layerInfo.begin(); it2 != info->layerInfo.end(); ++it2)
 			{
-				QCheckBox *cp = new QCheckBox((*it2).layerName, this);
+				QCheckBox *cp = new QCheckBox(it2->layerName, this);
 				cp->setPalette(palette);
 				QPixmap pm;
-				pm=QPixmap::fromImage((*it2).thumb);
+				pm=QPixmap::fromImage(it2->thumb);
 				col1Width = qMax(col1Width, pm.width());
 				cp->setIcon(pm);
 				FlagsSicht.append(cp);
@@ -181,13 +181,13 @@
 				if ((info->isRequest) && (info->RequestProps.contains(counter)))
 					cp->setChecked(info->RequestProps[counter].visible);
 				else
-					cp->setChecked(!((*it2).flags & 2));
-				if (!(*it2).thumb_mask.isNull())
+					cp->setChecked(!(it2->flags & 2));
+				if (!it2->thumb_mask.isNull())
 				{
-					QCheckBox *cp2 = new QCheckBox((*it2).layerName, this);
+					QCheckBox *cp2 = new QCheckBox(it2->layerName, this);
 					cp2->setPalette(palette);
 					QPixmap pm2;
-					pm2=QPixmap::fromImage((*it2).thumb_mask);
+					pm2=QPixmap::fromImage(it2->thumb_mask);
 					col2Width = qMax(col2Width, pm2.width());
 					cp2->setIcon(pm2);
 					connect(cp2, SIGNAL(clicked()), this, SLOT(changedLayer()));
@@ -200,7 +200,7 @@
 				}
 				else
 					FlagsMask.append(0);
-				QTableWidgetItem *tW = new QTableWidgetItem((*it2).layerName);
+				QTableWidgetItem *tW = new QTableWidgetItem(it2->layerName);
 				tW->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
 				layerTable->setItem(info->layerInfo.count()-counter-1, 2, tW);
 				layerTable->setRowHeight(info->layerInfo.count()-counter-1, 40);




More information about the scribus-commit mailing list