diff --git a/frame/frame.pro b/frame/frame.pro index 25bf5be0e..a5dd17a21 100644 --- a/frame/frame.pro +++ b/frame/frame.pro @@ -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 \ diff --git a/frame/item/appitem.cpp b/frame/item/appitem.cpp index f3a8837f1..f56f9aec5 100644 --- a/frame/item/appitem.cpp +++ b/frame/item/appitem.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(); diff --git a/frame/item/launcheritem.cpp b/frame/item/launcheritem.cpp index 890bef529..a72a39da3 100644 --- a/frame/item/launcheritem.cpp +++ b/frame/item/launcheritem.cpp @@ -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;" diff --git a/frame/item/placeholderitem.cpp b/frame/item/placeholderitem.cpp index e8ba50496..6579d9f22 100644 --- a/frame/item/placeholderitem.cpp +++ b/frame/item/placeholderitem.cpp @@ -3,5 +3,4 @@ PlaceholderItem::PlaceholderItem(QWidget *parent) : DockItem(App, parent) { - } diff --git a/frame/item/pluginsitem.cpp b/frame/item/pluginsitem.cpp index ac5b3dfe8..d264406f7 100644 --- a/frame/item/pluginsitem.cpp +++ b/frame/item/pluginsitem.cpp @@ -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); diff --git a/frame/main.cpp b/frame/main.cpp index 8464627c1..6d7067ad9 100644 --- a/frame/main.cpp +++ b/frame/main.cpp @@ -2,12 +2,14 @@ #include "window/mainwindow.h" #include "util/themeappicon.h" -#include +#include +#include #include #include 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 diff --git a/interfaces/interfaces.pri b/interfaces/interfaces.pri index 07515fe1f..0fb8c8916 100644 --- a/interfaces/interfaces.pri +++ b/interfaces/interfaces.pri @@ -1,3 +1,5 @@ +DEFINES += QT_MESSAGELOGCONTEXT + HEADERS += \ $$PWD/pluginsiteminterface.h \ $$PWD/constants.h \