Changeset 54096 in vbox
- Timestamp:
- Feb 6, 2015 2:31:11 PM (10 years ago)
- Location:
- trunk/src/VBox/Debugger
- Files:
-
- 2 edited
-
VBoxDbgStatsQt4.cpp (modified) (2 diffs)
-
VBoxDbgStatsQt4.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/VBoxDbgStatsQt4.cpp
r48564 r54096 3032 3032 : VBoxDbgBaseWindow(a_pDbgGui, pParent), m_PatStr(pszPat), m_pPatCB(NULL), m_uRefreshRate(0), m_pTimer(NULL), m_pView(NULL) 3033 3033 { 3034 setWindowTitle("VBoxDbg - Statistics"); 3034 /* Assign window-title: */ 3035 if (parent()) 3036 { 3037 setWindowTitle(QString("%1 - Statistics").arg(parentWidget()->windowTitle())); 3038 parent()->installEventFilter(this); 3039 } 3040 else 3041 setWindowTitle("VBoxDbg - Statistics"); 3035 3042 3036 3043 /* … … 3144 3151 3145 3152 3153 bool VBoxDbgStats::eventFilter(QObject *pWatched, QEvent *pEvent) 3154 { 3155 /* Skip events which are not related to our parent: */ 3156 if (pWatched != parent()) 3157 return VBoxDbgBaseWindow::eventFilter(pWatched, pEvent); 3158 3159 /* Depending on event-type: */ 3160 switch (pEvent->type()) 3161 { 3162 case QEvent::WindowTitleChange: setWindowTitle(QString("%1 - Statistics").arg(parentWidget()->windowTitle())); break; 3163 default: break; 3164 } 3165 3166 /* Call to base-class: */ 3167 return VBoxDbgBaseWindow::eventFilter(pWatched, pEvent); 3168 } 3169 3170 3146 3171 void 3147 3172 VBoxDbgStats::apply(const QString &Str) -
trunk/src/VBox/Debugger/VBoxDbgStatsQt4.h
r33540 r54096 201 201 virtual void closeEvent(QCloseEvent *a_pCloseEvt); 202 202 203 /** 204 * Event filter for various purposes. 205 * 206 * @param pWatched The object event came to. 207 * @param pEvent The event being handled. 208 */ 209 virtual bool eventFilter(QObject *pWatched, QEvent *pEvent); 210 203 211 protected slots: 204 212 /** Apply the activated combobox pattern. */
Note:
See TracChangeset
for help on using the changeset viewer.

