Changeset 46119 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 16, 2013 10:07:23 AM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp
r46072 r46119 7 7 8 8 /* 9 * Copyright (C) 2010-201 2Oracle Corporation9 * Copyright (C) 2010-2013 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 292 292 } 293 293 294 void UIFrameBuffer::resizeEvent(UIResizeEvent *pEvent) 295 { 296 m_width = pEvent->width(); 297 m_height = pEvent->height(); 298 } 299 294 300 #ifdef VBOX_WITH_VIDEOHWACCEL 295 301 void UIFrameBuffer::doProcessVHWACommand(QEvent *pEvent) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h
r46064 r46119 6 6 7 7 /* 8 * Copyright (C) 2010-201 2Oracle Corporation8 * Copyright (C) 2010-2013 Oracle Corporation 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 212 212 virtual ulong bytesPerLine() = 0; 213 213 214 /** 215 * Called on the GUI thread (from VBoxConsoleView) when some part of the 216 * VM display viewport needs to be repainted on the host screen. 217 */ 214 /* API: Event-delegate stuff: */ 215 virtual void moveEvent(QMoveEvent* /*pEvent*/) {} 216 virtual void resizeEvent(UIResizeEvent *pEvent); 218 217 virtual void paintEvent(QPaintEvent *pEvent) = 0; 219 220 /**221 * Called on the GUI thread (from VBoxConsoleView) after it gets a222 * UIResizeEvent posted from the RequestResize() method implementation.223 */224 virtual void resizeEvent(UIResizeEvent *pEvent)225 {226 m_width = pEvent->width();227 m_height = pEvent->height();228 }229 230 /**231 * Called on the GUI thread (from VBoxConsoleView) when the VM console232 * window is moved.233 */234 virtual void moveEvent(QMoveEvent * /* pEvent */) {}235 218 236 219 #ifdef VBOX_WITH_VIDEOHWACCEL
Note:
See TracChangeset
for help on using the changeset viewer.