Changeset 65549 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jan 31, 2017 4:11:24 PM (8 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/widgets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp
r65548 r65549 401 401 *********************************************************************************************************************************/ 402 402 403 /* static */404 Qt::WindowFlags UIMiniToolBar::defaultWindowFlags(GeometryType geometryType)405 {406 /* Not everywhere: */407 Q_UNUSED(geometryType);408 409 #ifdef VBOX_WS_X11410 /* Depending on current WM: */411 switch (vboxGlobal().typeOfWindowManager())412 {413 // WORKAROUND:414 // Frameless top-level window for Unity(Compiz) full-screen mode,415 // otherwise we have Unity panel and menu-bar visible in full-screen mode.416 // Frameless top-level tool-window for Unity(Compiz) seamless mode,417 // otherwise we have Unity panel and menu-bar hidden in seamless mode.418 case X11WMType_Compiz: return geometryType == GeometryType_Full ?419 Qt::Window | Qt::FramelessWindowHint :420 Qt::Tool | Qt::FramelessWindowHint;421 default: break;422 }423 #endif /* VBOX_WS_X11 */424 425 /* Frameless tool window by default: */426 return Qt::Tool | Qt::FramelessWindowHint;427 }428 429 403 UIMiniToolBar::UIMiniToolBar(QWidget *pParent, 430 404 GeometryType geometryType, 431 405 Qt::Alignment alignment, 432 406 bool fAutoHide /* = true */) 433 : QWidget(pParent, defaultWindowFlags(geometryType))407 : QWidget(pParent, Qt::Tool | Qt::FramelessWindowHint) 434 408 /* Variables: General stuff: */ 435 409 , m_pParent(pParent) -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.h
r65547 r65549 66 66 67 67 public: 68 69 /** Proposes default set of window flags for particular platform. */70 static Qt::WindowFlags defaultWindowFlags(GeometryType geometryType);71 68 72 69 /** Constructor, passes @a pParent to the QWidget constructor.
Note:
See TracChangeset
for help on using the changeset viewer.