Commit 6aa132b6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use Q_EMIT

parent 6e54f8c7
......@@ -33,13 +33,13 @@ Clipboard::Clipboard(QObject* parent)
void Clipboard::setMode(QClipboard::Mode mode)
{
m_mode = mode;
emit modeChanged(m_mode);
Q_EMIT modeChanged(m_mode);
}
void Clipboard::clipboardChanged(QClipboard::Mode m)
{
if (m == m_mode) {
emit contentChanged();
Q_EMIT contentChanged();
}
}
......
......@@ -92,7 +92,7 @@ void ConsoleHtml::openClickedUrl(const QUrl& url)
QString exp=query.queryItemValue(QStringLiteral("func"));
if(id==QLatin1String("copy")) {
emit paste(exp);
Q_EMIT paste(exp);
} else foreach(InlineOptions* opt, m_options) {
if(opt->id() == id) {
opt->triggerOption(Analitza::Expression(exp, false));
......@@ -198,7 +198,7 @@ void ConsoleHtml::updateView()
page()->setHtml(code);
emit changed();
Q_EMIT changed();
connect(this, &QWebEngineView::loadFinished, this, [this](bool ok){
if (!ok) {
......@@ -246,5 +246,5 @@ void ConsoleHtml::removeVariable(const QString & name)
void ConsoleHtml::paste()
{
emit paste(selectedText().trimmed());
Q_EMIT paste(selectedText().trimmed());
}
......@@ -276,7 +276,7 @@ void FunctionEdit::edit()
void FunctionEdit::ok()
{
if(m_ok->isEnabled())
emit accept();
Q_EMIT accept();
}
void FunctionEdit::focusInEvent(QFocusEvent *)
......
......@@ -72,5 +72,5 @@ void ViewportWidget::setViewport(const QRectF& current)
void ViewportWidget::emitViewport ()
{
emit viewportChange(viewport());
Q_EMIT viewportChange(viewport());
}
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