[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegames/kmines
From:       Dmitry Suzdalev <dimsuz () gmail ! com>
Date:       2008-08-18 14:52:12
Message-ID: 1219071132.433696.17369.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 848840 by dimsuz:

Fix two bugs:
- Allow to use two mouse buttons to reveal adjasent squares
- Hide info message when starting a new game

BUG: 168009
BUG: 168759


 M  +1 -1      minefielditem.cpp  
 M  +3 -0      scene.cpp  


--- trunk/KDE/kdegames/kmines/minefielditem.cpp #848839:848840
@@ -343,7 +343,7 @@
             emit flaggedMinesCountChanged(m_flaggedMinesCount);
         }
     }
-    else if(ev->button() == Qt::MidButton)
+    else if(ev->button() == Qt::MidButton || ( ev->buttons() & ( Qt::LeftButton | Qt::RightButton) ) )
     {
         QList<CellItem*> neighbours = adjasentItemsFor(row,col);
         foreach(CellItem* item, neighbours)
--- trunk/KDE/kdegames/kmines/scene.cpp #848839:848840
@@ -81,6 +81,9 @@
 
 void KMinesScene::startNewGame(int rows, int cols, int numMines)
 {
+    // hide message if any
+    m_messageItem->forceHide();
+
     m_fieldItem->initField(rows, cols, numMines);
     // reposition items
     resizeScene((int)sceneRect().width(), (int)sceneRect().height());
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic