mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 08:40:53 +01:00
Add TODO compile var + Fix doxygen issue
You can make your code warn on compile time for the TODO's In order to do so, uncomment the following line. in pro file DEFINES += TODO_LIST
This commit is contained in:
@@ -210,6 +210,9 @@ bool QETTitleBlockTemplateEditor::edit(
|
||||
}
|
||||
if (!tb_template_orig) {
|
||||
/// TODO The TBT does not exist, manage error
|
||||
#if TODO_LIST
|
||||
#pragma message("@TODO The TBT does not exist, manage error")
|
||||
#endif
|
||||
return(false);
|
||||
}
|
||||
|
||||
@@ -247,6 +250,9 @@ bool QETTitleBlockTemplateEditor::edit(
|
||||
|
||||
if (!tb_template_orig) {
|
||||
/// TODO The TBT does not exist, manage error
|
||||
#if TODO_LIST
|
||||
#pragma message("@TODO The TBT does not exist, manage error")
|
||||
#endif
|
||||
return(false);
|
||||
}
|
||||
|
||||
@@ -267,12 +273,18 @@ bool QETTitleBlockTemplateEditor::edit(const QString &file_path)
|
||||
TitleBlockTemplate *tbt = new TitleBlockTemplate();
|
||||
bool loading = tbt -> loadFromXmlFile(file_path);
|
||||
if (!loading) {
|
||||
#if TODO_LIST
|
||||
#pragma message("@TODO the file opening failed, warn the user?")
|
||||
#endif
|
||||
/// TODO the file opening failed, warn the user?
|
||||
return(false);
|
||||
}
|
||||
|
||||
bool editing = edit(tbt);
|
||||
if (!editing) {
|
||||
#if TODO_LIST
|
||||
#pragma message("@TODO the file editing failed, warn the user?")
|
||||
#endif
|
||||
/// TODO the file editing failed, warn the user?
|
||||
return(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user