static const char tmpnamechars[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
char *data = filename.data();
- for (int i = 0; i < phLength; i++) {
+ for (uint i = 0; i < phLength; i++) {
data[i + phPos] = tmpnamechars[qrand() % 52];
}
static inline QString getDesignerLanguage(QDesignerFormEditorInterface *core)
{
- if (QDesignerLanguageExtension *lang = qt_extension<QDesignerLanguageExtension *>(core->extensionManager(), core)) {
+ if (qt_extension<QDesignerLanguageExtension *>(core->extensionManager(), core)) {
return QLatin1String("unknown");
}
return QLatin1String("c++");
radius *= qreal(0.5);
}
- if (alphaOnly)
- expblur(blurImage, radius, quality, true);
- else
- expblur(blurImage, radius, quality, false);
+ expblur(blurImage, radius, quality, alphaOnly);
if (p) {
p->scale(scale, scale);
}
}
-static void qt_blurImage(QImage &blurImage, qreal radius, bool quality)
-{
- if (blurImage.format() == QImage::Format_Indexed8)
- expblur(blurImage, radius, quality, true);
- else
- expblur(blurImage, radius, quality, false);
-}
-
Q_GUI_EXPORT bool qt_scaleForTransform(const QTransform &transform, qreal *scale);
/*!
}
}
-static void getXDefault(const char *group, const char *key, double *val)
-{
- char *str = XGetDefault(qt_x11Data->display, group, key);
- if (str) {
- bool ok;
- double v = QByteArray(str).toDouble(&ok);
- if (ok)
- *val = v;
- }
-}
-
static void getXDefault(const char *group, const char *key, bool *val)
{
char *str = XGetDefault(qt_x11Data->display, group, key);