From 971476beef7d0a0e925ee75297edfa97da4acddc Mon Sep 17 00:00:00 2001 From: Yuri Chornoivan Date: Sun, 14 Oct 2018 20:28:44 +0300 Subject: [PATCH] Fix minor EBN issues and typos --- floatingtoolbar.cpp | 2 +- rdp/rdpview.cpp | 4 ++-- rdp/rdpview.h | 2 +- tabbedviewwidget.cpp | 2 +- vnc/vncclientthread.cpp | 2 +- vnc/vncsshtunnelthread.h | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/floatingtoolbar.cpp b/floatingtoolbar.cpp index 39a927f..92418eb 100644 --- a/floatingtoolbar.cpp +++ b/floatingtoolbar.cpp @@ -41,7 +41,7 @@ static const int autoHideTimeout = 500; static const int initialAutoHideTimeout = 2000; /** - * Denotes the verious states of the animation. + * Denotes the various states of the animation. */ enum AnimState { Hiding, diff --git a/rdp/rdpview.cpp b/rdp/rdpview.cpp index bc96021..ab4e83e 100644 --- a/rdp/rdpview.cpp +++ b/rdp/rdpview.cpp @@ -359,7 +359,7 @@ bool RdpView::start() connect(m_process, SIGNAL(error(QProcess::ProcessError)), SLOT(processError(QProcess::ProcessError))); connect(m_process, SIGNAL(readyReadStandardError()), SLOT(receivedStandardError())); connect(m_process, SIGNAL(readyReadStandardOutput()), SLOT(receivedStandardOutput())); - connect(m_process, SIGNAL(finished(int, QProcess::ExitStatus)), SLOT(connectionClosed())); + connect(m_process, SIGNAL(finished(int,QProcess::ExitStatus)), SLOT(connectionClosed())); connect(m_process, SIGNAL(started()), SLOT(connectionOpened())); m_process->start(QStringLiteral("xfreerdp"), arguments); @@ -514,7 +514,7 @@ QString RdpView::keymapToXfreerdp(const QString &keyboadLayout) } // list of xfreerdp --kbd-list -// this is a mapping for rdesktop comptibilty (old settings will still work) +// this is a mapping for rdesktop compatibility (old settings will still work) // needs to be completed (when not in message freeze; needs new localization) QHash RdpView::initKeymapToXfreerdp() { diff --git a/rdp/rdpview.h b/rdp/rdpview.h index 1e4ec9c..48ccf6c 100644 --- a/rdp/rdpview.h +++ b/rdp/rdpview.h @@ -80,7 +80,7 @@ private: void connectionError(const QString &text, const QString &caption); // called if xfreerdp quits with error - void connectionClosed(CloseType closeType); // Signals the connection closed if not quiting or it is forced + void connectionClosed(CloseType closeType); // Signals the connection closed if not quitting or it is forced QString keymapToXfreerdp(const QString &keyboadLayout); QHash initKeymapToXfreerdp(); diff --git a/tabbedviewwidget.cpp b/tabbedviewwidget.cpp index 2dd3e0f..44b992b 100644 --- a/tabbedviewwidget.cpp +++ b/tabbedviewwidget.cpp @@ -183,7 +183,7 @@ void TabbedViewWidget::setTabText(int index, const QString &label) m_model->emitDataChanged(index); } -//This functinality is taken from KTabWidget for comatibility. +//This functionality is taken from KTabWidget for compatibility. //KTabWidget has been moved to KdeLibs4Support and QTabWidget::tabBarDoubleClicked does not //work on empty space after tabs, bool TabbedViewWidget::isEmptyTabbarSpace(const QPoint &point) const diff --git a/vnc/vncclientthread.cpp b/vnc/vncclientthread.cpp index 39c0342..98ed6b3 100644 --- a/vnc/vncclientthread.cpp +++ b/vnc/vncclientthread.cpp @@ -252,7 +252,7 @@ rfbCredential *VncClientThread::credentialHandler(int credentialType) cred->userCredential.password = strdup(password().toUtf8().constData()); break; default: - qCritical(KRDC) << "credential request failed, unspported credentialType:" << credentialType; + qCritical(KRDC) << "credential request failed, unsupported credentialType:" << credentialType; outputErrorMessage(i18n("VNC authentication type is not supported.")); break; } diff --git a/vnc/vncsshtunnelthread.h b/vnc/vncsshtunnelthread.h index 67fbc1c..a3df682 100644 --- a/vnc/vncsshtunnelthread.h +++ b/vnc/vncsshtunnelthread.h @@ -23,8 +23,8 @@ ** ****************************************************************************/ -#ifndef VCNCSSHTUNNELTHREAD_H -#define VCNCSSHTUNNELTHREAD_H +#ifndef VNCSSHTUNNELTHREAD_H +#define VNCSSHTUNNELTHREAD_H #include -- GitLab