mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 09:00:05 +00:00 
			
		
		
		
	Add map logo and attribution toggle to settings
This commit is contained in:
		
							parent
							
								
									4c844459a0
								
							
						
					
					
						commit
						7cfb55a4de
					
				
					 5 changed files with 48 additions and 3 deletions
				
			
		|  | @ -130,6 +130,8 @@ public: | |||
|           &theme_, | ||||
|           &defaultAlertAction_, | ||||
|           &antiAliasingEnabled_, | ||||
|           &showMapAttribution_, | ||||
|           &showMapLogo_, | ||||
|           &updateNotificationsEnabled_, | ||||
|           &debugEnabled_, | ||||
|           &alertAudioSoundFile_, | ||||
|  | @ -220,6 +222,8 @@ public: | |||
|    settings::SettingsInterface<std::string>  defaultAlertAction_ {}; | ||||
|    settings::SettingsInterface<std::string>  theme_ {}; | ||||
|    settings::SettingsInterface<bool>         antiAliasingEnabled_ {}; | ||||
|    settings::SettingsInterface<bool>         showMapAttribution_ {}; | ||||
|    settings::SettingsInterface<bool>         showMapLogo_ {}; | ||||
|    settings::SettingsInterface<bool>         updateNotificationsEnabled_ {}; | ||||
|    settings::SettingsInterface<bool>         debugEnabled_ {}; | ||||
| 
 | ||||
|  | @ -617,6 +621,13 @@ void SettingsDialogImpl::SetupGeneralTab() | |||
|       generalSettings.anti_aliasing_enabled()); | ||||
|    antiAliasingEnabled_.SetEditWidget(self_->ui->antiAliasingEnabledCheckBox); | ||||
| 
 | ||||
|    showMapAttribution_.SetSettingsVariable( | ||||
|       generalSettings.show_map_attribution()); | ||||
|    showMapAttribution_.SetEditWidget(self_->ui->showMapAttributionCheckBox); | ||||
| 
 | ||||
|    showMapLogo_.SetSettingsVariable(generalSettings.show_map_logo()); | ||||
|    showMapLogo_.SetEditWidget(self_->ui->showMapLogoCheckBox); | ||||
| 
 | ||||
|    updateNotificationsEnabled_.SetSettingsVariable( | ||||
|       generalSettings.update_notifications_enabled()); | ||||
|    updateNotificationsEnabled_.SetEditWidget( | ||||
|  |  | |||
|  | @ -322,6 +322,20 @@ | |||
|              </property> | ||||
|             </widget> | ||||
|            </item> | ||||
|            <item> | ||||
|             <widget class="QCheckBox" name="showMapAttributionCheckBox"> | ||||
|              <property name="text"> | ||||
|               <string>Show Map Attribution</string> | ||||
|              </property> | ||||
|             </widget> | ||||
|            </item> | ||||
|            <item> | ||||
|             <widget class="QCheckBox" name="showMapLogoCheckBox"> | ||||
|              <property name="text"> | ||||
|               <string>Show Map Logo</string> | ||||
|              </property> | ||||
|             </widget> | ||||
|            </item> | ||||
|            <item> | ||||
|             <widget class="QCheckBox" name="enableUpdateNotificationsCheckBox"> | ||||
|              <property name="text"> | ||||
|  | @ -373,8 +387,8 @@ | |||
|                    <rect> | ||||
|                     <x>0</x> | ||||
|                     <y>0</y> | ||||
|                     <width>514</width> | ||||
|                     <height>382</height> | ||||
|                     <width>66</width> | ||||
|                     <height>18</height> | ||||
|                    </rect> | ||||
|                   </property> | ||||
|                   <layout class="QGridLayout" name="gridLayout_3"> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat