33 |
|
|
34 |
#include <QStyleFactory> |
#include <QStyleFactory> |
35 |
|
|
|
namespace QSampler { |
|
36 |
|
|
37 |
// Default (empty/blank) name. |
// Default (empty/blank) name. |
38 |
static const char *g_pszDefName = QT_TR_NOOP("(default)"); |
static const char *g_pszDefName = QT_TRANSLATE_NOOP("qsamplerOptionsForm", "(default)"); |
39 |
|
|
40 |
|
|
41 |
|
namespace QSampler { |
42 |
|
|
43 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
44 |
// QSampler::OptionsForm -- Options form implementation. |
// QSampler::OptionsForm -- Options form implementation. |
593 |
PaletteForm::namedPaletteList(&m_pOptions->settings())); |
PaletteForm::namedPaletteList(&m_pOptions->settings())); |
594 |
|
|
595 |
int iCustomColorTheme = 0; |
int iCustomColorTheme = 0; |
596 |
if (!sCustomColorTheme.isEmpty()) |
if (!sCustomColorTheme.isEmpty()) { |
597 |
iCustomColorTheme = m_ui.CustomColorThemeComboBox->findText( |
iCustomColorTheme = m_ui.CustomColorThemeComboBox->findText( |
598 |
sCustomColorTheme); |
sCustomColorTheme); |
599 |
|
if (iCustomColorTheme < 0) |
600 |
|
iCustomColorTheme = 0; |
601 |
|
} |
602 |
m_ui.CustomColorThemeComboBox->setCurrentIndex(iCustomColorTheme); |
m_ui.CustomColorThemeComboBox->setCurrentIndex(iCustomColorTheme); |
603 |
} |
} |
604 |
|
|
613 |
m_ui.CustomStyleThemeComboBox->addItems(QStyleFactory::keys()); |
m_ui.CustomStyleThemeComboBox->addItems(QStyleFactory::keys()); |
614 |
|
|
615 |
int iCustomStyleTheme = 0; |
int iCustomStyleTheme = 0; |
616 |
if (!sCustomStyleTheme.isEmpty()) |
if (!sCustomStyleTheme.isEmpty()) { |
617 |
iCustomStyleTheme = m_ui.CustomStyleThemeComboBox->findText( |
iCustomStyleTheme = m_ui.CustomStyleThemeComboBox->findText( |
618 |
sCustomStyleTheme); |
sCustomStyleTheme); |
619 |
|
if (iCustomStyleTheme < 0) |
620 |
|
iCustomStyleTheme = 0; |
621 |
|
} |
622 |
m_ui.CustomStyleThemeComboBox->setCurrentIndex(iCustomStyleTheme); |
m_ui.CustomStyleThemeComboBox->setCurrentIndex(iCustomStyleTheme); |
623 |
} |
} |
624 |
|
|