Skip to content

Commit

Permalink
Merge pull request #29 from ekoczwara/master
Browse files Browse the repository at this point in the history
Replace keywords: signals, slots and emit with: Q_SIGNALS, Q_SLOTS an…
  • Loading branch information
paulovap authored Nov 11, 2018
2 parents b69b17b + 83af446 commit d04afaa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/pdfium/viewer-qml/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ class PdfImageProvider : public QObject, public QQuickImageProvider

Q_INVOKABLE void setFilename(QString filename) {
m_pdf->loadFile(filename);
emit readyChanged(m_pdf->isValid());
Q_EMIT readyChanged(m_pdf->isValid());
}

Q_INVOKABLE QString pageText(int index) {
return m_pdf && m_pdf->isValid() ? m_pdf->page(index).text() : "";
}
signals:
Q_SIGNALS:
void readyChanged(int);
};

Expand Down
2 changes: 1 addition & 1 deletion src/pdfium/qpdfium.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Q_PDFIUM_EXPORT QPdfium
Status status() const;
QPdfiumPage page(int i);

public slots:
public Q_SLOTS:
Status loadFile(QString filename, QString password = QString());

private:
Expand Down
2 changes: 1 addition & 1 deletion tests/auto/cpp/tst_cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class CppTest: public QObject
public:
CppTest() {
}
private slots:
private Q_SLOTS:
void initTestCase();
void cleanupTestCase();
void init();
Expand Down

0 comments on commit d04afaa

Please sign in to comment.