53 #include "ui_dialogseamlymepreferences.h"
54 #include "../mapplication.h"
58 #include <QPushButton>
65 m_isInitialized(false),
71 qApp->Settings()->GetOsSeparator() ? setLocale(QLocale()) : setLocale(QLocale::c());
73 QPushButton *ok_Button =
ui->buttonBox->button(QDialogButtonBox::Ok);
77 QPushButton *apply_Button =
ui->buttonBox->button(QDialogButtonBox::Apply);
85 ui->pagesWidget->setCurrentIndex(0);
97 QDialog::showEvent( event );
98 if ( event->spontaneous() )
109 setMinimumSize(size());
111 QSize sz =
qApp->Settings()->getPreferenceDialogSize();
112 if (sz.isEmpty() ==
false)
129 qApp->Settings()->setPreferenceDialogSize(size());
139 qApp->SeamlyMeSettings()->GetOsSeparator() ? setLocale(QLocale()) : setLocale(QLocale::c());
141 setResult(QDialog::Accepted);
148 done(QDialog::Accepted);
154 if (current ==
nullptr)
158 int rowIndex =
ui->contentsWidget->row(current);
159 ui->pagesWidget->setCurrentIndex(rowIndex);
SeamlyMePreferencesPathPage * m_pathPage
Ui::DialogSeamlyMePreferences * ui
DialogSeamlyMePreferences(QWidget *parent=nullptr)
virtual ~DialogSeamlyMePreferences()
void PageChanged(QListWidgetItem *current, QListWidgetItem *previous)
virtual void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE
SeamlyMePreferencesConfigurationPage * m_configurationPage