Changeset 12884 in vbox for trunk/src/VBox/Debugger/VBoxDbgGui.cpp
- Timestamp:
- Oct 1, 2008 11:48:04 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 37282
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/VBoxDbgGui.cpp
r12878 r12884 43 43 VBoxDbgGui::VBoxDbgGui() : 44 44 m_pDbgStats(NULL), m_pDbgConsole(NULL), m_pSession(NULL), m_pConsole(NULL), 45 m_pMachineDebugger(NULL), m_pMachine(NULL), m_pVM(NULL), m_x(0), m_y(0), m_cx(0), m_cy(0), 46 m_xDesktop(0), m_yDesktop(0), m_cxDesktop(0), m_cyDesktop(0) 45 m_pMachineDebugger(NULL), m_pMachine(NULL), m_pVM(NULL), 46 m_pParent(NULL), m_pMenu(NULL), 47 m_x(0), m_y(0), m_cx(0), m_cy(0), m_xDesktop(0), m_yDesktop(0), m_cxDesktop(0), m_cyDesktop(0) 47 48 { 48 49 … … 107 108 VBoxDbgGui::~VBoxDbgGui() 108 109 { 109 110 #ifndef VBOXDBG_USE_QT4111 110 if (m_pDbgStats) 112 111 { … … 114 113 m_pDbgStats = NULL; 115 114 } 116 #endif117 115 118 116 if (m_pDbgConsole) … … 149 147 } 150 148 149 void 150 VBoxDbgGui::setParent(QWidget *pParent) 151 { 152 m_pParent = pParent; 153 } 154 155 156 void 157 #ifdef VBOXDBG_USE_QT4 158 VBoxDbgGui::setMenu(QMenu *pMenu) 159 #else 160 VBoxDbgGui::setMenu(QPopupMenu *pMenu) 161 #endif 162 { 163 m_pMenu = pMenu; 164 } 165 151 166 152 167 int … … 155 170 if (!m_pDbgStats) 156 171 { 157 m_pDbgStats = new VBoxDbgStats(m_pVM, "*" );172 m_pDbgStats = new VBoxDbgStats(m_pVM, "*", 0, m_pParent); 158 173 connect(m_pDbgStats, SIGNAL(destroyed(QObject *)), this, SLOT(notifyChildDestroyed(QObject *))); 159 174 repositionStatistics(); 160 175 } 176 161 177 m_pDbgStats->show(); 178 #ifdef VBOXDBG_USE_QT4 /** @todo this isn't working right. */ 179 m_pDbgStats->setWindowState(m_pDbgStats->windowState() & ~Qt::WindowMinimized); 180 //m_pDbgStats->activateWindow(); 181 //m_pDbgStats->setFocus(); 182 #endif 183 162 184 return VINF_SUCCESS; 163 185 } … … 183 205 if (!m_pDbgConsole) 184 206 { 185 m_pDbgConsole = new VBoxDbgConsole(m_pVM );207 m_pDbgConsole = new VBoxDbgConsole(m_pVM, m_pParent); 186 208 connect(m_pDbgConsole, SIGNAL(destroyed(QObject *)), this, SLOT(notifyChildDestroyed(QObject *))); 187 209 repositionConsole(); 188 210 } 211 189 212 m_pDbgConsole->show(); 213 #ifdef VBOXDBG_USE_QT4 /** @todo this ain't working right. */ 214 m_pDbgConsole->setWindowState(m_pDbgConsole->windowState() & ~Qt::WindowMinimized); 215 //m_pDbgConsole->activateWindow(); 216 //m_pDbgConsole->setFocus(); 217 #endif 218 190 219 return VINF_SUCCESS; 191 220 }
Note:
See TracChangeset
for help on using the changeset viewer.