Commit c9f4a92b authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Fix minor EBN issues

parent 363a9f5d
......@@ -21,7 +21,7 @@ class Q_DECL_EXPORT KalziumGLWidget : public Avogadro::QtOpenGL::GLWidget
{
Q_OBJECT
public:
KalziumGLWidget(QWidget *parent = nullptr);
explicit KalziumGLWidget(QWidget *parent = nullptr);
virtual ~KalziumGLWidget();
public slots:
......
......@@ -41,7 +41,7 @@ public:
/**
* Constructor
*/
ElementCount(Element *_element)
explicit ElementCount(Element *_element)
{
m_element = _element;
m_count = 0;
......@@ -201,14 +201,14 @@ public:
* for searching and matching with searched strings
* Constructor
*/
MoleculeParser(const QList<Element*> &list);
explicit MoleculeParser(const QList<Element*> &list);
/**
* Constructor
*
* @param _str @ref Parser::start the parsing with @p _str
*/
MoleculeParser(const QString &_str);
explicit MoleculeParser(const QString &_str);
/**
* Destructor
......
......@@ -35,8 +35,8 @@ class PeriodicGrid : public QGraphicsWidget
Q_OBJECT
public:
// Basic Create/Destroy
PeriodicGrid(Plasma::Applet *applet = 0);
PeriodicGrid(int tableTyp, Plasma::Applet *applet = 0);
explicit PeriodicGrid(Plasma::Applet *applet = 0);
explicit PeriodicGrid(int tableTyp, Plasma::Applet *applet = 0);
~PeriodicGrid();
......
......@@ -50,7 +50,7 @@ public:
/*
* The class constructor and destructor, takes in a Widget as parent
*/
calculator(QWidget *parent = nullptr); // constructor
explicit calculator(QWidget *parent = nullptr); // constructor
~ calculator(); // destructor
private:
......
......@@ -78,7 +78,7 @@ public:
/*
* The constructor and destructor for the class
*/
concCalculator(QWidget * parent = nullptr);
explicit concCalculator(QWidget * parent = nullptr);
~concCalculator();
public slots:
......
......@@ -71,7 +71,7 @@ class gasCalculator : public QWidget
Q_OBJECT
public:
gasCalculator(QWidget * parent = nullptr);
explicit gasCalculator(QWidget * parent = nullptr);
~gasCalculator();
public slots:
......
......@@ -61,7 +61,7 @@ class nuclearCalculator : public QFrame
Q_OBJECT
public:
nuclearCalculator(QWidget * parent = nullptr);
explicit nuclearCalculator(QWidget * parent = nullptr);
~nuclearCalculator();
public slots:
......
......@@ -479,7 +479,7 @@ void titrationCalculator::on_actionRapid_Help_triggered()
/*
void titrationCalculator::on_actionAbout_triggered()
{
QMessageBox::information(this, "IceeQt About", "I\nCompute\nEquilibria\nExactly\n\nIceeQt is a program for computing chemical equilibria in a easy way. The first version of Icee was written by Gabriele Balducci(University of Trieste, Italy) using matheval, gnuplot, and tk. This version, called IceeQt, was written by Luca Tringali using Qtopia. \n IceeQt is installable on every system supported by Qt: Windows, MacOS, GNU/Linux, FreeBSD, Solaris, Symbian, etc..\n This program is released under GPL3 licence.\n\nThe website is http://www.dsch.units.it/~balducci/lca1/");
QMessageBox::information(this, "IceeQt About", "I\nCompute\nEquilibria\nExactly\n\nIceeQt is a program for computing chemical equilibria in a easy way. The first version of Icee was written by Gabriele Balducci(University of Trieste, Italy) using matheval, gnuplot, and tk. This version, called IceeQt, was written by Luca Tringali using Qtopia. \n IceeQt is installable on every system supported by Qt: Windows, MacOS, GNU/Linux, FreeBSD, Solaris, Symbian, etc..\n This program is released under GPL3 licence.\n\nThe website is http://web.archive.org/web/20041207065103/http://www.dsch.units.it/~balducci/lca1/");
}
*/
void titrationCalculator::on_actionNew_triggered()
......
......@@ -45,7 +45,7 @@ class titrationCalculator : public QWidget
Q_OBJECT
public:
titrationCalculator(QWidget * parent = nullptr);
explicit titrationCalculator(QWidget * parent = nullptr);
~titrationCalculator();
public slots:
......
......@@ -31,7 +31,7 @@ class DetailedQmlView : public QWidget
Q_OBJECT
public:
DetailedQmlView(QWidget *parent);
explicit DetailedQmlView(QWidget *parent);
~DetailedQmlView();
public slots:
......
......@@ -49,7 +49,7 @@ public:
Y
};
AxisData(AxisData::AXISTYPE);
explicit AxisData(AxisData::AXISTYPE);
/**
* @return the value of the selected dataset of element @p element
......@@ -89,7 +89,7 @@ class ElementDataViewer : public QDialog
Q_OBJECT
public:
ElementDataViewer(QWidget *parent = nullptr);
explicit ElementDataViewer(QWidget *parent = nullptr);
~ElementDataViewer();
......
......@@ -25,7 +25,7 @@
class ElementListEntry : public QListWidgetItem
{
public:
ElementListEntry(Element *element);
explicit ElementListEntry(Element *element);
~ElementListEntry();
int m_atomicNum;
......@@ -50,7 +50,7 @@ class ExportDialog : public QDialog
Q_OBJECT
public:
ExportDialog(QWidget *parent);
explicit ExportDialog(QWidget *parent);
~ExportDialog();
void populateElementList();
......
......@@ -44,7 +44,7 @@ public:
* @param elementProperty The elementProperty class
* @param parent The parent of this widget
*/
GradientWidgetImpl(QWidget *parent = nullptr);
explicit GradientWidgetImpl(QWidget *parent = nullptr);
virtual ~GradientWidgetImpl();
Q_SIGNALS:
......
......@@ -29,7 +29,7 @@ class IsotopeScene : public QGraphicsScene
Q_OBJECT
public:
IsotopeScene(QObject * parent = nullptr);
explicit IsotopeScene(QObject * parent = nullptr);
virtual ~IsotopeScene();
void updateContextHelp(IsotopeItem * item);
......
......@@ -24,8 +24,8 @@ class KalziumUnitCombobox : public QComboBox
{
public:
KalziumUnitCombobox(QWidget *parent = nullptr);
KalziumUnitCombobox(const QList< int > &unitList, QWidget *parent = nullptr);
explicit KalziumUnitCombobox(QWidget *parent = nullptr);
explicit KalziumUnitCombobox(const QList< int > &unitList, QWidget *parent = nullptr);
void setUnitList(const QList< int > &unitList);
int getCurrentUnitId() const;
......
......@@ -30,7 +30,7 @@ class OrbitsWidget : public QWidget
Q_OBJECT
public:
OrbitsWidget(QWidget *parent = nullptr);
explicit OrbitsWidget(QWidget *parent = nullptr);
void setElementNumber(int num);
......
......@@ -52,7 +52,7 @@ public:
* constructor uses setData to set the element number using the key 0. This
* is then used by PeriodicTable to figure out which element was clicked on.
*/
ElementItem(KalziumElementProperty *property, int elementNumber = 0);
explicit ElementItem(KalziumElementProperty *property, int elementNumber = 0);
/**
* Destructor.
......
......@@ -49,7 +49,7 @@ public:
* constructor uses setData to set the element number using the key 0. This
* is then used by PeriodicTable to figure out which element was clicked on.
*/
NumerationItem(int xPosition = 0);
explicit NumerationItem(int xPosition = 0);
/**
* Destructor.
......
......@@ -96,7 +96,7 @@ private:
class StateSwitcher : public QState
{
public:
StateSwitcher(QStateMachine *machine);
explicit StateSwitcher(QStateMachine *machine);
void addState(QState *state, QAbstractAnimation *animation, const int &id);
......
......@@ -36,7 +36,7 @@ class RSDialog : public QDialog
Q_OBJECT
public:
RSDialog(QWidget * parent);
explicit RSDialog(QWidget * parent);
Ui::RSWidget ui;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment