[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeedu/kmessedwords/kmessedwords
From: Reuben Sutton <reuben () microsucks ! co ! uk>
Date: 2004-12-12 0:14:51
Message-ID: 20041212001451.E453F1BAC4 () office ! kde ! org
[Download RAW message or body]
CVS commit by reuben:
Added an updateButtons() function so updateSettings() actually makes some
sense.
M +9 -5 mainwindow.cpp 1.64
M +1 -0 mainwindow.h 1.35
--- kdeedu/kmessedwords/kmessedwords/mainwindow.cpp #1.63:1.64
@@ -190,9 +190,6 @@ void MainWindow::updateSettings()
//if pic changed TODO test?
setBackgroundPic();
- if(Prefs::buttons())
- {
- m_view->btnScore->setPixmap(QPixmap(locate("data","kmessedwords/themes/"+m_themeName+"/btnscore.png")));
- m_view->btnMess->setPixmap(QPixmap(locate("data","kmessedwords/themes/"+m_themeName+"/btnmess.png")));
- m_view->btnTry->setPixmap(QPixmap(locate("data","kmessedwords/themes/"+m_themeName+"/btntry.png")));
+ if(Prefs::buttons()) {
+ updateButtons();
update();
} else {
@@ -203,4 +200,11 @@ void MainWindow::updateSettings()
}
+// This function updates the buttons...
+void MainWindow::updateButtons()
+{
+ m_view->btnScore->setPixmap(QPixmap(locate("data","kmessedwords/themes/"+m_themeName+"/btnscore.png")));
+ m_view->btnMess->setPixmap(QPixmap(locate("data","kmessedwords/themes/"+m_themeName+"/btnmess.png")));
+ m_view->btnTry->setPixmap(QPixmap(locate("data","kmessedwords/themes/"+m_themeName+"/btntry.png")));
+}
#include "mainwindow.moc"
--- kdeedu/kmessedwords/kmessedwords/mainwindow.h #1.34:1.35
@@ -86,4 +86,5 @@ protected slots:
///When the user changes the level with the Menu
void slotChangeLevel();
+ void updateButtons();
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic