Clean up egl/glx extensions in debug console

Summary:
As there is no difference between egl and glx extensions anymore inside
KWin (both are provided through the OpenGLBackend) there is no need to
have to group boxes and do a manual hide/show based on which platform is
used.

Instead there is now just one group box and it's called "Platform
Extensions".

Reviewers: #kwin, #plasma

Subscribers: plasma-devel, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D3400
This commit is contained in:
Martin Gräßlin 2016-11-17 13:42:30 +01:00
parent d1de6899fd
commit 56d9f90546
2 changed files with 4 additions and 30 deletions

View file

@ -550,18 +550,8 @@ void DebugConsole::initGLTab()
text.append(QStringLiteral("</ul>"));
return text;
};
if (gl->platformInterface() == EglPlatformInterface) {
m_ui->eglExtensionsBox->setVisible(true);
m_ui->glxExtensionsBox->setVisible(false);
m_ui->eglExtensionsLabel->setText(extensionsString(static_cast<SceneOpenGL*>(Compositor::self()->scene())->backend()->extensions()));
} else {
m_ui->eglExtensionsBox->setVisible(false);
m_ui->glxExtensionsBox->setVisible(true);
m_ui->glxExtensionsLabel->setText(extensionsString(static_cast<SceneOpenGL*>(Compositor::self()->scene())->backend()->extensions()));
}
m_ui->platformExtensionsLabel->setText(extensionsString(static_cast<SceneOpenGL*>(Compositor::self()->scene())->backend()->extensions()));
m_ui->openGLExtensionsLabel->setText(extensionsString(openGLExtensions()));
}

View file

@ -249,29 +249,13 @@
</widget>
</item>
<item>
<widget class="QGroupBox" name="eglExtensionsBox">
<widget class="QGroupBox" name="platformExtensionsBox">
<property name="title">
<string>EGL Extensions</string>
<string>Platform Extensions</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_8">
<item>
<widget class="QLabel" name="eglExtensionsLabel">
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="glxExtensionsBox">
<property name="title">
<string>GLX Extensions</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_9">
<item>
<widget class="QLabel" name="glxExtensionsLabel">
<widget class="QLabel" name="platformExtensionsLabel">
<property name="text">
<string/>
</property>