Hide eraser/marker preview circles when mouse enters palettes, in board mode

preferencesAboutTextFull
Craig Watson 8 years ago
parent 17461abd2b
commit 93b03b2ec1
  1. 2
      src/desktop/UBDesktopAnnotationController.cpp
  2. 1
      src/gui/UBDockPalette.cpp
  3. 3
      src/gui/UBDockPalette.h

@ -126,6 +126,8 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent, UB
connect(UBApplication::mainWindow->actionSelector, SIGNAL(triggered()), this, SLOT(onToolClicked())); connect(UBApplication::mainWindow->actionSelector, SIGNAL(triggered()), this, SLOT(onToolClicked()));
connect(mDesktopPalette, SIGNAL(maximized()), this, SLOT(onDesktopPaletteMaximized())); connect(mDesktopPalette, SIGNAL(maximized()), this, SLOT(onDesktopPaletteMaximized()));
connect(mDesktopPalette, SIGNAL(minimizeStart(eMinimizedLocation)), this, SLOT(onDesktopPaletteMinimize())); connect(mDesktopPalette, SIGNAL(minimizeStart(eMinimizedLocation)), this, SLOT(onDesktopPaletteMinimize()));
connect(mDesktopPalette, SIGNAL(mouseEntered()), mTransparentDrawingScene, SLOT(hideTool()));
connect(mRightPalette, SIGNAL(mouseEntered()), mTransparentDrawingScene, SLOT(hideTool()));
connect(mTransparentDrawingView, SIGNAL(resized(QResizeEvent*)), this, SLOT(onTransparentWidgetResized())); connect(mTransparentDrawingView, SIGNAL(resized(QResizeEvent*)), this, SLOT(onTransparentWidgetResized()));

@ -197,6 +197,7 @@ void UBDockPalette::enterEvent(QEvent *event)
Q_UNUSED(event); Q_UNUSED(event);
// We want to set the cursor as an arrow everytime it enters the palette // We want to set the cursor as an arrow everytime it enters the palette
setCursor(Qt::ArrowCursor); setCursor(Qt::ArrowCursor);
emit mouseEntered();
} }
/** /**

@ -150,6 +150,9 @@ public slots:
void onAllDownloadsFinished(); void onAllDownloadsFinished();
virtual void onDocumentSet(UBDocumentProxy* documentProxy); virtual void onDocumentSet(UBDocumentProxy* documentProxy);
signals:
void mouseEntered();
protected: protected:
virtual int border(); virtual int border();
virtual int radius(); virtual int radius();

Loading…
Cancel
Save