VirtualBox

Changeset 100917 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 21, 2023 5:59:51 AM (19 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
158854
Message:

FE/Qt: bugref:10496, bugref:9072. Build fix.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
7 edited

Legend:

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

    r100907 r100917  
    8383        return;
    8484    m_pTabWidget->setCurrentIndex(iIndex);
     85}
     86
     87int UIDialogPanelBase::currentIndex() const
     88{
     89    if (!m_pTabWidget)
     90        return -1;
     91    return m_pTabWidget->currentIndex();
    8592}
    8693
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDialogPanel.h

    r100907 r100917  
    5656    UIDialogPanelBase(QWidget *pParent = 0);
    5757    void setCurrentIndex(int iIndex);
     58    int currentIndex() const;
    5859
    5960protected:
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerFilterPanel.cpp

    r100915 r100917  
    5050#endif
    5151
     52/* Other VBox includes: */
     53#include <iprt/assert.h>
     54
    5255
    5356/*********************************************************************************************************************************
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPanel.cpp

    r100915 r100917  
    5151void UIVMLogViewerPanelNew::prepare()
    5252{
    53     prepareSearchTab();
     53    m_pSearchWidget = new UIVMLogViewerSearchPanel(0, m_pViewer);
     54    insertTab(0, m_pSearchWidget);
    5455    retranslateUi();
    5556}
    5657
    57 void UIVMLogViewerPanelNew::prepareSearchTab()
     58void UIVMLogViewerPanelNew::refreshSearch()
    5859{
    59     //insertTab(0, new QPushButton("asdasda"));
    60     m_pSearchWidget = new UIVMLogViewerSearchPanel(0, m_pViewer);
    61     insertTab(0, m_pSearchWidget);
     60    if (m_pSearchWidget)
     61        m_pSearchWidget->refreshSearch();
    6262}
    6363
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPanel.h

    r100916 r100917  
    4848
    4949    UIVMLogViewerPanelNew(QWidget *pParent, UIVMLogViewerWidget *pViewer);
     50    void refreshSearch();
     51
     52    enum Page
     53    {
     54        Page_Search = 0,
     55        Page_Filter,
     56        Page_Bookmark,
     57        Page_Preferences,
     58        Page_Max
     59    };
     60
    5061
    5162private:
     
    5364    void retranslateUi() override;
    5465    void prepare() override;
    55     void prepareSearchTab();
    5666
    5767    UIVMLogViewerSearchPanel *m_pSearchWidget;
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerSearchPanel.cpp

    r100915 r100917  
    6868}
    6969
    70 void UIVMLogViewerSearchPanel::refresh()
     70void UIVMLogViewerSearchPanel::refreshSearch()
    7171{
    7272    /* We start the search from the end of the doc. assuming log's end is more interesting: */
     
    172172void UIVMLogViewerSearchPanel::sltCaseSentitiveCheckBox()
    173173{
    174     refresh();
     174    refreshSearch();
    175175}
    176176
    177177void UIVMLogViewerSearchPanel::sltMatchWholeWordCheckBox()
    178178{
    179     refresh();
     179    refreshSearch();
    180180}
    181181
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerSearchPanel.h

    r100915 r100917  
    6464    UIVMLogViewerSearchPanel(QWidget *pParent, UIVMLogViewerWidget *pViewer);
    6565    /** Resets the search position and starts a new search. */
    66     void refresh();
     66    void refreshSearch();
    6767    const QVector<float> &matchLocationVector() const;
    6868    /** Returns the number of the matches to the current search. */
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