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(); | ||||
|     setupPictureSettings(); | ||||
|     setupCustomGTAFolder(); | ||||
|     setupSnapmaticPictureViewer(); | ||||
| 
 | ||||
|     this->setWindowTitle(windowTitle().arg(GTA5SYNC_APPSTR)); | ||||
| } | ||||
|  | @ -198,6 +199,7 @@ void OptionsDialog::applySettings() | |||
| #else | ||||
|     settings->setValue("Language", ui->cbLanguage->itemData(ui->cbLanguage->currentIndex())); | ||||
| #endif | ||||
|     settings->setValue("NavigationBar", ui->cbSnapmaticNavigationBar->isChecked()); | ||||
|     settings->endGroup(); | ||||
| 
 | ||||
|     settings->beginGroup("Profile"); | ||||
|  | @ -403,6 +405,13 @@ void OptionsDialog::setupCustomGTAFolder() | |||
|     settings->endGroup(); | ||||
| } | ||||
| 
 | ||||
| void OptionsDialog::setupSnapmaticPictureViewer() | ||||
| { | ||||
|     settings->beginGroup("Interface"); | ||||
|     ui->cbSnapmaticNavigationBar->setChecked(settings->value("NavigationBar", false).toBool()); | ||||
|     settings->endGroup(); | ||||
| } | ||||
| 
 | ||||
| void OptionsDialog::on_cmdExploreFolder_clicked() | ||||
| { | ||||
|     QString GTAV_Folder = QFileDialog::getExistingDirectory(this, UserInterface::tr("Select GTA V Folder..."), StandardPaths::documentsLocation(), QFileDialog::ShowDirsOnly); | ||||
|  |  | |||
|  | @ -72,6 +72,7 @@ private: | |||
|     void setupDefaultProfile(); | ||||
|     void setupPictureSettings(); | ||||
|     void setupCustomGTAFolder(); | ||||
|     void setupSnapmaticPictureViewer(); | ||||
|     void applySettings(); | ||||
| }; | ||||
| 
 | ||||
|  |  | |||
|  | @ -77,7 +77,7 @@ | |||
|          <property name="title"> | ||||
|           <string>Custom GTA V Folder</string> | ||||
|          </property> | ||||
|          <layout class="QVBoxLayout" name="verticalLayout"> | ||||
|          <layout class="QVBoxLayout" name="vlCustomGTAVFolder"> | ||||
|           <item> | ||||
|            <widget class="QCheckBox" name="cbForceCustomFolder"> | ||||
|             <property name="text"> | ||||
|  | @ -297,6 +297,22 @@ | |||
|          </layout> | ||||
|         </widget> | ||||
|        </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> | ||||
|         <spacer name="vsTabPictures"> | ||||
|          <property name="orientation"> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue