GTK3 theme: simplify code
There's no need to first convert to QString and then convert back to QByteArray. Pick-to: 6.5 6.4 6.2 5.15 Change-Id: Idedcf3143f44c640a9259f16e364dfe76ecf4c0d Reviewed-by: Liang Qi <liang.qi@qt.io>bb10
parent
4e52a4c7e3
commit
e86a5f5f8b
|
|
@ -110,7 +110,7 @@ QGtk3Theme::QGtk3Theme()
|
|||
if (qEnvironmentVariableIsEmpty("XCURSOR_SIZE")) {
|
||||
const int cursorSize = gtkSetting<gint>("gtk-cursor-theme-size");
|
||||
if (cursorSize > 0)
|
||||
qputenv("XCURSOR_SIZE", QString::number(cursorSize).toUtf8());
|
||||
qputenv("XCURSOR_SIZE", QByteArray::number(cursorSize));
|
||||
}
|
||||
if (qEnvironmentVariableIsEmpty("XCURSOR_THEME")) {
|
||||
const QString cursorTheme = gtkSetting("gtk-cursor-theme-name");
|
||||
|
|
|
|||
Loading…
Reference in New Issue