From 31c1406a388d86a5aceafb0addd41fe933b92f4f Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Tue, 5 Aug 2014 11:14:20 +0200 Subject: [PATCH] qv4l2: keep the "Controls" text Don't chop off the "Controls" text in the tab name: it turns out that leaving that off makes it hard to tell the difference between tabs that are setup by qv4l2 and tabs that contain controls from the driver. If someone can come up with a better way of doing this then that would be welcome, but for now this is the best I can come up with. Signed-off-by: Hans Verkuil --- utils/qv4l2/ctrl-tab.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/utils/qv4l2/ctrl-tab.cpp b/utils/qv4l2/ctrl-tab.cpp index db528b0..7478a86 100644 --- a/utils/qv4l2/ctrl-tab.cpp +++ b/utils/qv4l2/ctrl-tab.cpp @@ -125,8 +125,6 @@ void ApplicationWindow::addTabs(int m_winWidth) QGridLayout *grid = new QGridLayout(w); QString tabName(qec.name); - if (tabName != "User Controls" && tabName.endsWith(" Controls")) - tabName.chop(9); if (tabName.length()) { QLabel *title_tab = new QLabel(tabName, parentWidget()); -- 2.7.4