VirtualBox

Changeset 70610 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jan 17, 2018 2:45:30 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9072 Convert QPushButton to QIToolButton in log viewer panels

Location:
trunk/src/VBox/Frontends/VirtualBox/src/logviewer
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerBookmarksPanel.cpp

    r70581 r70610  
    2727# endif
    2828# include <QLabel>
    29 # include <QPushButton>
    3029
    3130/* GUI includes: */
     
    108107    mainLayout()->addWidget(m_pDeleteCurrentButton, 0);
    109108
    110     m_pDeleteAllButton = new QPushButton(this);
     109    m_pDeleteAllButton = new QIToolButton(this);
    111110    AssertPtrReturnVoid(m_pDeleteAllButton);
    112111    mainLayout()->addWidget(m_pDeleteAllButton, 0);
     
    119118    connect(m_pBookmarksComboBox, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
    120119            this, &UIVMLogViewerBookmarksPanel::sltBookmarkSelected);
    121 
    122     connect(m_pDeleteAllButton, &QPushButton::clicked, this, &UIVMLogViewerBookmarksPanel::sigDeleteAllBookmarks);
     120    connect(m_pDeleteAllButton, &QIToolButton::clicked, this, &UIVMLogViewerBookmarksPanel::sigDeleteAllBookmarks);
    123121    connect(m_pDeleteCurrentButton, &QIToolButton::clicked, this, &UIVMLogViewerBookmarksPanel::sltDeleteCurrentBookmark);
    124122}
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerBookmarksPanel.h

    r70581 r70610  
    2424/* Forward declarations: */
    2525class QComboBox;
    26 class QPushButton;
    2726class QIToolButton;
    2827
     
    7372    const int     m_iMaxBookmarkTextLength;
    7473    QComboBox    *m_pBookmarksComboBox;
    75     QPushButton *m_pDeleteAllButton;
     74    QIToolButton *m_pDeleteAllButton;
    7675    QIToolButton *m_pDeleteCurrentButton;
    7776};
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerDialog.cpp

    r70189 r70610  
    2727# include <QKeyEvent>
    2828# include <QLabel>
    29 # include <QPushButton>
    3029# include <QScrollBar>
    3130# include <QPlainTextEdit>
     31# include <QPushButton>
    3232# include <QVBoxLayout>
    3333
     
    150150    return gEDataManager->logWindowShouldBeMaximized();
    151151}
    152 
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerFilterPanel.cpp

    r70578 r70610  
    3131# include <QLineEdit>
    3232# include <QPlainTextEdit>
    33 # include <QPushButton>
    3433# include <QTextCursor>
    3534# include <QToolButton>
     
    3837
    3938/* GUI includes: */
     39# include "QIToolButton.h"
    4040# include "UIIconPool.h"
    4141# include "UISpecialControls.h"
     
    350350    }
    351351
    352     m_pAddFilterTermButton = new QPushButton(this);
     352    m_pAddFilterTermButton = new QIToolButton(this);
    353353    AssertPtrReturnVoid(m_pAddFilterTermButton);
    354354    {
     
    418418void UIVMLogViewerFilterPanel::prepareConnections()
    419419{
    420     connect(m_pAddFilterTermButton, &QPushButton::clicked, this,  &UIVMLogViewerFilterPanel::sltAddFilterTerm);
     420    connect(m_pAddFilterTermButton, &QIToolButton::clicked, this,  &UIVMLogViewerFilterPanel::sltAddFilterTerm);
    421421    connect(m_pButtonGroup, static_cast<void (QButtonGroup::*)(int)>(&QButtonGroup::buttonClicked),
    422422            this, &UIVMLogViewerFilterPanel::sltOperatorButtonChanged);
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerFilterPanel.h

    r70578 r70610  
    2929class QLabel;
    3030class QLineEdit;
    31 class QPushButton;
     31class QIToolButton;
    3232class QRadioButton;
    3333class UIVMFilterLineEdit;
     
    100100    QRadioButton        *m_pOrRadioButton;
    101101    QFrame              *m_pRadioButtonContainer;
    102     QPushButton         *m_pAddFilterTermButton;
     102    QIToolButton        *m_pAddFilterTermButton;
    103103    QStringList          m_filterTermList;
    104104    FilterOperatorButton m_eFilterOperatorButton;
Note: See TracChangeset for help on using the changeset viewer.

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