qv4l2: removed colon and correct rowcount
authorAnton Arbring <aarbring@cisco.com>
Tue, 15 Jul 2014 11:10:49 +0000 (13:10 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Tue, 15 Jul 2014 12:10:12 +0000 (14:10 +0200)
removed colon from info labels in general info section
and changed getheight to count rows in the gui, like it
is already done in ctrl-tab.cpp

Signed-off-by: Anton Arbring <aarbring@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/qv4l2/general-tab.cpp

index af64986..8bcd60b 100644 (file)
@@ -114,16 +114,16 @@ GeneralTab::GeneralTab(const QString &device, v4l2 &fd, int n, QWidget *parent)
        if (querycap(m_querycap)) {
                addTitle("General Information");
 
-               addLabel("Device:");
+               addLabel("Device");
                addLabel(device + (useWrapper() ? " (wrapped)" : ""));
 
-               addLabel("Driver:");
+               addLabel("Driver");
                addLabel((char *)m_querycap.driver);
 
-               addLabel("Card:");
+               addLabel("Card");
                addLabel((char *)m_querycap.card);
 
-               addLabel("Bus:");
+               addLabel("Bus");
                addLabel((char *)m_querycap.bus_info);
        }
 
@@ -1091,7 +1091,7 @@ int GeneralTab::getWidth()
 
 int GeneralTab::getHeight()
 {
-       return m_row * m_maxh;
+       return rowCount() * m_maxh;
 }
 
 bool GeneralTab::isSlicedVbi() const