Changeset 12844 in vbox
- Timestamp:
- Oct 1, 2008 1:07:12 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 37214
- Location:
- trunk/src/VBox/Debugger
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/VBoxDbgConsole.cpp
r12180 r12844 38 38 # include <qtextview.h> 39 39 # include <qlineedit.h> 40 #endif 40 #endif 41 41 42 42 #include <VBox/dbg.h> … … 67 67 VBoxDbgConsoleOutput::VBoxDbgConsoleOutput(QWidget *pParent/* = NULL*/, const char *pszName/* = NULL*/) 68 68 #ifdef VBOXDBG_USE_QT4 69 : QTextEdit(pParent), 70 #else 71 : QTextEdit(pParent, pszName), 69 : QTextEdit(pParent), 70 #else 71 : QTextEdit(pParent, pszName), 72 72 #endif 73 73 m_uCurLine(0), m_uCurPos(0), m_hGUIThread(RTThreadNativeSelf()) … … 101 101 setPaper(QBrush(Qt::black)); 102 102 setColor(QColor(qRgb(0, 0xe0, 0))); 103 #endif 103 #endif 104 104 NOREF(pszName); 105 105 } … … 128 128 #else 129 129 int iPosNL = rStr.find('\n', iPos); 130 #endif 130 #endif 131 131 int iPosEnd = iPosNL >= 0 ? iPosNL : cch; 132 132 if ((unsigned)iPosNL != iPos) … … 140 140 #else 141 141 insertAt(Str, m_uCurLine, m_uCurPos); 142 #endif 142 #endif 143 143 if (iPosNL >= 0) 144 144 { … … 174 174 VBoxDbgConsoleInput::VBoxDbgConsoleInput(QWidget *pParent/* = NULL*/, const char *pszName/* = NULL*/) 175 175 #ifdef VBOXDBG_USE_QT4 176 : QComboBox(pParent), 177 #else 178 : QComboBox(true, pParent, pszName), 179 #endif 176 : QComboBox(pParent), 177 #else 178 : QComboBox(true, pParent, pszName), 179 #endif 180 180 m_iBlankItem(0), m_hGUIThread(RTThreadNativeSelf()) 181 181 { … … 184 184 setEditable(true); 185 185 setInsertPolicy(NoInsert); 186 setAutoCompletion(false); 186 187 #else 187 188 insertItem("", m_iBlankItem); 188 189 setInsertionPolicy(NoInsertion); 189 #endif 190 #endif 190 191 setMaxCount(50); 191 192 const QLineEdit *pEdit = lineEdit(); … … 237 238 clearEdit(); 238 239 setCurrentItem(m_iBlankItem); 239 #endif 240 #endif 240 241 } 241 242 … … 280 281 #else 281 282 QLabel *pLabel = new QLabel(NULL, "11111111111111111111111111111111111111111111111111111111111111111111111111111112222222222", this); /// @todo 282 #endif 283 #endif 283 284 pLabel->setFont(m_pOutput->font()); 284 285 QSize Size = pLabel->sizeHint(); … … 306 307 307 308 # if 0//def Q_WS_MAC 308 pLabel = new QLabel(" "); 309 pLabel = new QLabel(" "); 309 310 pLayout->addWidget(pLabel); 310 311 pLabel->setMaximumSize(20, m_pInput->sizeHint().height() + 6); … … 343 344 pVLayout->addWidget(pHBox); 344 345 setLayout(pVLayout); 345 #endif 346 #endif 346 347 347 348 /* … … 424 425 QByteArray Utf8Array = rCommand.toUtf8(); 425 426 const char *psz = Utf8Array.constData(); 426 #else 427 #else 427 428 const char *psz = rCommand;//.utf8(); 428 429 #endif … … 457 458 #else 458 459 m_pOutput->scrollToBottom(); 459 #endif 460 #endif 460 461 461 462 m_fInputRestoreFocus = m_pInput->hasFocus(); /* dirty focus hack */ … … 669 670 #else 670 671 m_pTimer->start(10, true /* single shot */); 671 #endif 672 #endif 672 673 } 673 674 break; … … 700 701 #else 701 702 return QVBox::event(pGenEvent); 702 #endif 703 } 704 703 #endif 704 } 705 -
trunk/src/VBox/Debugger/VBoxDbgGui.cpp
r12843 r12844 154 154 if (!m_pDbgStats) 155 155 { 156 m_pDbgStats = new VBoxDbgStats(m_pVM );156 m_pDbgStats = new VBoxDbgStats(m_pVM, "*"); 157 157 connect(m_pDbgStats, SIGNAL(destroyed(QObject *)), this, SLOT(notifyChildDestroyed(QObject *))); 158 158 repositionStatistics(); -
trunk/src/VBox/Debugger/VBoxDbgStatsQt4.cpp
r12843 r12844 1780 1780 if (!pLast) 1781 1781 { 1782 /* nuking the whole tree. */ 1782 1783 setRootNode(createRootNode()); 1783 1784 m_fUpdateInsertRemove = true; … … 2570 2571 m_PatStr = rPatStr; 2571 2572 if (m_pModel->updateStatsByPattern(rPatStr)) 2572 setRootIndex( m_pModel->getRootIndex()); /// @todo this is a hack?2573 setRootIndex(QModelIndex()); /* hack */ 2573 2574 } 2574 2575 … … 2654 2655 QModelIndex Idx = m_pCurMenu ? m_CurIndex : currentIndex(); 2655 2656 if (!Idx.isValid() || Idx == m_pModel->getRootIndex()) 2656 m_pModel->updateStatsByPattern(m_PatStr); 2657 { 2658 if (m_pModel->updateStatsByPattern(m_PatStr)) 2659 setRootIndex(QModelIndex()); /* hack */ 2660 } 2657 2661 else 2658 2662 m_pModel->updateStatsByIndex(Idx); … … 2725 2729 2726 2730 m_pPatCB = new QComboBox(); 2731 m_pPatCB->setAutoCompletion(false); 2727 2732 pHLayout->addWidget(m_pPatCB); 2728 2733 if (!m_PatStr.isEmpty()) … … 2786 2791 } 2787 2792 2793 2788 2794 VBoxDbgStats::~VBoxDbgStats() 2789 2795 {
Note:
See TracChangeset
for help on using the changeset viewer.