Added the abilitiy to enable the navigation bar in settings
This commit is contained in:
		
							parent
							
								
									e46406207d
								
							
						
					
					
						commit
						73b269887d
					
				
					 3 changed files with 27 additions and 1 deletions
				
			
		|  | @ -63,6 +63,7 @@ OptionsDialog::OptionsDialog(ProfileDatabase *profileDB, QWidget *parent) : | ||||||
|     setupDefaultProfile(); |     setupDefaultProfile(); | ||||||
|     setupPictureSettings(); |     setupPictureSettings(); | ||||||
|     setupCustomGTAFolder(); |     setupCustomGTAFolder(); | ||||||
|  |     setupSnapmaticPictureViewer(); | ||||||
| 
 | 
 | ||||||
|     this->setWindowTitle(windowTitle().arg(GTA5SYNC_APPSTR)); |     this->setWindowTitle(windowTitle().arg(GTA5SYNC_APPSTR)); | ||||||
| } | } | ||||||
|  | @ -198,6 +199,7 @@ void OptionsDialog::applySettings() | ||||||
| #else | #else | ||||||
|     settings->setValue("Language", ui->cbLanguage->itemData(ui->cbLanguage->currentIndex())); |     settings->setValue("Language", ui->cbLanguage->itemData(ui->cbLanguage->currentIndex())); | ||||||
| #endif | #endif | ||||||
|  |     settings->setValue("NavigationBar", ui->cbSnapmaticNavigationBar->isChecked()); | ||||||
|     settings->endGroup(); |     settings->endGroup(); | ||||||
| 
 | 
 | ||||||
|     settings->beginGroup("Profile"); |     settings->beginGroup("Profile"); | ||||||
|  | @ -403,6 +405,13 @@ void OptionsDialog::setupCustomGTAFolder() | ||||||
|     settings->endGroup(); |     settings->endGroup(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | void OptionsDialog::setupSnapmaticPictureViewer() | ||||||
|  | { | ||||||
|  |     settings->beginGroup("Interface"); | ||||||
|  |     ui->cbSnapmaticNavigationBar->setChecked(settings->value("NavigationBar", false).toBool()); | ||||||
|  |     settings->endGroup(); | ||||||
|  | } | ||||||
|  | 
 | ||||||
| void OptionsDialog::on_cmdExploreFolder_clicked() | void OptionsDialog::on_cmdExploreFolder_clicked() | ||||||
| { | { | ||||||
|     QString GTAV_Folder = QFileDialog::getExistingDirectory(this, UserInterface::tr("Select GTA V Folder..."), StandardPaths::documentsLocation(), QFileDialog::ShowDirsOnly); |     QString GTAV_Folder = QFileDialog::getExistingDirectory(this, UserInterface::tr("Select GTA V Folder..."), StandardPaths::documentsLocation(), QFileDialog::ShowDirsOnly); | ||||||
|  |  | ||||||
|  | @ -72,6 +72,7 @@ private: | ||||||
|     void setupDefaultProfile(); |     void setupDefaultProfile(); | ||||||
|     void setupPictureSettings(); |     void setupPictureSettings(); | ||||||
|     void setupCustomGTAFolder(); |     void setupCustomGTAFolder(); | ||||||
|  |     void setupSnapmaticPictureViewer(); | ||||||
|     void applySettings(); |     void applySettings(); | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -77,7 +77,7 @@ | ||||||
|          <property name="title"> |          <property name="title"> | ||||||
|           <string>Custom GTA V Folder</string> |           <string>Custom GTA V Folder</string> | ||||||
|          </property> |          </property> | ||||||
|          <layout class="QVBoxLayout" name="verticalLayout"> |          <layout class="QVBoxLayout" name="vlCustomGTAVFolder"> | ||||||
|           <item> |           <item> | ||||||
|            <widget class="QCheckBox" name="cbForceCustomFolder"> |            <widget class="QCheckBox" name="cbForceCustomFolder"> | ||||||
|             <property name="text"> |             <property name="text"> | ||||||
|  | @ -297,6 +297,22 @@ | ||||||
|          </layout> |          </layout> | ||||||
|         </widget> |         </widget> | ||||||
|        </item> |        </item> | ||||||
|  |        <item> | ||||||
|  |         <widget class="QGroupBox" name="gbSnapmaticPictureViewer"> | ||||||
|  |          <property name="title"> | ||||||
|  |           <string>Picture Viewer</string> | ||||||
|  |          </property> | ||||||
|  |          <layout class="QVBoxLayout" name="vlSnapmaticPictureViewer"> | ||||||
|  |           <item> | ||||||
|  |            <widget class="QCheckBox" name="cbSnapmaticNavigationBar"> | ||||||
|  |             <property name="text"> | ||||||
|  |              <string>Enable Navigation Bar</string> | ||||||
|  |             </property> | ||||||
|  |            </widget> | ||||||
|  |           </item> | ||||||
|  |          </layout> | ||||||
|  |         </widget> | ||||||
|  |        </item> | ||||||
|        <item> |        <item> | ||||||
|         <spacer name="vsTabPictures"> |         <spacer name="vsTabPictures"> | ||||||
|          <property name="orientation"> |          <property name="orientation"> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue