Supplement some info for GUI test

Change-Id: I99839778174318881ddbd66d5b229cfef3d550c1
This commit is contained in:
Hualet Wang 2016-10-29 10:18:30 +08:00
parent 6e92f5ed4c
commit ba6201a150
Notes: Deepin Code Review 2016-10-29 14:04:37 +08:00
Verified+1: Anonymous Coward #1000004
Code-Review+1: 石博文 <sbw@sbw.so>
Code-Review+2: Hualet Wang <mr.asianwang@gmail.com>
Submitted-by: Hualet Wang <mr.asianwang@gmail.com>
Submitted-at: Sat, 29 Oct 2016 14:04:37 +0800
Reviewed-on: https://cr.deepin.io/17034
Project: dde/dde-dock
Branch: refs/heads/master
8 changed files with 14 additions and 2 deletions

View File

@ -13,6 +13,8 @@ DiskMountPlugin::DiskMountPlugin(QObject *parent)
m_diskControlApplet(nullptr)
{
m_diskPluginItem->setVisible(false);
m_tipsLabel->setObjectName("diskmount");
m_tipsLabel->setVisible(false);
m_tipsLabel->setText(tr("Disk"));
m_tipsLabel->setStyleSheet("color:white;"

View File

@ -17,8 +17,8 @@ WirelessItem::WirelessItem(const QUuid &uuid)
m_refershTimer->setInterval(100);
m_wirelessApplet->setVisible(false);
m_wirelessPopup->setObjectName("wireless-" + uuid.toString());
m_wirelessPopup->setVisible(false);
m_wirelessPopup->setStyleSheet("color:white;"
"padding:5px 10px;");

View File

@ -41,6 +41,7 @@ QWidget *ShutdownPlugin::itemWidget(const QString &itemKey)
QWidget *ShutdownPlugin::itemTipsWidget(const QString &itemKey)
{
const BatteryPercentageMap data = m_powerInter->batteryPercentage();
m_tipsLabel->setObjectName(itemKey);
if (data.isEmpty() || (itemKey == SHUTDOWN_KEY && displayMode() == Dock::Efficient))
{

View File

@ -13,7 +13,10 @@ SinkInputWidget::SinkInputWidget(const QString &inputPath, QWidget *parent)
m_volumeIcon(new DImageButton),
m_volumeSlider(new VolumeSlider)
{
m_volumeIcon->setPixmap(QIcon::fromTheme(m_inputInter->icon()).pixmap(24, 24));
const QString iconName = m_inputInter->icon();
m_volumeIcon->setAccessibleName("app-" + iconName + "-icon");
m_volumeIcon->setPixmap(QIcon::fromTheme(iconName).pixmap(24, 24));
m_volumeSlider->setAccessibleName("app-" + iconName + "-slider");
m_volumeSlider->setValue(m_inputInter->volume() * 1000);
QHBoxLayout *centeralLayout = new QHBoxLayout;

View File

@ -24,6 +24,9 @@ SoundApplet::SoundApplet(QWidget *parent)
{
QIcon::setThemeName("deepin");
m_volumeBtn->setAccessibleName("volume-button");
m_volumeSlider->setAccessibleName("volume-slider");
QLabel *deviceLabel = new QLabel;
deviceLabel->setText(tr("Device"));
deviceLabel->setStyleSheet("color:white;");

View File

@ -18,6 +18,7 @@ SoundItem::SoundItem(QWidget *parent)
{
QIcon::setThemeName("deepin");
m_tipsLabel->setObjectName("sound");
m_tipsLabel->setVisible(false);
// m_tipsLabel->setFixedWidth(145);
m_tipsLabel->setAlignment(Qt::AlignCenter);

View File

@ -20,6 +20,7 @@ SystemTrayPlugin::SystemTrayPlugin(QObject *parent)
m_trayApplet->setObjectName("sys-tray");
m_fashionItem = new FashionTrayItem;
m_tipsLabel->setObjectName("sys-tray");
m_tipsLabel->setText(tr("System Tray"));
m_tipsLabel->setVisible(false);
m_tipsLabel->setStyleSheet("color:white;"

View File

@ -5,6 +5,7 @@ TrashPlugin::TrashPlugin(QObject *parent)
m_trashWidget(new TrashWidget),
m_tipsLabel(new QLabel)
{
m_tipsLabel->setObjectName("trash");
m_tipsLabel->setStyleSheet("color:white;"
"padding:5px 10px;");