qv4l2: keep the "Controls" text
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 5 Aug 2014 09:14:20 +0000 (11:14 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Tue, 5 Aug 2014 09:14:20 +0000 (11:14 +0200)
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 <hans.verkuil@cisco.com>
utils/qv4l2/ctrl-tab.cpp

index db528b0..7478a86 100644 (file)
@@ -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());