Signed-off-by: Bård Eirik Winther <bwint...@cisco.com>
---
 utils/qv4l2/general-tab.cpp | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/utils/qv4l2/general-tab.cpp b/utils/qv4l2/general-tab.cpp
index 3855296..cfc6bcf 100644
--- a/utils/qv4l2/general-tab.cpp
+++ b/utils/qv4l2/general-tab.cpp
@@ -249,7 +249,9 @@ GeneralTab::GeneralTab(const QString &device, v4l2 &fd, int 
n, QWidget *parent)
                m_freq = new QLineEdit(parent);
                m_freq->setValidator(val);
                m_freq->setWhatsThis(QString("Frequency\nLow: %1\nHigh: %2")
-                               .arg(m_tuner.rangelow / 
factor).arg(m_tuner.rangehigh / factor));
+                                    .arg(m_tuner.rangelow / factor)
+                                    .arg((double)m_tuner.rangehigh / factor, 
0, 'f', 2));
+               m_freq->setStatusTip(m_freq->whatsThis());
                connect(m_freq, SIGNAL(lostFocus()), SLOT(freqChanged()));
                connect(m_freq, SIGNAL(returnPressed()), SLOT(freqChanged()));
                updateFreq();
@@ -319,7 +321,9 @@ GeneralTab::GeneralTab(const QString &device, v4l2 &fd, int 
n, QWidget *parent)
                m_freq = new QLineEdit(parent);
                m_freq->setValidator(val);
                m_freq->setWhatsThis(QString("Frequency\nLow: %1\nHigh: %2")
-                               .arg(m_modulator.rangelow / 
factor).arg(m_modulator.rangehigh / factor));
+                                    .arg(m_tuner.rangelow / factor)
+                                    .arg((double)m_tuner.rangehigh / factor, 
0, 'f', 2));
+               m_freq->setStatusTip(m_freq->whatsThis());
                connect(m_freq, SIGNAL(lostFocus()), SLOT(freqChanged()));
                connect(m_freq, SIGNAL(returnPressed()), SLOT(freqChanged()));
                updateFreq();
@@ -912,6 +916,7 @@ void GeneralTab::updateAudioInput()
                what += ", has AVL";
        if (audio.mode & V4L2_AUDMODE_AVL)
                what += ", AVL is on";
+       m_audioInput->setStatusTip(what);
        m_audioInput->setWhatsThis(what);
 }
 
@@ -964,6 +969,7 @@ void GeneralTab::updateStandard()
                (double)vs.frameperiod.numerator / vs.frameperiod.denominator,
                vs.frameperiod.numerator, vs.frameperiod.denominator,
                vs.framelines);
+       m_tvStandard->setStatusTip(what);
        m_tvStandard->setWhatsThis(what);
        updateVidCapFormat();
 }
@@ -1027,6 +1033,7 @@ void GeneralTab::updateTimings()
        what.sprintf("Video Timings (%u)\n"
                "Frame %ux%u\n",
                p.index, p.timings.bt.width, p.timings.bt.height);
+       m_videoTimings->setStatusTip(what);
        m_videoTimings->setWhatsThis(what);
        updateVidCapFormat();
 }
-- 
1.8.4.rc1

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to