Changeset 57067 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 24, 2015 10:57:41 AM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.cpp
r56917 r57067 1857 1857 void UIActionPoolRuntime::setMultiScreenLayout(UIMultiScreenLayout *pMultiScreenLayout) 1858 1858 { 1859 /* Disconnect old stuff: */ 1860 if (m_pMultiScreenLayout) 1861 { 1862 disconnect(this, SIGNAL(sigNotifyAboutTriggeringViewScreenRemap(int, int)), 1863 m_pMultiScreenLayout, SLOT(sltHandleScreenLayoutChange(int, int))); 1864 disconnect(m_pMultiScreenLayout, SIGNAL(sigScreenLayoutUpdate()), 1865 this, SLOT(sltHandleScreenLayoutUpdate())); 1866 } 1859 /* Do not allow NULL pointers: */ 1860 AssertPtrReturnVoid(pMultiScreenLayout); 1867 1861 1868 1862 /* Assign new multi-screen layout: */ … … 1870 1864 1871 1865 /* Connect new stuff: */ 1872 if (m_pMultiScreenLayout) 1873 { 1874 connect(this, SIGNAL(sigNotifyAboutTriggeringViewScreenRemap(int, int)), 1875 m_pMultiScreenLayout, SLOT(sltHandleScreenLayoutChange(int, int))); 1876 connect(m_pMultiScreenLayout, SIGNAL(sigScreenLayoutUpdate()), 1877 this, SLOT(sltHandleScreenLayoutUpdate())); 1878 } 1866 connect(this, SIGNAL(sigNotifyAboutTriggeringViewScreenRemap(int, int)), 1867 m_pMultiScreenLayout, SLOT(sltHandleScreenLayoutChange(int, int))); 1868 connect(m_pMultiScreenLayout, SIGNAL(sigScreenLayoutUpdate()), 1869 this, SLOT(sltHandleScreenLayoutUpdate())); 1870 1871 /* Invalidate View menu: */ 1872 m_invalidations << UIActionIndexRT_M_View; 1873 } 1874 1875 void UIActionPoolRuntime::unsetMultiScreenLayout(UIMultiScreenLayout *pMultiScreenLayout) 1876 { 1877 /* Do not allow NULL pointers: */ 1878 AssertPtrReturnVoid(pMultiScreenLayout); 1879 1880 /* Disconnect old stuff: */ 1881 disconnect(this, SIGNAL(sigNotifyAboutTriggeringViewScreenRemap(int, int)), 1882 pMultiScreenLayout, SLOT(sltHandleScreenLayoutChange(int, int))); 1883 disconnect(pMultiScreenLayout, SIGNAL(sigScreenLayoutUpdate()), 1884 this, SLOT(sltHandleScreenLayoutUpdate())); 1885 1886 /* Unset old multi-screen layout: */ 1887 if (m_pMultiScreenLayout == pMultiScreenLayout) 1888 m_pMultiScreenLayout = 0; 1879 1889 1880 1890 /* Invalidate View menu: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.h
r56098 r57067 154 154 * @note For menus which uses it to build contents. */ 155 155 void setMultiScreenLayout(UIMultiScreenLayout *pMultiScreenLayout); 156 /** Undefines UI multi-screen layout object reference. 157 * @note For menus which uses it to build contents. */ 158 void unsetMultiScreenLayout(UIMultiScreenLayout *pMultiScreenLayout); 156 159 /** Returns UI multi-screen layout object reference. */ 157 160 UIMultiScreenLayout* multiScreenLayout() const { return m_pMultiScreenLayout; } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r56126 r57067 61 61 { 62 62 /* Delete multiscreen layout: */ 63 actionPool()->toRuntime()-> setMultiScreenLayout(0);63 actionPool()->toRuntime()->unsetMultiScreenLayout(m_pScreenLayout); 64 64 delete m_pScreenLayout; 65 65 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp
r56126 r57067 59 59 { 60 60 /* Delete multiscreen layout: */ 61 actionPool()->toRuntime()-> setMultiScreenLayout(0);61 actionPool()->toRuntime()->unsetMultiScreenLayout(m_pScreenLayout); 62 62 delete m_pScreenLayout; 63 63 }
Note:
See TracChangeset
for help on using the changeset viewer.