Changeset 58850 in vbox
- Timestamp:
- Nov 25, 2015 1:03:46 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIDnDHandler.cpp
r58329 r58850 283 283 QTextStream *g_pStrmLogQt = NULL; /* Output stream for Qt debug logging. */ 284 284 285 # if QT_VERSION >= 0x050000 285 286 /* static */ 286 void UIDnDHandler::debugOutputQt(QtMsgType type, const char *pszMsg) 287 { 288 AssertPtr(pszMsg); 289 287 void UIDnDHandler::debugOutputQt(QtMsgType type, const QMessageLogContext &context, const QString &strMessage) 288 { 290 289 QString strMsg; 291 290 switch (type) … … 307 306 308 307 if (g_pStrmLogQt) 308 (*g_pStrmLogQt) << strMsg << " " << strMessage << endl; 309 } 310 # else /* QT_VERSION < 0x050000 */ 311 /* static */ 312 void UIDnDHandler::debugOutputQt(QtMsgType type, const char *pszMsg) 313 { 314 AssertPtr(pszMsg); 315 316 QString strMsg; 317 switch (type) 318 { 319 case QtWarningMsg: 320 strMsg += "[W]"; 321 break; 322 case QtCriticalMsg: 323 strMsg += "[C]"; 324 break; 325 case QtFatalMsg: 326 strMsg += "[F]"; 327 break; 328 case QtDebugMsg: 329 default: 330 strMsg += "[D]"; 331 break; 332 } 333 334 if (g_pStrmLogQt) 309 335 (*g_pStrmLogQt) << strMsg << " " << pszMsg << endl; 310 336 } 337 # endif /* QT_VERSION < 0x050000 */ 311 338 #endif /* DEBUG_DND_QT */ 312 339 … … 335 362 g_pStrmLogQt = new QTextStream(pFileDebugQt); 336 363 364 #if QT_VERSION >= 0x050000 365 qInstallMessageHandler(UIDnDHandler::debugOutputQt); 366 #else /* QT_VERSION < 0x050000 */ 337 367 qInstallMsgHandler(UIDnDHandler::debugOutputQt); 368 #endif /* QT_VERSION < 0x050000 */ 338 369 qDebug("========================================================================"); 339 370 }
Note:
See TracChangeset
for help on using the changeset viewer.