VirtualBox

Ignore:
Timestamp:
Apr 26, 2024 2:36:53 PM (12 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
162957
Message:

FE/Qt. bugref:9510. Creating widgets for color selection.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/activity/vmactivity
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/activity/vmactivity/UIVMActivityMonitorPaneContainer.cpp

    r104446 r104448  
    2929#include <QApplication>
    3030#include <QHBoxLayout>
     31#include <QLabel>
    3132#include <QPlainTextEdit>
    3233#include <QPushButton>
     
    4344    , m_pColorChangeButton0(0)
    4445    , m_pColorChangeButton1(0)
    45     , m_pColorChangeReset0(0)
    46     , m_pColorChangeReset1(0)
    4746{
    4847    prepare();
     
    5453
    5554    QWidget *pContainerWidget = new QWidget(this);
     55    QVBoxLayout *pContainerLayout = new QVBoxLayout(pContainerWidget);
    5656    insertTab(0, pContainerWidget, m_strTabText);
     57
     58    QHBoxLayout *pColorLayout0 = new QHBoxLayout(this);
     59    m_pColorLabel0 = new QLabel(this);
     60    m_pColorChangeButton0 = new QPushButton(this);
     61    pColorLayout0->addWidget(m_pColorLabel0);
     62    pColorLayout0->addWidget(m_pColorChangeButton0);
     63
     64    QHBoxLayout *pColorLayout1 = new QHBoxLayout(this);
     65    m_pColorLabel1 = new QLabel(this);
     66    m_pColorChangeButton1 = new QPushButton(this);
     67    pColorLayout1->addWidget(m_pColorLabel1);
     68    pColorLayout1->addWidget(m_pColorChangeButton1);
     69
     70    pContainerLayout->addLayout(pColorLayout0);
     71    pContainerLayout->addLayout(pColorLayout1);
     72
    5773
    5874    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     
    6379{
    6480    m_strTabText = QApplication::translate("UIVMActivityMonitorPaneContainer", "Preferences");
     81
     82    if (m_pColorLabel0)
     83        m_pColorLabel0->setText(QApplication::translate("UIVMActivityMonitorPaneContainer", "Data Series 1 Color"));
     84    if (m_pColorLabel1)
     85        m_pColorLabel1->setText(QApplication::translate("UIVMActivityMonitorPaneContainer", "Data Series 1 Color"));
    6586}
  • trunk/src/VBox/Frontends/VirtualBox/src/activity/vmactivity/UIVMActivityMonitorPaneContainer.h

    r104446 r104448  
    6464    QPushButton *m_pColorChangeButton1;
    6565
    66     QPushButton *m_pColorChangeReset0;
    67     QPushButton *m_pColorChangeReset1;
     66
    6867};
    6968
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