Skip to content

Commit 254686e

Browse files
committed
XML parsing error message adjusted
1 parent 8ce3d96 commit 254686e

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/querywidgetmanager.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,13 @@
2424
** at **
2525
** iqo.uni-hannover.de **
2626
** **
27-
** Date: 12 June 2019 **
28-
** Version: 1.0.0 **
2927
****************************************************************************/
3028

3129
#include "querywidgetmanager.h"
3230

3331
QueryWidgetManager::QueryWidgetManager(QWidget *parent)
3432
: QWidget(parent)
3533
{
36-
3734
}
3835

3936
QueryWidgetManager::~QueryWidgetManager()
@@ -45,7 +42,7 @@ void QueryWidgetManager::createWidgetsFromXmlFile(QString filePath){
4542
QFile file(filePath);
4643
if (file.open(QIODevice::ReadOnly | QIODevice::Text)){
4744
if (!document.setContent(&file)){
48-
emit error(tr("Could not load integer elements from XML file."));
45+
emit error(tr("XML file parse error. Could not load elements from XML file."));
4946
}
5047
file.close();
5148
}
@@ -149,5 +146,5 @@ void QueryWidgetManager::optainComboBoxWidgets(QDomElement root, QString tag){
149146

150147
this->comboBoxWidgets.append(new ComboBoxQueryWidget(name, options, expert, infoText));
151148
}
152-
}
149+
}
153150
}

src/querywidgetmanager.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
** at **
2525
** iqo.uni-hannover.de **
2626
** **
27-
** Date: 12 June 2019 **
28-
** Version: 1.0.0 **
2927
****************************************************************************/
3028

3129
#pragma once
@@ -69,7 +67,6 @@ class QueryWidgetManager : public QWidget
6967

7068
public slots:
7169

72-
7370
signals:
7471
void error(QString);
7572
void info(QString);

0 commit comments

Comments
 (0)