[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 10:37:53
Message-ID: 20041212103753.BD7ED1BAFC () office ! kde ! org
[Download RAW message or body]
CVS commit by reuben:
Added a check to see if the background needs changing.
M +11 -10 mainwindow.cpp 1.65
--- kdeedu/kmessedwords/kmessedwords/mainwindow.cpp #1.64:1.65
@@ -188,22 +188,23 @@ void MainWindow::resizeEvent(QResizeEven
void MainWindow::updateSettings()
{
- //if pic changed TODO test?
+ // This checks this needs changing
+ if(Prefs::background())
setBackgroundPic();
- if(Prefs::buttons()) {
updateButtons();
- update();
- } else {
- m_view->btnScore->setText(i18n("&Scores"));
- m_view->btnMess->setText(i18n("&Play"));
- m_view->btnTry->setText(i18n("&Try"));
- }
}
-// This function updates the buttons...
+// This function check's the button settings and sets the pictures if necerrsarry
void MainWindow::updateButtons()
{
+ 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")));
+ update();
+ } else {
+ m_view->btnScore->setText(i18n("&Scores"));
+ m_view->btnMess->setText(i18n("&Play"));
+ m_view->btnTry->setText(i18n("&Try"));
+ }
}
#include "mainwindow.moc"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic