Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 24741 → Rev 24742

/trunk/Scribus/scribus/ui/smcellstylewidget.cpp
152,12 → 152,11
else
fillShade->setValue(qRound(d));
QString s;
QString emptyString;
for (int i = 0; i < cellStyles.count(); ++i)
{
if (!s.isNull() && s != cellStyles[i]->fillColor())
if (!s.isEmpty() && s != cellStyles[i]->fillColor())
{
s = emptyString;
s.clear();
break;
}
s = cellStyles[i]->fillColor();
/trunk/Scribus/scribus/ui/smcstylewidget.cpp
572,12 → 572,11
backShade_->setValue(qRound(d));
 
QString s;
QString emptyString;
for (int i = 0; i < cstyles.count(); ++i)
{
if (!s.isNull() && s != cstyles[i]->fillColor())
if (!s.isEmpty() && s != cstyles[i]->fillColor())
{
s = emptyString;
s.clear();
break;
}
s = cstyles[i]->fillColor();
591,12 → 590,12
else
fillColor_->setCurrentText(s);
 
s = emptyString;
s.clear();
for (int i = 0; i < cstyles.count(); ++i)
{
if (!s.isNull() && s != cstyles[i]->strokeColor())
if (!s.isEmpty() && s != cstyles[i]->strokeColor())
{
s = emptyString;
s.clear();
break;
}
s = cstyles[i]->strokeColor();
610,12 → 609,12
else
strokeColor_->setCurrentText(s);
 
s = emptyString;
s.clear();
for (int i = 0; i < cstyles.count(); ++i)
{
if (!s.isNull() && s != cstyles[i]->backColor())
if (!s.isEmpty() && s != cstyles[i]->backColor())
{
s = emptyString;
s.clear();
break;
}
s = cstyles[i]->backColor();
632,13 → 631,12
 
void SMCStyleWidget::showLanguage(const QList<CharStyle*> &cstyles, const QString &defLang)
{
QString emptyString;
QString s(cstyles[0]->language());
for (int i = 0; i < cstyles.count(); ++i)
{
if (s != cstyles[i]->language())
{
s = emptyString;
s.clear();
break;
}
s = cstyles[i]->language();
/trunk/Scribus/scribus/ui/smpstylewidget.cpp
555,12 → 555,11
backShade_->setValue(qRound(d));
 
QString s;
QString emptyString;
for (int i = 0; i < cstyles.count(); ++i)
{
if (!s.isNull() && s != cstyles[i]->backgroundColor())
{
s = emptyString;
s.clear();
break;
}
s = cstyles[i]->backgroundColor();
/trunk/Scribus/scribus/ui/smtablestylewidget.cpp
139,12 → 139,11
else
fillShade->setValue(qRound(d));
QString s;
QString emptyString;
for (int i = 0; i < tableStyles.count(); ++i)
{
if (!s.isNull() && s != tableStyles[i]->fillColor())
if (!s.isEmpty() && s != tableStyles[i]->fillColor())
{
s = emptyString;
s.clear();
break;
}
s = tableStyles[i]->fillColor();