Fix some Debian lintian spelling errors

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5262 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2018-03-11 13:38:41 +00:00
parent cbfd8fbc59
commit bfa706ca29
8 changed files with 16 additions and 16 deletions

View File

@@ -7,7 +7,7 @@
* User can export / import the configuration of the texts and texts group of an element. * User can export / import the configuration of the texts and texts group of an element.
* Element editor : element informations (manufacturer, reference etc...) can be created directly from the element editor. For that go to the widget "Element Property" * Element editor : element informations (manufacturer, reference etc...) can be created directly from the element editor. For that go to the widget "Element Property"
* Element editor : it is no longer required to have a text field, for save the edited element. * Element editor : it is no longer required to have a text field, for save the edited element.
* Fix crash occured by the conductor and shape "ghost". * Fix crash occurred by the conductor and shape "ghost".
* Dissociate fonts policy and size for independent text item and for summarry pages (foliolist), add a 2 button in config page for open Qfontdialog widget and choose policy for independent text item * Dissociate fonts policy and size for independent text item and for summarry pages (foliolist), add a 2 button in config page for open Qfontdialog widget and choose policy for independent text item
Possiblility to overide defaut settings by adding in QElectroTech.conf Possiblility to overide defaut settings by adding in QElectroTech.conf
* Basic shape add new CustomDashLine style with Dash Pattern (<< 10 << 10 ); * Basic shape add new CustomDashLine style with Dash Pattern (<< 10 << 10 );

View File

@@ -321,7 +321,7 @@ ElementsLocation ElementCollectionHandler::copy(ElementsLocation &source, Elemen
* @param parent : parent of the dir to create * @param parent : parent of the dir to create
* @param name : name of directorie to create * @param name : name of directorie to create
* @param name_list : translations of the directorie name * @param name_list : translations of the directorie name
* @return : ElementsLocation that represent the new directorie, location can be null if an error was occured * @return : ElementsLocation that represent the new directorie, location can be null if an error was occurred
*/ */
ElementsLocation ElementCollectionHandler::createDir(ElementsLocation &parent, const QString &name, const NamesList &name_list) ElementsLocation ElementCollectionHandler::createDir(ElementsLocation &parent, const QString &name, const NamesList &name_list)
{ {
@@ -357,7 +357,7 @@ ElementsLocation ElementCollectionHandler::createDir(ElementsLocation &parent, c
return created_dir; return created_dir;
} }
else { else {
qDebug() << "ElementCollectionHandler::createDir : error was occured at creation of new directories in file system. "; qDebug() << "ElementCollectionHandler::createDir : error was occurred at creation of new directories in file system. ";
return ElementsLocation(); return ElementsLocation();
} }
} }
@@ -367,7 +367,7 @@ ElementsLocation ElementCollectionHandler::createDir(ElementsLocation &parent, c
return created_dir; return created_dir;
} }
else { else {
qDebug() << "ElementCollectionHandler::createDir : error was occured at creation of new directories in embbeded collection."; qDebug() << "ElementCollectionHandler::createDir : error was occurred at creation of new directories in embbeded collection.";
return ElementsLocation(); return ElementsLocation();
} }
} }

View File

@@ -688,7 +688,7 @@ void QETElementEditor::slot_updateInformations()
/** /**
* @brief QETElementEditor::checkElement * @brief QETElementEditor::checkElement
* Do several check about element. * Do several check about element.
* If error is occured return false * If error is occurred return false
*/ */
bool QETElementEditor::checkElement() bool QETElementEditor::checkElement()
{ {
@@ -1135,7 +1135,7 @@ void QETElementEditor::slot_reload()
/** /**
* @brief QETElementEditor::slot_save * @brief QETElementEditor::slot_save
* Save the current editing element. * Save the current editing element.
* If the filepath or location is unknow, use save_as instead * If the filepath or location is unknown, use save_as instead
* @return true if save with success * @return true if save with success
*/ */
bool QETElementEditor::slot_save() bool QETElementEditor::slot_save()

View File

@@ -554,7 +554,7 @@ QString QET::titleBlockColumnLengthToString(const TitleBlockColumnLength &icl)
@param filepath Path to the file to be written @param filepath Path to the file to be written
@param error_message If non-zero, will contain an error message explaining @param error_message If non-zero, will contain an error message explaining
what happened when this function returns false. what happened when this function returns false.
@return false if an error occured, true otherwise @return false if an error occurred, true otherwise
*/ */
bool QET::writeXmlFile(QDomDocument &xml_doc, const QString &filepath, QString *error_message) { bool QET::writeXmlFile(QDomDocument &xml_doc, const QString &filepath, QString *error_message) {
QFile file(filepath); QFile file(filepath);

View File

@@ -957,7 +957,7 @@ ElementsLocation QETProject::importElement(ElementsLocation &location)
Integrate a title block template into this project. Integrate a title block template into this project.
@param src_tbt The location of the title block template to be integrated into this project @param src_tbt The location of the title block template to be integrated into this project
@param handler @param handler
@return the name of the template after integration, or an empty QString if a problem occured. @return the name of the template after integration, or an empty QString if a problem occurred.
*/ */
QString QETProject::integrateTitleBlockTemplate(const TitleBlockTemplateLocation &src_tbt, MoveTitleBlockTemplatesHandler *handler) { QString QETProject::integrateTitleBlockTemplate(const TitleBlockTemplateLocation &src_tbt, MoveTitleBlockTemplatesHandler *handler) {
TitleBlockTemplateLocation dst_tbt(src_tbt.name(), &titleblocks_); TitleBlockTemplateLocation dst_tbt(src_tbt.name(), &titleblocks_);

View File

@@ -40,7 +40,7 @@ QDomElement QETXML::penToXml(QDomDocument &parent_document,QPen pen)
case Qt::DashDotLine : style = "DashDotLine"; break; case Qt::DashDotLine : style = "DashDotLine"; break;
case Qt::DashDotDotLine : style = "DashDotDotLine"; break; case Qt::DashDotDotLine : style = "DashDotDotLine"; break;
case Qt::CustomDashLine : style = "CustomDashLine"; break; case Qt::CustomDashLine : style = "CustomDashLine"; break;
default : style = "Unknow"; break; default : style = "Unknown"; break;
} }
element.setAttribute("style", style); element.setAttribute("style", style);
@@ -110,7 +110,7 @@ QDomElement QETXML::brushToXml(QDomDocument &parent_document, QBrush brush)
case Qt::BDiagPattern : style = "BDiagPattern"; break; case Qt::BDiagPattern : style = "BDiagPattern"; break;
case Qt::FDiagPattern : style = "FDiagPattern"; break; case Qt::FDiagPattern : style = "FDiagPattern"; break;
case Qt::DiagCrossPattern : style = "DiagCrossPattern"; break; case Qt::DiagCrossPattern : style = "DiagCrossPattern"; break;
default : style = "Unknow"; break; default : style = "Unknown"; break;
} }
element.setAttribute("style", style); element.setAttribute("style", style);
@@ -147,7 +147,7 @@ QBrush QETXML::brushFromXml(const QDomElement &element)
else if (style == "BDiagPattern") brush.setStyle(Qt::BDiagPattern); else if (style == "BDiagPattern") brush.setStyle(Qt::BDiagPattern);
else if (style == "FDiagPattern") brush.setStyle(Qt::FDiagPattern); else if (style == "FDiagPattern") brush.setStyle(Qt::FDiagPattern);
else if (style == "DiagCrossPattern") brush.setStyle(Qt::DiagCrossPattern); else if (style == "DiagCrossPattern") brush.setStyle(Qt::DiagCrossPattern);
else if (style == "Unknow") brush.setStyle(Qt::NoBrush); else if (style == "Unknown") brush.setStyle(Qt::NoBrush);
brush.setColor(QColor(element.attribute("color", "#000000"))); brush.setColor(QColor(element.attribute("color", "#000000")));
return brush; return brush;
@@ -230,7 +230,7 @@ QDomElement QETXML::fileSystemElementToXmlCollectionElement(QDomDocument &docume
* @param xml_document : An XML document to be exported * @param xml_document : An XML document to be exported
* @param file_path : Path to the file to be written * @param file_path : Path to the file to be written
* @param error_message : If non-zero, will contain an error message explaining what happened when this function returns false. * @param error_message : If non-zero, will contain an error message explaining what happened when this function returns false.
* @return false if an error occured, true otherwise * @return false if an error occurred, true otherwise
*/ */
bool QETXML::writeXmlFile(const QDomDocument &xml_document, const QString &file_path, QString *error_message) bool QETXML::writeXmlFile(const QDomDocument &xml_document, const QString &file_path, QString *error_message)
{ {

View File

@@ -242,7 +242,7 @@ bool QETTitleBlockTemplateEditor::edit(QETProject *project, const QString &templ
/** /**
@param file_path Path of the template file to edit. @param file_path Path of the template file to edit.
@return false if a problem occured while opening the template, true otherwise. @return false if a problem occurred while opening the template, true otherwise.
*/ */
bool QETTitleBlockTemplateEditor::edit(const QString &file_path) { bool QETTitleBlockTemplateEditor::edit(const QString &file_path) {
// get title block template object from the file, edit it // get title block template object from the file, edit it
@@ -268,7 +268,7 @@ bool QETTitleBlockTemplateEditor::edit(const QString &file_path) {
/** /**
@param tbt Title block template to be edited @param tbt Title block template to be edited
@return false if a problem occured while opening the template, true otherwise. @return false if a problem occurred while opening the template, true otherwise.
*/ */
bool QETTitleBlockTemplateEditor::editCopyOf(const TitleBlockTemplate *tbt) { bool QETTitleBlockTemplateEditor::editCopyOf(const TitleBlockTemplate *tbt) {
if (!tbt) return(false); if (!tbt) return(false);
@@ -277,7 +277,7 @@ bool QETTitleBlockTemplateEditor::editCopyOf(const TitleBlockTemplate *tbt) {
/** /**
@param tbt Title block template to be directly edited @param tbt Title block template to be directly edited
@return false if a problem occured while opening the template, true otherwise. @return false if a problem occurred while opening the template, true otherwise.
*/ */
bool QETTitleBlockTemplateEditor::edit(TitleBlockTemplate *tbt) { bool QETTitleBlockTemplateEditor::edit(TitleBlockTemplate *tbt) {
if (!tbt) return(false); if (!tbt) return(false);

View File

@@ -229,7 +229,7 @@ QDomElement TitleBlockTemplatesProjectCollection::getTemplateXmlDescription(cons
existing one. existing one.
@param xml_elmt An \<titleblocktemplate\> XML element describing the @param xml_elmt An \<titleblocktemplate\> XML element describing the
template. Its "name" attribute must equal to template_name. template. Its "name" attribute must equal to template_name.
@return false if a problem occured, true otherwise @return false if a problem occurred, true otherwise
*/ */
bool TitleBlockTemplatesProjectCollection::setTemplateXmlDescription(const QString &template_name, const QDomElement &xml_elmt) { bool TitleBlockTemplatesProjectCollection::setTemplateXmlDescription(const QString &template_name, const QDomElement &xml_elmt) {
// check basic stuff // check basic stuff