VirtualBox

Changeset 75250 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Nov 5, 2018 3:15:18 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6699. Prepend the current time to each log message in the file manager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerLogPanel.cpp

    r75224 r75250  
    2525# include <QSpinBox>
    2626# include <QTextEdit>
     27# include <QTime>
    2728
    2829/* GUI includes: */
     
    6465    :QTextEdit(pParent)
    6566{
     67    setUndoRedoEnabled(false);
    6668}
    6769
     
    98100    if (!m_pLogTextEdit)
    99101        return;
    100     m_pLogTextEdit->append(strLog);
     102    m_pLogTextEdit->append(QString("%1: %2").arg(QTime::currentTime().toString("hh:mm:ss")).arg(strLog));
    101103}
    102104
     
    115117        mainLayout()->addWidget(m_pLogTextEdit);
    116118    }
    117 
    118119}
    119120
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette