r19529 by jghali - some refactoring
scribus-commit
scribus-commit at lists.scribus.net
Tue Sep 23 10:55:13 UTC 2014
Author: jghali
Date: Tue Sep 23 10:55:13 2014
New Revision: 19529
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19529
Log:
some refactoring
Modified:
trunk/Scribus/scribus/ui/extimageprops.cpp
Modified: trunk/Scribus/scribus/ui/extimageprops.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19529&path=/trunk/Scribus/scribus/ui/extimageprops.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/extimageprops.cpp (original)
+++ trunk/Scribus/scribus/ui/extimageprops.cpp Tue Sep 23 10:55:13 2014
@@ -179,10 +179,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);
@@ -191,13 +191,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()));
@@ -210,7 +210,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