Fixed compiler/lupdate/uic warnings.

Add missing Q_OBJECTS where tr() was used.
This commit is contained in:
Friedemann Kleint
2009-07-29 09:11:37 +02:00
parent 5852305061
commit 61123092ab
11 changed files with 12 additions and 17 deletions

View File

@@ -126,16 +126,6 @@ void StyleHelper::setBaseColor(const QColor &color)
}
}
static QColor mergedColors(const QColor &colorA, const QColor &colorB, int factor = 50)
{
const int maxFactor = 100;
QColor tmp = colorA;
tmp.setRed((tmp.red() * factor) / maxFactor + (colorB.red() * (maxFactor - factor)) / maxFactor);
tmp.setGreen((tmp.green() * factor) / maxFactor + (colorB.green() * (maxFactor - factor)) / maxFactor);
tmp.setBlue((tmp.blue() * factor) / maxFactor + (colorB.blue() * (maxFactor - factor)) / maxFactor);
return tmp;
}
void StyleHelper::verticalGradient(QPainter *painter, const QRect &spanRect, const QRect &clipRect)
{
QString key;