From f6f7c85c07a25e746f2ae1b2ffc6043a405241a5 Mon Sep 17 00:00:00 2001 From: doitux Date: Sun, 4 Feb 2007 14:41:53 +0000 Subject: [PATCH] Basic Log-file writing added --- src/gui/qt/mainwindow/mainwindow.ui | 3 +++ src/gui/qt/mainwindow/mainwindowimpl.cpp | 8 +++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/gui/qt/mainwindow/mainwindow.ui b/src/gui/qt/mainwindow/mainwindow.ui index 8b1c13ea..5e0f4183 100644 --- a/src/gui/qt/mainwindow/mainwindow.ui +++ b/src/gui/qt/mainwindow/mainwindow.ui @@ -4008,6 +4008,9 @@ Start New Game ... + + Ctrl+N + diff --git a/src/gui/qt/mainwindow/mainwindowimpl.cpp b/src/gui/qt/mainwindow/mainwindowimpl.cpp index 1ff0da59..b1ee3ec7 100755 --- a/src/gui/qt/mainwindow/mainwindowimpl.cpp +++ b/src/gui/qt/mainwindow/mainwindowimpl.cpp @@ -353,7 +353,8 @@ mainWindowImpl::mainWindowImpl(QMainWindow *parent) highlight.setRgb(151,214,109); //ShortCuts -// QShortcut *startNewGameKeys = new QShortcut(QKeySequence(Qt::Key_Control), Ui::mainWindow); +// QShortcut *startNewGameKeys = new QShortcut(QKeySequence(Qt::Key_Control + Qt::Key_N), this); +// connect( startNewGameKeys, SIGNAL(activated() ), actionNewGame, SLOT( trigger() ) ); //Connects connect(dealFlopCards0Timer, SIGNAL(timeout()), this, SLOT( dealFlopCards1() )); @@ -388,9 +389,6 @@ mainWindowImpl::mainWindowImpl(QMainWindow *parent) connect(postRiverRunAnimation5Timer, SIGNAL(timeout()), this, SLOT( postRiverRunAnimation6() )); connect(postRiverRunAnimation6Timer, SIGNAL(timeout()), this, SLOT( startNewHand() )); - - -// connect( startNewGameKeys, SIGNAL(activated() ), this, SLOT( callNewGameDialog() ) ); connect( actionNewGame, SIGNAL( triggered() ), this, SLOT( callNewGameDialog() ) ); connect( actionAboutPokerth, SIGNAL( triggered() ), this, SLOT( callAboutPokerthDialog() ) ); connect( actionSettings, SIGNAL( triggered() ), this, SLOT( callSettingsDialog() ) ); @@ -1750,7 +1748,7 @@ void mainWindowImpl::paintStartSplash() { void mainWindowImpl::keyPressEvent ( QKeyEvent * event ) { - cout << event->key() << endl; +// cout << event->key() << endl; bool ctrlPressed = FALSE;