Element text pattern dialog : add a check box 'erase existing texts'

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5541 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2018-09-30 17:19:50 +00:00
parent aaab9b0f15
commit 63fd76231a
5 changed files with 240 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
/*
Copyright 2006-2017 The QElectroTech Team
Copyright 2006-2018 The QElectroTech Team
This file is part of QElectroTech.
QElectroTech is free software: you can redistribute it and/or modify
@@ -45,9 +45,9 @@ class ImportElementTextPattern
ImportElementTextPattern(Element *elmt);
private:
QString getName(const QStringList& list, bool &ok) const;
QString getName(const QStringList& list, bool *ok, bool *erase) const;
QWidget *parentWidget() const;
void apply(QString name) const;
void apply(QString name, bool erase = false) const;
private:
Element *m_element = nullptr;