Commit f57e12e2 authored by Simone Gaiarin's avatar Simone Gaiarin
Browse files

Move default annotation toolbar setting to annotation setting page

parent 5a92d401
......@@ -10,6 +10,7 @@
#include <KLocalizedString>
#include <QComboBox>
#include <QFormLayout>
#include <QLabel>
#include <QLineEdit>
......@@ -19,6 +20,13 @@ DlgAnnotations::DlgAnnotations(QWidget *parent)
{
QFormLayout *layout = new QFormLayout(this);
// Combobox: default annotation toolbar associated to annotation action in tool menu
QComboBox *annotationToolBar = new QComboBox(this);
annotationToolBar->addItem(i18nc("item:inlistbox Config dialog, general page", "Full Annotation Toobar"));
annotationToolBar->addItem(i18nc("item:inlistbox Config dialog, general page", "Quick Annotation Toolbar"));
annotationToolBar->setObjectName(QStringLiteral("kcfg_AnnotationToolBar"));
layout->addRow(i18nc("label:listbox Config dialog, general page", "Annotation toolbar:"), annotationToolBar);
// BEGIN Author row: Line edit to set the annotation’s default author value.
QLineEdit *authorLineEdit = new QLineEdit(this);
authorLineEdit->setObjectName(QStringLiteral("kcfg_IdentityAuthor"));
......
......@@ -91,15 +91,6 @@ 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", "Full 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", "Annotation toolbar:"), defaultAnnotationToolBar);
}
// END Appearance section
layout->addRow(new QLabel(this));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment