Commit 2b2ed3fa authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use Q_SLOTS

parent 026f10c6
......@@ -54,16 +54,16 @@ private:
#ifdef HAVE_FACILE
EQChemDialog * m_equationBalancer; // The equation balancer
#endif
protected slots:
protected Q_SLOTS:
/**
* invoke the help of the correct chapter
*/
virtual void slotHelp();
private slots:
private Q_SLOTS:
// occurs when an tree item is selected, opens the corresponding calculator
void slotItemSelection(QTreeWidgetItem *item);
public slots:
public Q_SLOTS:
};
#endif // CALCULATOR_H
......@@ -68,7 +68,7 @@ public:
explicit concCalculator(QWidget * parent = nullptr);
~concCalculator();
public slots:
public Q_SLOTS:
// Sub-routines involved in calculations of the unit
/// Calculates the amount of solute
......
......@@ -61,7 +61,7 @@ public:
explicit gasCalculator(QWidget * parent = nullptr);
~gasCalculator();
public slots:
public Q_SLOTS:
/// Calculates the Pressure and updates the UI
void calculatePressure();
......
......@@ -51,7 +51,7 @@ public:
explicit nuclearCalculator(QWidget * parent = nullptr);
~nuclearCalculator();
public slots:
public Q_SLOTS:
/// Calculates the initial amount and updates the UI
void calculateInitAmount();
......
......@@ -35,7 +35,7 @@ public:
explicit titrationCalculator(QWidget * parent = nullptr);
~titrationCalculator();
public slots:
public Q_SLOTS:
void on_pushButton_clicked();
void on_xmin_valueChanged(double val);
void on_xmax_valueChanged(double val);
......
......@@ -30,7 +30,7 @@ public:
*/
explicit DetailedGraphicalOverview(QWidget *parent);
public slots:
public Q_SLOTS:
/**
* Set @p el as the element to be drawn
*/
......
......@@ -115,7 +115,7 @@ private:
/// overloaded function to add link as the displayed String
QString createWikiLink(QString link);
private slots:
private Q_SLOTS:
void slotLinkClicked(const QUrl &url);
void showNextElement();
......
......@@ -117,18 +117,18 @@ private:
void setLimits();
protected slots:
protected Q_SLOTS:
/**
* invoke the help of the correct chapter
*/
virtual void slotHelp();
private slots:
private Q_SLOTS:
void rangeChanged();
void fullRange();
void swapXYAxis();
public slots:
public Q_SLOTS:
void slotZoomIn();
void slotZoomOut();
......
......@@ -54,7 +54,7 @@ private:
Ui::exportDialogForm ui;
QTextStream *m_outputStream;
public slots:
public Q_SLOTS:
void slotOkClicked();
/**
* Open help page
......
......@@ -41,14 +41,14 @@ Q_SIGNALS:
*/
void gradientValueChanged(double);
public slots:
public Q_SLOTS:
/**
* Sets the comboboxes to the current values.
* the current values come form the elementProperty class.
*/
void slotGradientChanged();
private slots:
private Q_SLOTS:
void play(void);
void stop(void);
void tick(void);
......
......@@ -37,7 +37,7 @@ private:
void mouseReleaseEvent(QMouseEvent *event) override;
void mouseMoveEvent(QMouseEvent *event) override;
private slots:
private Q_SLOTS:
void setZoomLevel(double zoomLevel);
void setVisibleSceneRect(const QPolygonF &sceneRect);
};
......
......@@ -29,7 +29,7 @@ public:
private:
Ui::isotopeWidget ui;
private slots:
private Q_SLOTS:
void updateDockWidget(IsotopeItem *);
void zoom(int);
void slotZoomLevelChanged(double);
......
......@@ -134,7 +134,7 @@ private:
Q_SIGNALS:
void numerationChanged(int);
private slots:
private Q_SLOTS:
/**
* opens the information dialog for the element @p number
*/
......
......@@ -118,7 +118,7 @@ Q_SIGNALS:
*/
void propertyChanged();
public slots:
public Q_SLOTS:
/**
* gets the value from the gradientwidget. The value which is used to
* determine if an element is active or not.
......
......@@ -35,7 +35,7 @@ Q_SIGNALS:
void elementMatched(int element);
void resetElementMatch();
public slots:
public Q_SLOTS:
void updateContent();
void setDockArea(Qt::DockWidgetArea newDockArea);
......
......@@ -35,13 +35,13 @@ public:
void hideExtra();
~MolcalcWidget() override;
protected slots:
protected Q_SLOTS:
void slotCalculate();
protected:
void keyPressEvent(QKeyEvent *e) override;
private slots:
private Q_SLOTS:
void clear();
void addAlias();
......
......@@ -33,7 +33,7 @@ private:
QList<int> numOfElectrons;
protected slots:
protected Q_SLOTS:
virtual void paintEvent(QPaintEvent*) override;
};
......
......@@ -67,7 +67,7 @@ Q_SIGNALS:
*/
void numerationChange(int num);
public slots:
public Q_SLOTS:
/**
* Change the pse table to the given id.
* @param newtable id of the pse table.
......
......@@ -36,10 +36,10 @@ public:
QString sphrase(int number);
public slots:
public Q_SLOTS:
void filter();
private slots:
private Q_SLOTS:
void slotHelp();
private:
......
......@@ -69,7 +69,7 @@ public:
*/
bool matches(int el) const;
public slots:
public Q_SLOTS:
/**
* Search the @p text by looking at the element using the
* specified @p kind
......
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