[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeedu/khangman/khangman
From: Anne-Marie Mahfouf <annma () kde ! org>
Date: 2005-04-15 1:54:07
Message-ID: 20050415015407.82E4E492 () office ! kde ! org
[Download RAW message or body]
CVS commit by annma:
sounds + better qwhatsthis
M +1 -0 advanced.ui 1.10
M +6 -5 khangmanview.cpp 1.116
--- kdeedu/khangman/khangman/advanced.ui #1.9:1.10
@@ -90,4 +90,5 @@
<property name="whatsThis" stdset="0">
<string>If you check this box, only the first letter will be \
written if the letter is found in several places in the word. Then when you rechoose \
this letter, it will replace the second instance in the word until there are no more \
instances of this letter. +For example, the word to guess is "potato". If this option \
is unchecked, when you try "o", the 2 "o" in the word will be discovered at the same \
time. If this is checked, you will need to try "o" twice.
Default is that for one letter typed, all instances of that letter in the word are \
displayed.</string>
--- kdeedu/khangman/khangman/khangmanview.cpp #1.115:1.116
@@ -17,4 +17,5 @@
#include <kapplication.h>
+#include <kaudioplayer.h>
#include <kdebug.h>
#include <klineedit.h>
@@ -410,6 +411,6 @@ void KHangManView::slotTry()
// pixImage->setPixmap(px[10]);
//TODO find a better way to finish
- slotNewGame();
- /*if (Prefs::sound()) {
+ //
+ if (Prefs::sound()) {
QString soundFile = locate("data", \
"khangman/sounds/EW_Dialogue_Appear.ogg"); if (soundFile != 0)
@@ -424,5 +425,5 @@ void KHangManView::slotTry()
else
kapp->quit();
- }*/
+ }
}
@@ -539,9 +540,9 @@ void KHangManView::timerWordDone()
void KHangManView::slotNewGame()
{
- /* if (Prefs::sound()) {
+ if (Prefs::sound()) {
QString soundFile = locate("data", "khangman/sounds/new_game.ogg");
if (soundFile != 0)
KAudioPlayer::play(soundFile);
- }*/
+ }
reset();
//language=Prefs::selectedLanguage();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic