Adapted the defines to the MAC version

preferencesAboutTextFull
shibakaneki 14 years ago
parent 6baa2067d2
commit 086c49544a
  1. 4
      src/core/UBDisplayManager.cpp
  2. 2
      src/desktop/UBDesktopAnnotationController.cpp
  3. 2
      src/gui/UBDockPalette.cpp
  4. 2
      src/gui/UBFloatingPalette.cpp

@ -115,7 +115,7 @@ void UBDisplayManager::setAsControl(QWidget* pControlWidget )
mControlWidget->setGeometry(mDesktop->screenGeometry(mControlScreenIndex));
mControlWidget->showFullScreen();
// !!!! Should be included into Windows after QT recompilation
#ifndef Q_WS_WIN
#ifdef Q_WS_MAC
mControlWidget->setAttribute(Qt::WA_MacNoShadow);
#endif
}
@ -131,7 +131,7 @@ void UBDisplayManager::setAsDisplay(QWidget* pDisplayWidget)
mDisplayWidget->setGeometry(mDesktop->screenGeometry(mDisplayScreenIndex));
mDisplayWidget->showFullScreen();
// !!!! Should be included into Windows after QT recompilation
#ifndef Q_WS_WIN
#ifdef Q_WS_MAC
mDisplayWidget->setAttribute(Qt::WA_MacNoShadow);
#endif
}

@ -61,7 +61,7 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent)
mTransparentDrawingView->setAttribute(Qt::WA_TranslucentBackground, true);
// !!!! Should be included into Windows after QT recompilation
#ifndef Q_WS_WIN
#ifdef Q_WS_MAC
mTransparentDrawingView->setAttribute(Qt::WA_MacNoShadow, true);
#endif
mTransparentDrawingView->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | Qt::Window);

@ -35,7 +35,7 @@ UBDockPalette::UBDockPalette(QWidget *parent, const char *name)
setAttribute(Qt::WA_TranslucentBackground);
// !!!! Should be included into Windows after QT recompilation
#ifndef Q_WS_WIN
#ifdef Q_WS_MAC
setAttribute(Qt::WA_MacNoShadow);
#endif

@ -30,6 +30,8 @@ UBFloatingPalette::UBFloatingPalette(Qt::Corner position, QWidget *parent)
#ifndef Q_WS_WIN
setAttribute(Qt::WA_TranslucentBackground);
setAttribute(Qt::WA_MacAlwaysShowToolWindow);
#endif
#ifdef Q_WS_MAC
setAttribute(Qt::WA_MacNonActivatingToolWindow);
setAttribute(Qt::WA_MacNoShadow);
#endif

Loading…
Cancel
Save