QTfrontend/gameuiconfig.cpp
changeset 2747 7889a3a9724f
parent 2631 163b0128bd21
child 2773 e94f240a8a41
--- a/QTfrontend/gameuiconfig.cpp	Thu Feb 04 18:46:49 2010 +0000
+++ b/QTfrontend/gameuiconfig.cpp	Thu Feb 04 20:45:03 2010 +0000
@@ -39,6 +39,8 @@
 	//Form->resize(value("window/width", 640).toUInt(), value("window/height", 450).toUInt());
 	resizeToConfigValues();
 
+	Form->ui.pageOptions->WeaponTooltip->setChecked(value("misc/WeaponTooltip", true).toBool());
+
 	int t = Form->ui.pageOptions->CBResolution->findText(value("video/resolution").toString());
 	Form->ui.pageOptions->CBResolution->setCurrentIndex((t < 0) ? 0 : t);
 	Form->ui.pageOptions->CBFullscreen->setChecked(value("video/fullscreen", false).toBool());
@@ -111,6 +113,8 @@
 
 	setValue("video/frontendeffects", isFrontendEffects());
 
+	setValue("misc/WeaponTooltip", isWeaponTooltip());
+
 	bool ffscr = isFrontendFullscreen();
 	setValue("video/frontendfullscreen", ffscr);
 	emit frontendFullscreen(ffscr);
@@ -171,6 +175,11 @@
   return Form->ui.pageOptions->CBFrontendEffects->isChecked();
 }
 
+bool GameUIConfig::isWeaponTooltip() const
+{
+  return Form->ui.pageOptions->WeaponTooltip->isChecked();
+}
+
 bool GameUIConfig::isFrontendFullscreen() const
 {
   return Form->ui.pageOptions->CBFrontendFullscreen->isChecked();