BlackBerry: Refactored BarDescriptorDocument

The BarDescriptorDocument now operates directly on the underlying
QDomDocument, and is much better at keeping the tags on their original
lines. Any new values are appended to the end of the document.

A generic API is provided for changing the values inside the document,
BarDescriptorDocument::setValue(..).

BarDescriptorDocument no longer depends on the BarDescriptorEditorWidget, which
should make it easier to implement splitting of the editor.

Task-number: QTCREATORBUG-11012

Change-Id: Icfd681e3af016ea819b99b8cad2cede46600e910
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
Reviewed-by: Mehdi Fekari <mfekari@blackberry.com>
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
This commit is contained in:
Tobias Naetterlund
2013-12-23 15:36:42 +01:00
committed by Tobias Nätterlund
parent 717e384bb5
commit 3994e698cd
27 changed files with 1039 additions and 1616 deletions

View File

@@ -51,12 +51,14 @@ public:
explicit BarDescriptorEditorPermissionsWidget(QWidget *parent = 0);
~BarDescriptorEditorPermissionsWidget();
void clear();
protected:
void updateWidgetValue(BarDescriptorDocument::Tag tag, const QVariant &value);
void emitChanged(BarDescriptorDocument::Tag tag);
private:
QStringList checkedPermissions() const;
void checkPermission(const QString &identifier);
private:
Ui::BarDescriptorEditorPermissionsWidget *m_ui;
BarDescriptorPermissionsModel *m_permissionsModel;