From kde-commits Sun Aug 21 18:40:56 2005 From: Dirk Ziegelmeier Date: Sun, 21 Aug 2005 18:40:56 +0000 To: kde-commits Subject: extragear/multimedia/kdetv/clients/kdetv Message-Id: <1124649656.960715.542.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=112464967809621 SVN commit 451772 by dziegel: Add "kdetv FAQ" menu entry M +2 -1 kdetvui.rc M +9 -0 mainwindow.cpp M +2 -0 mainwindow.h --- trunk/extragear/multimedia/kdetv/clients/kdetv/kdetvui.rc #451771:451772 @@ -1,5 +1,5 @@ - + &kdetv @@ -44,6 +44,7 @@ &Help + --- trunk/extragear/multimedia/kdetv/clients/kdetv/mainwindow.cpp #451771:451772 @@ -276,6 +276,9 @@ _actWebSite = new KAction( i18n("kdetv Web Site"), "html", 0, this, SLOT( showWebSite() ), acts, "help_view_website" ); + _actFAQ = new KAction( i18n("kdetv FAQ"), "help", 0, + this, SLOT( showFAQ() ), + acts, "help_view_faq" ); _sleepTime = new KToggleAction( i18n("Sleep Timer"), "kalarm", Key_T, this, SLOT( sleepTimer() ), acts, @@ -586,6 +589,12 @@ KRun::runURL( url, QString("text/html") ); } +void MainWindow::showFAQ() +{ + KURL url( i18n("http://docs.kde.org/development/en/extragear-multimedia/kdetv/faq.html") ); + KRun::runURL( url, QString("text/html") ); +} + void MainWindow::lircCommand(const QString &cmd, unsigned /*repeat*/) { if (cmd.length() == 1 && cmd[0] >= '0' && cmd[0] <= '9') { --- trunk/extragear/multimedia/kdetv/clients/kdetv/mainwindow.h #451771:451772 @@ -63,6 +63,7 @@ void disableScreenSaver( bool ); void showWebSite(); + void showFAQ(); void showTipOfTheDay(); /** @@ -240,6 +241,7 @@ KAction* _actChangeLog; KAction* _actCVSLog; + KAction* _actFAQ; KAction* _actWebSite; KAction* _actConfigToolbar; KAction* _actShowTips;