Changeset 32181 in vbox for trunk/src/VBox/Debugger
- Timestamp:
- Sep 1, 2010 2:50:21 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 65465
- Location:
- trunk/src/VBox/Debugger
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/VBoxDbgStatsQt4.cpp
r31530 r32181 597 597 psz--; 598 598 if (!(++cDigits % 3)) 599 *psz-- = ' 599 *psz-- = ','; 600 600 } 601 601 return psz; … … 624 624 psz--; 625 625 if (!(++cDigits % 3)) 626 *psz-- = ' 626 *psz-- = ','; 627 627 } 628 628 if (fNegative) … … 2674 2674 m_pToLogAct = new QAction("To &Log", this); 2675 2675 m_pToRelLogAct = new QAction("T&o Release Log", this); 2676 m_pAdjColumns = new QAction("&Adjust Columns", this); 2676 2677 2677 2678 m_pCopyAct->setShortcut(QKeySequence::Copy); … … 2679 2680 m_pCollapseAct->setShortcut(QKeySequence("Ctrl+D")); 2680 2681 m_pRefreshAct->setShortcut(QKeySequence("Ctrl+R")); 2682 m_pResetAct->setShortcut(QKeySequence("Alt+R")); 2681 2683 m_pToLogAct->setShortcut(QKeySequence("Ctrl+Z")); 2682 2684 m_pToRelLogAct->setShortcut(QKeySequence("Alt+Z")); 2685 m_pAdjColumns->setShortcut(QKeySequence("Ctrl+A")); 2683 2686 2684 2687 addAction(m_pCopyAct); … … 2686 2689 addAction(m_pCollapseAct); 2687 2690 addAction(m_pRefreshAct); 2691 addAction(m_pResetAct); 2688 2692 addAction(m_pToLogAct); 2689 2693 addAction(m_pToRelLogAct); 2694 addAction(m_pAdjColumns); 2690 2695 2691 2696 connect(m_pExpandAct, SIGNAL(triggered(bool)), this, SLOT(actExpand())); … … 2696 2701 connect(m_pToLogAct, SIGNAL(triggered(bool)), this, SLOT(actToLog())); 2697 2702 connect(m_pToRelLogAct, SIGNAL(triggered(bool)), this, SLOT(actToRelLog())); 2703 connect(m_pAdjColumns, SIGNAL(triggered(bool)), this, SLOT(actAdjColumns())); 2698 2704 2699 2705 … … 2730 2736 m_pViewMenu->addAction(m_pCollapseAct); 2731 2737 m_pViewMenu->addSeparator(); 2738 m_pViewMenu->addAction(m_pAdjColumns); 2732 2739 2733 2740 /* the header menu */ … … 2758 2765 DELETE_IT(m_pToLogAct); 2759 2766 DELETE_IT(m_pToRelLogAct); 2767 DELETE_IT(m_pAdjColumns); 2760 2768 #undef DELETE_IT 2761 2769 } … … 2768 2776 if (m_pModel->updateStatsByPattern(rPatStr)) 2769 2777 setRootIndex(m_pModel->getRootIndex()); /* hack */ 2778 } 2779 2780 2781 void 2782 VBoxDbgStatsView::resizeColumnsToContent() 2783 { 2784 for (int i = 0; i <= 8; i++) 2785 resizeColumnToContents(i); 2770 2786 } 2771 2787 … … 2915 2931 QModelIndex Idx = m_pCurMenu ? m_CurIndex : currentIndex(); 2916 2932 m_pModel->logTree(Idx, true /* a_fReleaseLog */); 2933 } 2934 2935 2936 void 2937 VBoxDbgStatsView::actAdjColumns() 2938 { 2939 resizeColumnsToContent(); 2917 2940 } 2918 2941 … … 2997 3020 */ 2998 3021 m_pView->expandAll(); 2999 for (int i = 0; i <= 8; i++) 3000 m_pView->resizeColumnToContents(i); 3022 m_pView->resizeColumnsToContent(); 3001 3023 m_pView->collapseAll(); 3002 3024 -
trunk/src/VBox/Debugger/VBoxDbgStatsQt4.h
r31530 r32181 74 74 void resetStats(const QString &rPatStr); 75 75 76 /** 77 * Resizes the columns to fit the content. 78 */ 79 void resizeColumnsToContent(); 80 76 81 protected: 77 82 /** … … 106 111 void actToLog(); 107 112 void actToRelLog(); 113 void actAdjColumns(); 108 114 /** @} */ 109 115 … … 144 150 /** To Release Log action. */ 145 151 QAction *m_pToRelLogAct; 152 /** Adjust the columns. */ 153 QAction *m_pAdjColumns; 146 154 #if 0 147 155 /** Save Tree (to file) action. */
Note:
See TracChangeset
for help on using the changeset viewer.