[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kmines/viranch/qtquick] src: Remove unwanted code
From: Viranch Mehta <viranch.mehta () gmail ! com>
Date: 2013-03-28 11:59:42
Message-ID: 20130328115942.ED89CA60DB () git ! kde ! org
[Download RAW message or body]
Git commit 3defddd11585eeb145a0cad233acfe28e1c67bd4 by Viranch Mehta.
Committed on 07/08/2012 at 09:16.
Pushed by viranch into branch 'viranch/qtquick'.
Remove unwanted code
M +1 -13 src/mainwindow.cpp
M +0 -1 src/mainwindow.h
http://commits.kde.org/kmines/3defddd11585eeb145a0cad233acfe28e1c67bd4
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index d7553c2..6ece943 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -96,12 +96,10 @@ KMinesMainWindow::KMinesMainWindow() :
m_renderer(provider()),
m_canvas(new CanvasWidget(&m_renderer, this))
{
- //m_scene = new KMinesScene(this);
connect(m_canvas, SIGNAL(minesCountChanged(int,int)), \
SLOT(onMinesCountChanged(int,int))); //connect(m_scene, SIGNAL(gameOver(bool)), \
SLOT(onGameOver(bool))); connect(m_canvas, SIGNAL(firstClickDone()), \
SLOT(onFirstClick()));
- //m_view = new KMinesView( m_scene, this );
m_canvas->setCacheMode( QGraphicsView::CacheBackground );
m_canvas->setVerticalScrollBarPolicy( Qt::ScrollBarAlwaysOff );
m_canvas->setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff );
@@ -157,7 +155,7 @@ void KMinesMainWindow::newGame()
// some things to manage pause
if( m_actionPause->isChecked() )
{
- //m_scene->setGamePaused(false);
+ m_canvas->setGamePaused(false);
m_actionPause->setChecked(false);
}
m_actionPause->setEnabled(false);
@@ -238,8 +236,6 @@ void KMinesMainWindow::configureSettings()
dialog->addPage( new GeneralOptsConfig( dialog ), i18n("General"), \
QLatin1String( "games-config-options" ));
dialog->addPage( new KgThemeSelector( m_renderer.themeProvider() ), i18n( \
"Theme" ), QLatin1String( "games-config-theme" ));
dialog->addPage( new CustomGameConfig( dialog ), i18n("Custom Game"), \
QLatin1String( "games-config-custom" ));
- connect( m_renderer.themeProvider(), SIGNAL(currentThemeChanged(const \
KgTheme*)), SLOT(loadSettings()) );
- connect( dialog, SIGNAL(settingsChanged(QString)), this, SLOT(loadSettings()) );
dialog->setHelp(QString(),QLatin1String( "kmines" ));
dialog->show();
}
@@ -253,13 +249,5 @@ void KMinesMainWindow::pauseGame(bool paused)
m_gameClock->resume();
}
-void KMinesMainWindow::loadSettings()
-{
- //m_view->resetCachedContent();
- // trigger complete redraw
- /*m_scene->resizeScene( (int)m_scene->sceneRect().width(),
- (int)m_scene->sceneRect().height() );*/
-}
-
#include "mainwindow.moc"
#include "moc_mainwindow.cpp"
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 260d63c..30c09c9 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -41,7 +41,6 @@ private slots:
void showHighscores();
void configureSettings();
void pauseGame(bool paused);
- void loadSettings();
private:
void setupActions();
KMinesScene* m_scene;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic