[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdegames/kpat
From: Parker Coates <parker.coates () kdemail ! net>
Date: 2012-02-15 4:44:43
Message-ID: 20120215044444.0011BAC895 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1280159 by coates:
Disable the Save As action when the congrats message is shown.
M +4 -2 mainwindow.cpp
M +1 -0 mainwindow.h
--- trunk/KDE/kdegames/kpat/mainwindow.cpp #1280158:1280159
@@ -189,8 +189,8 @@
m_recentFilesAction = KStandardGameAction::loadRecent( this, \
SLOT(loadGame(KUrl)), actionCollection() );
m_recentFilesAction->loadEntries(KGlobal::config()->group( QString() ));
- a = KStandardGameAction::saveAs(this, SLOT(saveGame()), actionCollection());
- a->setShortcut( KShortcut( Qt::ControlModifier | Qt::Key_S ) );
+ m_saveAction = KStandardGameAction::saveAs(this, SLOT(saveGame()), \
actionCollection()); + m_saveAction->setShortcut( KShortcut( Qt::ControlModifier | \
Qt::Key_S ) );
a = actionCollection()->addAction( QLatin1String( "game_stats" ));
a->setText(i18n("Statistics"));
@@ -607,6 +607,8 @@
connect( m_dealer, SIGNAL(dropActive(bool)), m_dropAction, \
SLOT(setChecked(bool)) );
connect( m_dealer, SIGNAL(gameInProgress(bool)), m_dropAction, \
SLOT(setEnabled(bool)) );
+ connect( m_dealer, SIGNAL(gameInProgress(bool)), m_saveAction, \
SLOT(setEnabled(bool)) ); +
connect( m_leftAction, SIGNAL(triggered(bool)), m_dealer, \
SLOT(keyboardFocusLeft()) );
connect( m_rightAction, SIGNAL(triggered(bool)), m_dealer, \
SLOT(keyboardFocusRight()) );
connect( m_upAction, SIGNAL(triggered(bool)), m_dealer, \
SLOT(keyboardFocusUp()) );
--- trunk/KDE/kdegames/kpat/mainwindow.h #1280158:1280159
@@ -129,6 +129,7 @@
KAction * m_pickUpSetDownAction;
KRecentFilesAction * m_recentFilesAction;
+ KAction * m_saveAction;
KAction * m_undoAction;
KAction * m_redoAction;
KAction * m_demoAction;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic