From a591d30cc6815bb746000c5cf61a5732d161926d Mon Sep 17 00:00:00 2001 From: shibakaneki Date: Tue, 28 Aug 2012 14:45:55 +0200 Subject: [PATCH] Corrected a small issue --- src/desktop/UBDesktopAnnotationController.cpp | 1 + src/desktop/UBDesktopPalette.cpp | 2 ++ src/desktop/UBDesktopPalette.h | 1 + 3 files changed, 4 insertions(+) diff --git a/src/desktop/UBDesktopAnnotationController.cpp b/src/desktop/UBDesktopAnnotationController.cpp index 28987757..165e8fcb 100644 --- a/src/desktop/UBDesktopAnnotationController.cpp +++ b/src/desktop/UBDesktopAnnotationController.cpp @@ -109,6 +109,7 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent) connect(mDesktopPalette, SIGNAL(windowClick()), this, SLOT(onToolClicked())); connect(mDesktopPalette, SIGNAL(screenClick()), this, SLOT(screenCapture())); connect(mDesktopPalette, SIGNAL(screenClick()), this, SLOT(onToolClicked())); + connect(mDesktopPalette, SIGNAL(pointerClick()), this, SLOT(onToolClicked())); connect(mDesktopPalette, SIGNAL(maximized()), this, SLOT(onDesktopPaletteMaximized())); connect(mDesktopPalette, SIGNAL(minimizeStart(eMinimizedLocation)), this, SLOT(onDesktopPaletteMinimize())); diff --git a/src/desktop/UBDesktopPalette.cpp b/src/desktop/UBDesktopPalette.cpp index 2b3902b2..558f70e1 100644 --- a/src/desktop/UBDesktopPalette.cpp +++ b/src/desktop/UBDesktopPalette.cpp @@ -39,6 +39,8 @@ UBDesktopPalette::UBDesktopPalette(QWidget *parent) actions << UBApplication::mainWindow->actionSelector; actions << UBApplication::mainWindow->actionPointer; + connect(UBApplication::mainWindow->actionPointer, SIGNAL(triggered()), this, SIGNAL(pointerClick())); + if (UBPlatformUtils::hasVirtualKeyboard()) actions << UBApplication::mainWindow->actionVirtualKeyboard; diff --git a/src/desktop/UBDesktopPalette.h b/src/desktop/UBDesktopPalette.h index cd22d43e..359c43f1 100644 --- a/src/desktop/UBDesktopPalette.h +++ b/src/desktop/UBDesktopPalette.h @@ -33,6 +33,7 @@ class UBDesktopPalette : public UBActionPalette void customClick(); void windowClick(); void screenClick(); + void pointerClick(); #ifdef Q_WS_X11 void refreshMask();