From 05a389c3b3af006c39aad91f8c5d516d4f5c8723 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Thu, 7 Sep 2023 14:53:28 +0200 Subject: [PATCH] libkwineffects: move version to string functions to the Version class --- src/debug_console.cpp | 4 ++-- src/libkwineffects/glplatform.cpp | 24 +++++------------------- src/libkwineffects/glplatform.h | 24 ------------------------ src/libkwineffects/version.cpp | 18 +++++++++++++++++- src/libkwineffects/version.h | 6 +++++- src/workspace.cpp | 12 ++++++------ 6 files changed, 35 insertions(+), 53 deletions(-) diff --git a/src/debug_console.cpp b/src/debug_console.cpp index 27c7cefafa..d5f4b65ac4 100644 --- a/src/debug_console.cpp +++ b/src/debug_console.cpp @@ -666,8 +666,8 @@ void DebugConsole::initGLTab() m_ui->glslVersionStringLabel->setText(QString::fromLocal8Bit(gl->glShadingLanguageVersionString())); m_ui->glDriverLabel->setText(GLPlatform::driverToString(gl->driver())); m_ui->glGPULabel->setText(GLPlatform::chipClassToString(gl->chipClass())); - m_ui->glVersionLabel->setText(GLPlatform::versionToString(gl->glVersion())); - m_ui->glslLabel->setText(GLPlatform::versionToString(gl->glslVersion())); + m_ui->glVersionLabel->setText(gl->glVersion().toString()); + m_ui->glslLabel->setText(gl->glslVersion().toString()); auto extensionsString = [](const auto &extensions) { QString text = QStringLiteral("