VirtualBox

Changeset 12844 in vbox


Ignore:
Timestamp:
Oct 1, 2008 1:07:12 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37214
Message:

Debugger: disabled autocompletion, fixed a statistics update problem.

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

Legend:

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

    r12180 r12844  
    3838# include <qtextview.h>
    3939# include <qlineedit.h>
    40 #endif 
     40#endif
    4141
    4242#include <VBox/dbg.h>
     
    6767VBoxDbgConsoleOutput::VBoxDbgConsoleOutput(QWidget *pParent/* = NULL*/, const char *pszName/* = NULL*/)
    6868#ifdef VBOXDBG_USE_QT4
    69     : QTextEdit(pParent), 
    70 #else
    71     : QTextEdit(pParent, pszName), 
     69    : QTextEdit(pParent),
     70#else
     71    : QTextEdit(pParent, pszName),
    7272#endif
    7373      m_uCurLine(0), m_uCurPos(0), m_hGUIThread(RTThreadNativeSelf())
     
    101101    setPaper(QBrush(Qt::black));
    102102    setColor(QColor(qRgb(0, 0xe0, 0)));
    103 #endif 
     103#endif
    104104    NOREF(pszName);
    105105}
     
    128128#else
    129129        int iPosNL = rStr.find('\n', iPos);
    130 #endif 
     130#endif
    131131        int iPosEnd = iPosNL >= 0 ? iPosNL : cch;
    132132        if ((unsigned)iPosNL != iPos)
     
    140140#else
    141141                insertAt(Str, m_uCurLine, m_uCurPos);
    142 #endif 
     142#endif
    143143            if (iPosNL >= 0)
    144144            {
     
    174174VBoxDbgConsoleInput::VBoxDbgConsoleInput(QWidget *pParent/* = NULL*/, const char *pszName/* = NULL*/)
    175175#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
    180180      m_iBlankItem(0), m_hGUIThread(RTThreadNativeSelf())
    181181{
     
    184184    setEditable(true);
    185185    setInsertPolicy(NoInsert);
     186    setAutoCompletion(false);
    186187#else
    187188    insertItem("", m_iBlankItem);
    188189    setInsertionPolicy(NoInsertion);
    189 #endif 
     190#endif
    190191    setMaxCount(50);
    191192    const QLineEdit *pEdit = lineEdit();
     
    237238    clearEdit();
    238239    setCurrentItem(m_iBlankItem);
    239 #endif 
     240#endif
    240241}
    241242
     
    280281#else
    281282    QLabel *pLabel = new QLabel(NULL, "11111111111111111111111111111111111111111111111111111111111111111111111111111112222222222", this); /// @todo
    282 #endif 
     283#endif
    283284    pLabel->setFont(m_pOutput->font());
    284285    QSize Size = pLabel->sizeHint();
     
    306307
    307308# if 0//def Q_WS_MAC
    308     pLabel = new QLabel("  "); 
     309    pLabel = new QLabel("  ");
    309310    pLayout->addWidget(pLabel);
    310311    pLabel->setMaximumSize(20, m_pInput->sizeHint().height() + 6);
     
    343344    pVLayout->addWidget(pHBox);
    344345    setLayout(pVLayout);
    345 #endif 
     346#endif
    346347
    347348    /*
     
    424425    QByteArray Utf8Array = rCommand.toUtf8();
    425426    const char *psz = Utf8Array.constData();
    426 #else                               
     427#else
    427428    const char *psz = rCommand;//.utf8();
    428429#endif
     
    457458#else
    458459    m_pOutput->scrollToBottom();
    459 #endif 
     460#endif
    460461
    461462    m_fInputRestoreFocus = m_pInput->hasFocus();    /* dirty focus hack */
     
    669670#else
    670671                    m_pTimer->start(10, true /* single shot */);
    671 #endif 
     672#endif
    672673                }
    673674                break;
     
    700701#else
    701702    return QVBox::event(pGenEvent);
    702 #endif 
    703 }
    704 
     703#endif
     704}
     705
  • trunk/src/VBox/Debugger/VBoxDbgGui.cpp

    r12843 r12844  
    154154    if (!m_pDbgStats)
    155155    {
    156         m_pDbgStats = new VBoxDbgStats(m_pVM);
     156        m_pDbgStats = new VBoxDbgStats(m_pVM, "*");
    157157        connect(m_pDbgStats, SIGNAL(destroyed(QObject *)), this, SLOT(notifyChildDestroyed(QObject *)));
    158158        repositionStatistics();
  • trunk/src/VBox/Debugger/VBoxDbgStatsQt4.cpp

    r12843 r12844  
    17801780        if (!pLast)
    17811781        {
     1782            /* nuking the whole tree. */
    17821783            setRootNode(createRootNode());
    17831784            m_fUpdateInsertRemove = true;
     
    25702571    m_PatStr = rPatStr;
    25712572    if (m_pModel->updateStatsByPattern(rPatStr))
    2572         setRootIndex(m_pModel->getRootIndex()); /// @todo this is a hack?
     2573        setRootIndex(QModelIndex()); /* hack */
    25732574}
    25742575
     
    26542655    QModelIndex Idx = m_pCurMenu ? m_CurIndex : currentIndex();
    26552656    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    }
    26572661    else
    26582662        m_pModel->updateStatsByIndex(Idx);
     
    27252729
    27262730    m_pPatCB = new QComboBox();
     2731    m_pPatCB->setAutoCompletion(false);
    27272732    pHLayout->addWidget(m_pPatCB);
    27282733    if (!m_PatStr.isEmpty())
     
    27862791}
    27872792
     2793
    27882794VBoxDbgStats::~VBoxDbgStats()
    27892795{
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