mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00
Add setAccessibleName for dock item
Change-Id: Iaf3189f680370b85e0fca09b2699190cebab5929
This commit is contained in:
parent
9cb9016933
commit
22dfdbf37e
@ -8,7 +8,7 @@ DESTDIR = $$_PRO_FILE_PWD_/../
|
||||
TEMPLATE = app
|
||||
CONFIG += c++11 link_pkgconfig
|
||||
|
||||
PKGCONFIG += xcb-ewmh gtk+-2.0 dtkwidget dtkbase
|
||||
PKGCONFIG += xcb-ewmh gtk+-2.0 dtkwidget dtkbase dtkutil
|
||||
|
||||
SOURCES += main.cpp \
|
||||
window/mainwindow.cpp \
|
||||
|
@ -22,6 +22,7 @@ AppItem::AppItem(const QDBusObjectPath &entry, QWidget *parent)
|
||||
m_activeHorizontalIndicator(QPixmap(":/indicator/resources/indicator_active.png")),
|
||||
m_activeVerticalIndicator(QPixmap(":/indicator/resources/indicator_active_ver.png"))
|
||||
{
|
||||
setAccessibleName(m_itemEntry->name());
|
||||
setAcceptDrops(true);
|
||||
|
||||
m_id = m_itemEntry->id();
|
||||
|
@ -11,6 +11,7 @@ LauncherItem::LauncherItem(QWidget *parent)
|
||||
|
||||
m_tips(new QLabel(this))
|
||||
{
|
||||
setAccessibleName("Launcher");
|
||||
m_tips->setVisible(false);
|
||||
m_tips->setText(tr("Launcher"));
|
||||
m_tips->setStyleSheet("color:white;"
|
||||
|
@ -3,5 +3,4 @@
|
||||
PlaceholderItem::PlaceholderItem(QWidget *parent)
|
||||
: DockItem(App, parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -22,6 +22,8 @@ PluginsItem::PluginsItem(PluginsItemInterface* const pluginInter, const QString
|
||||
{
|
||||
Q_ASSERT(m_centeralWidget);
|
||||
|
||||
setAccessibleName(m_pluginInter->pluginName());
|
||||
|
||||
QBoxLayout *hLayout = new QHBoxLayout;
|
||||
hLayout->addWidget(m_centeralWidget);
|
||||
hLayout->setSpacing(0);
|
||||
|
@ -2,12 +2,14 @@
|
||||
#include "window/mainwindow.h"
|
||||
#include "util/themeappicon.h"
|
||||
|
||||
#include <dapplication.h>
|
||||
#include <DApplication>
|
||||
#include <DLog>
|
||||
#include <QDir>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
DWIDGET_USE_NAMESPACE
|
||||
DUTIL_USE_NAMESPACE
|
||||
|
||||
// let startdde know that we've already started.
|
||||
void RegisterDdeSession()
|
||||
@ -38,6 +40,9 @@ int main(int argc, char *argv[])
|
||||
app.setApplicationDisplayName("DDE Dock");
|
||||
app.setApplicationVersion("2.0");
|
||||
|
||||
DLogManager::registerConsoleAppender();
|
||||
DLogManager::registerFileAppender();
|
||||
|
||||
#ifndef QT_DEBUG
|
||||
QDir::setCurrent(QApplication::applicationDirPath());
|
||||
#endif
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEFINES += QT_MESSAGELOGCONTEXT
|
||||
|
||||
HEADERS += \
|
||||
$$PWD/pluginsiteminterface.h \
|
||||
$$PWD/constants.h \
|
||||
|
Loading…
x
Reference in New Issue
Block a user