VirtualBox

Changeset 57484 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 20, 2015 5:24:26 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: 7961: Moving the cursor position in logging window to the end by default.

File:
1 edited

Legend:

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

    r54055 r57484  
    479479                QTextEdit *pLogViewer = createLogPage(QFileInfo(strFileName).fileName());
    480480                pLogViewer->setPlainText(strText);
     481                /* Move the cursor position to end: */
     482                QTextCursor cursor = pLogViewer->textCursor();
     483                cursor.movePosition(QTextCursor::End, QTextCursor::MoveAnchor);
     484                pLogViewer->setTextCursor(cursor);
    481485                /* Add the actual file name and the QTextEdit containing the content to a list: */
    482486                m_book << qMakePair(strFileName, pLogViewer);
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