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