|
|
|
|
@ -91,6 +91,15 @@ DlgGeneral::DlgGeneral(QWidget *parent, Okular::EmbedMode embedMode) |
|
|
|
|
useCustomColor->setChecked(false); |
|
|
|
|
customColor->setEnabled(false); |
|
|
|
|
connect(useCustomColor, &QCheckBox::toggled, customColor, &QWidget::setEnabled); |
|
|
|
|
|
|
|
|
|
if (embedMode != Okular::ViewerWidgetMode) { |
|
|
|
|
// Combobox: default annotation toolbar associated to annotation action in tool menu
|
|
|
|
|
QComboBox *defaultAnnotationToolBar = new QComboBox(this); |
|
|
|
|
defaultAnnotationToolBar->addItem(i18nc("item:inlistbox Config dialog, general page", "Annotation Toobar")); |
|
|
|
|
defaultAnnotationToolBar->addItem(i18nc("item:inlistbox Config dialog, general page", "Quick Annotation Toolbar")); |
|
|
|
|
defaultAnnotationToolBar->setObjectName(QStringLiteral("kcfg_DefaultAnnotationToolBar")); |
|
|
|
|
layout->addRow(i18nc("label:listbox Config dialog, general page", "Default annotation toolbar:"), defaultAnnotationToolBar); |
|
|
|
|
} |
|
|
|
|
// END Appearance section
|
|
|
|
|
|
|
|
|
|
layout->addRow(new QLabel(this)); |
|
|
|
|
@ -165,11 +174,6 @@ DlgGeneral::DlgGeneral(QWidget *parent, Okular::EmbedMode embedMode) |
|
|
|
|
openInContinuousModeByDefault->setText(i18nc("@option:check Config dialog, general page", "Open in continuous mode by default")); |
|
|
|
|
openInContinuousModeByDefault->setObjectName(QStringLiteral("kcfg_ViewContinuous")); |
|
|
|
|
layout->addRow(programFeaturesLabel(), openInContinuousModeByDefault); |
|
|
|
|
|
|
|
|
|
QCheckBox *useLegacyAnnotationToolBar = new QCheckBox(this); |
|
|
|
|
useLegacyAnnotationToolBar->setText(i18nc("@option:check Config dialog, general page", "Use legacy annotation toolbar")); |
|
|
|
|
useLegacyAnnotationToolBar->setObjectName(QStringLiteral("kcfg_LegacyAnnotationToolBar")); |
|
|
|
|
layout->addRow(programFeaturesLabel(), useLegacyAnnotationToolBar); |
|
|
|
|
// END Program features section
|
|
|
|
|
|
|
|
|
|
// If no Program features section, don’t add a second spacer:
|
|
|
|
|
|