fixed(tooltip):change tooltip text color is brightText

This commit is contained in:
shaojun 2019-09-27 11:41:21 +08:00
parent 19630a11d5
commit d76c0b7aab
4 changed files with 4 additions and 13 deletions

View File

@ -83,14 +83,6 @@ void DatetimePlugin::loadPlugin()
m_refershTimer->setInterval(1000);
m_refershTimer->start();
m_centralWidget = new DatetimeWidget;
m_dateTipsLabel = new TipsWidget;
m_refershTimer = new QTimer(this);
m_dateTipsLabel->setObjectName("datetime");
m_refershTimer->setInterval(1000);
m_refershTimer->start();
m_centralWidget = new DatetimeWidget;
connect(m_centralWidget, &DatetimeWidget::requestUpdateGeometry, [this] { m_proxyInter->itemUpdate(this, pluginName()); });

View File

@ -4,7 +4,7 @@ set(PLUGIN_NAME "trash")
project(${PLUGIN_NAME})
# Sources files
file(GLOB SRCS "*.h" "*.cpp")
file(GLOB SRCS "*.h" "*.cpp" "../../widgets/*.h" "../../widgets/*.cpp")
find_package(PkgConfig REQUIRED)
find_package(Qt5Widgets REQUIRED)

View File

@ -35,11 +35,9 @@ DWIDGET_USE_NAMESPACE
TrashPlugin::TrashPlugin(QObject *parent)
: QObject(parent)
, m_trashWidget(nullptr)
, m_tipsLabel(new QLabel)
, m_tipsLabel(new TipsWidget)
{
m_tipsLabel->setObjectName("trash");
m_tipsLabel->setStyleSheet("color:white;"
"padding: 0 3px;");
}
const QString TrashPlugin::pluginName() const

View File

@ -29,6 +29,7 @@
#include "pluginsiteminterface.h"
#include "trashwidget.h"
#include "../../widgets/tipswidget.h"
#include <QLabel>
#include <QSettings>
@ -62,7 +63,7 @@ public:
private:
TrashWidget *m_trashWidget;
QLabel *m_tipsLabel;
QPointer<TipsWidget> m_tipsLabel;
};
#endif // TRASHPLUGIN_H