mirror of
https://github.com/KDE/krfb
synced 2026-07-01 07:31:16 -07:00
* fix crash in PersonalInviteDialog
* fix all krazy issues (exclude not used folder from krazy checks) svn path=/trunk/KDE/kdenetwork/krfb/; revision=691982
This commit is contained in:
@@ -8,18 +8,11 @@
|
||||
of the License.
|
||||
*/
|
||||
|
||||
#include "events.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QX11Info>
|
||||
|
||||
#include <QDesktopWidget>
|
||||
#include <QClipboard>
|
||||
|
||||
#include <KNotification>
|
||||
|
||||
#include "events.h"
|
||||
#include "connectioncontroller.h"
|
||||
|
||||
#include <X11/Xutil.h>
|
||||
#include <X11/keysym.h>
|
||||
#include <X11/extensions/XTest.h>
|
||||
|
||||
6
events.h
6
events.h
@@ -11,10 +11,16 @@
|
||||
#ifndef EVENTS_H
|
||||
#define EVENTS_H
|
||||
|
||||
#include <QDesktopWidget>
|
||||
#include <QEvent>
|
||||
#include <QString>
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
class ConnectionController;
|
||||
|
||||
class QCursor;
|
||||
|
||||
class VNCEvent {
|
||||
public:
|
||||
virtual void exec() = 0;
|
||||
|
||||
@@ -138,7 +138,7 @@ void ManageInvitationsDialog::inviteByMail()
|
||||
}
|
||||
|
||||
Invitation inv = InvitationManager::self()->addInvitation();
|
||||
KToolInvocation::invokeMailer(QString::null, QString::null, QString::null,
|
||||
KToolInvocation::invokeMailer(QString(), QString(), QString(),
|
||||
i18n("Desktop Sharing (VNC) invitation"),
|
||||
ki18n("You have been invited to a VNC session. If you have the KDE Remote "
|
||||
"Desktop Connection installed, just click on the link below.\n\n"
|
||||
|
||||
@@ -48,8 +48,8 @@ PersonalInviteDialog::PersonalInviteDialog( QWidget *parent )
|
||||
|
||||
foreach (QNetworkInterface nif, ifl) {
|
||||
if (nif.flags() & QNetworkInterface::IsLoopBack) continue;
|
||||
if (nif.flags() & QNetworkInterface::IsRunning) {
|
||||
hostLabel->setText( QString( "%1:%2" ).arg(nif.addressEntries()[0].ip().toString()).arg(port));
|
||||
if (nif.flags() & QNetworkInterface::IsRunning && !nif.addressEntries().isEmpty()) {
|
||||
hostLabel->setText( QString( "%1:%2" ).arg(nif.addressEntries().first().ip().toString()).arg(port));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ class QtFrameBuffer : public FrameBuffer
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
QtFrameBuffer(WId id, QObject *parent = 0);
|
||||
explicit QtFrameBuffer(WId id, QObject *parent = 0);
|
||||
|
||||
~QtFrameBuffer();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user