VirtualBox

Changeset 32181 in vbox for trunk/src/VBox/Debugger


Ignore:
Timestamp:
Sep 1, 2010 2:50:21 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
65465
Message:

VBoxDbg: Don't use spaces as thousandseparators, it's impossible to separate the columns then. Adjust columns menu item + shortcut. Reset shortcut

Location:
trunk/src/VBox/Debugger
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Debugger/VBoxDbgStatsQt4.cpp

    r31530 r32181  
    597597        psz--;
    598598        if (!(++cDigits % 3))
    599             *psz-- = ' ';
     599            *psz-- = ',';
    600600    }
    601601    return psz;
     
    624624        psz--;
    625625        if (!(++cDigits % 3))
    626             *psz-- = ' ';
     626            *psz-- = ',';
    627627    }
    628628    if (fNegative)
     
    26742674    m_pToLogAct    = new QAction("To &Log", this);
    26752675    m_pToRelLogAct = new QAction("T&o Release Log", this);
     2676    m_pAdjColumns  = new QAction("&Adjust Columns", this);
    26762677
    26772678    m_pCopyAct->setShortcut(QKeySequence::Copy);
     
    26792680    m_pCollapseAct->setShortcut(QKeySequence("Ctrl+D"));
    26802681    m_pRefreshAct->setShortcut(QKeySequence("Ctrl+R"));
     2682    m_pResetAct->setShortcut(QKeySequence("Alt+R"));
    26812683    m_pToLogAct->setShortcut(QKeySequence("Ctrl+Z"));
    26822684    m_pToRelLogAct->setShortcut(QKeySequence("Alt+Z"));
     2685    m_pAdjColumns->setShortcut(QKeySequence("Ctrl+A"));
    26832686
    26842687    addAction(m_pCopyAct);
     
    26862689    addAction(m_pCollapseAct);
    26872690    addAction(m_pRefreshAct);
     2691    addAction(m_pResetAct);
    26882692    addAction(m_pToLogAct);
    26892693    addAction(m_pToRelLogAct);
     2694    addAction(m_pAdjColumns);
    26902695
    26912696    connect(m_pExpandAct,   SIGNAL(triggered(bool)), this, SLOT(actExpand()));
     
    26962701    connect(m_pToLogAct,    SIGNAL(triggered(bool)), this, SLOT(actToLog()));
    26972702    connect(m_pToRelLogAct, SIGNAL(triggered(bool)), this, SLOT(actToRelLog()));
     2703    connect(m_pAdjColumns,  SIGNAL(triggered(bool)), this, SLOT(actAdjColumns()));
    26982704
    26992705
     
    27302736    m_pViewMenu->addAction(m_pCollapseAct);
    27312737    m_pViewMenu->addSeparator();
     2738    m_pViewMenu->addAction(m_pAdjColumns);
    27322739
    27332740    /* the header menu */
     
    27582765    DELETE_IT(m_pToLogAct);
    27592766    DELETE_IT(m_pToRelLogAct);
     2767    DELETE_IT(m_pAdjColumns);
    27602768#undef DELETE_IT
    27612769}
     
    27682776    if (m_pModel->updateStatsByPattern(rPatStr))
    27692777        setRootIndex(m_pModel->getRootIndex()); /* hack */
     2778}
     2779
     2780
     2781void
     2782VBoxDbgStatsView::resizeColumnsToContent()
     2783{
     2784    for (int i = 0; i <= 8; i++)
     2785        resizeColumnToContents(i);
    27702786}
    27712787
     
    29152931    QModelIndex Idx = m_pCurMenu ? m_CurIndex : currentIndex();
    29162932    m_pModel->logTree(Idx, true /* a_fReleaseLog */);
     2933}
     2934
     2935
     2936void
     2937VBoxDbgStatsView::actAdjColumns()
     2938{
     2939    resizeColumnsToContent();
    29172940}
    29182941
     
    29973020     */
    29983021    m_pView->expandAll();
    2999     for (int i = 0; i <= 8; i++)
    3000         m_pView->resizeColumnToContents(i);
     3022    m_pView->resizeColumnsToContent();
    30013023    m_pView->collapseAll();
    30023024
  • trunk/src/VBox/Debugger/VBoxDbgStatsQt4.h

    r31530 r32181  
    7474    void resetStats(const QString &rPatStr);
    7575
     76    /**
     77     * Resizes the columns to fit the content.
     78     */
     79    void resizeColumnsToContent();
     80
    7681protected:
    7782    /**
     
    106111    void actToLog();
    107112    void actToRelLog();
     113    void actAdjColumns();
    108114    /** @} */
    109115
     
    144150    /** To Release Log action. */
    145151    QAction *m_pToRelLogAct;
     152    /** Adjust the columns. */
     153    QAction *m_pAdjColumns;
    146154#if 0
    147155    /** Save Tree (to file) action. */
Note: See TracChangeset for help on using the changeset viewer.

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