mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 00:30:53 +01:00
User can export / import the configuration of the texts and texts group of an element.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5195 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "QPropertyUndoCommand/qpropertyundocommand.h"
|
||||
#include "elementtextitemgroup.h"
|
||||
#include "deleteqgraphicsitemcommand.h"
|
||||
#include "elementtextpattern.h"
|
||||
|
||||
#include <QTreeView>
|
||||
#include <QUndoCommand>
|
||||
@@ -40,9 +41,6 @@ DynamicElementTextItemEditor::DynamicElementTextItemEditor(Element *element, QWi
|
||||
ui->m_tree_view->installEventFilter(this);
|
||||
ui->m_remove_selection->setDisabled(true);
|
||||
|
||||
ui->m_export_pb->hide();
|
||||
ui->m_import_pb->hide();
|
||||
|
||||
setElement(element);
|
||||
}
|
||||
|
||||
@@ -256,3 +254,13 @@ void DynamicElementTextItemEditor::on_m_tree_view_clicked(const QModelIndex &ind
|
||||
else
|
||||
ui->m_remove_selection->setDisabled(true);
|
||||
}
|
||||
|
||||
void DynamicElementTextItemEditor::on_m_export_pb_clicked()
|
||||
{
|
||||
ExportElementTextPattern eetp(m_element);
|
||||
}
|
||||
|
||||
void DynamicElementTextItemEditor::on_m_import_pb_clicked()
|
||||
{
|
||||
ImportElementTextPattern ietp(m_element);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user