disable navigation bar for default
This commit is contained in:
parent
80f27cd6e6
commit
aa75059f35
1 changed files with 8 additions and 2 deletions
|
@ -23,6 +23,7 @@
|
||||||
#include "PictureDialog.h"
|
#include "PictureDialog.h"
|
||||||
#include "PictureExport.h"
|
#include "PictureExport.h"
|
||||||
#include "PictureCopy.h"
|
#include "PictureCopy.h"
|
||||||
|
#include "config.h"
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QPixmap>
|
#include <QPixmap>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
@ -100,6 +101,11 @@ void SnapmaticWidget::setSnapmaticPicture(SnapmaticPicture *picture)
|
||||||
|
|
||||||
void SnapmaticWidget::on_cmdView_clicked()
|
void SnapmaticWidget::on_cmdView_clicked()
|
||||||
{
|
{
|
||||||
|
QSettings settings(GTA5SYNC_APPVENDOR, GTA5SYNC_APPSTR);
|
||||||
|
settings.beginGroup("Interface");
|
||||||
|
bool navigationBar = settings.value("NavigationBar", false).toBool();
|
||||||
|
settings.endGroup();
|
||||||
|
|
||||||
PictureDialog *picDialog = new PictureDialog(profileDB, crewDB, this);
|
PictureDialog *picDialog = new PictureDialog(profileDB, crewDB, this);
|
||||||
picDialog->setWindowFlags(picDialog->windowFlags()^Qt::WindowContextHelpButtonHint);
|
picDialog->setWindowFlags(picDialog->windowFlags()^Qt::WindowContextHelpButtonHint);
|
||||||
picDialog->setSnapmaticPicture(smpic, picPath, true);
|
picDialog->setSnapmaticPicture(smpic, picPath, true);
|
||||||
|
@ -111,11 +117,11 @@ void SnapmaticWidget::on_cmdView_clicked()
|
||||||
QObject::connect(picDialog, SIGNAL(previousPictureRequested()), this, SLOT(dialogPreviousPictureRequested()));
|
QObject::connect(picDialog, SIGNAL(previousPictureRequested()), this, SLOT(dialogPreviousPictureRequested()));
|
||||||
|
|
||||||
// add previous next buttons
|
// add previous next buttons
|
||||||
picDialog->addPreviousNextButtons();
|
if (navigationBar) picDialog->addPreviousNextButtons();
|
||||||
|
|
||||||
// show picture dialog
|
// show picture dialog
|
||||||
picDialog->show();
|
picDialog->show();
|
||||||
picDialog->stylizeDialog();
|
if (navigationBar) picDialog->stylizeDialog();
|
||||||
picDialog->setMinimumSize(picDialog->size());
|
picDialog->setMinimumSize(picDialog->size());
|
||||||
picDialog->setMaximumSize(picDialog->size());
|
picDialog->setMaximumSize(picDialog->size());
|
||||||
picDialog->exec();
|
picDialog->exec();
|
||||||
|
|
Loading…
Reference in a new issue