Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/controls/linebar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ LineBar::LineBar(DLineEdit *parent)
m_matchCountLabel->hide();

m_clearButton = new DIconButton(QStyle::SP_LineEditClearButton, lineEdit());
m_clearButton->setObjectName("ClearButton");
m_clearButton->setAccessibleName("ClearButton");
m_clearButton->setFixedSize(s_nClearButtonSize, s_nClearButtonSize);
m_clearButton->setIconSize(QSize(s_nClearButtonSize, s_nClearButtonSize));
m_clearButton->setFocusPolicy(Qt::NoFocus);
Expand Down
2 changes: 2 additions & 0 deletions src/editor/showflodcodewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ ShowFlodCodeWidget::ShowFlodCodeWidget(DWidget *parent)
this->setGraphicsEffect(effert);
QVBoxLayout *pSubLayout = new QVBoxLayout();
m_pContentEdit = new DPlainTextEdit(this);
m_pContentEdit->setObjectName("PContentEdit");
m_pContentEdit->setAccessibleName("PContentEdit");
m_pContentEdit->setWordWrapMode(QTextOption::WrapAnywhere);
m_pContentEdit->setFrameStyle(0);
m_pContentEdit->setReadOnly(true);
Expand Down
2 changes: 2 additions & 0 deletions src/widgets/ColorSelectWdg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ void ColorSelectWdg::initWidget()
if(!m_text.isEmpty()){
qDebug() << "ColorSelectWdg initWidget, text is not empty, creating button";
m_pButton = new DPushButton(m_text,this);
m_pButton->setObjectName("PButton");
m_pButton->setAccessibleName("PButton");
m_pButton->setMinimumSize(80,25);
m_pButton->setFlat(true);
connect(m_pButton,&QPushButton::clicked,this,[this](){
Expand Down
2 changes: 2 additions & 0 deletions src/widgets/bottombar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,9 @@ void BottomBar::initFormatMenu()
m_formatMenu->setMenuActionGroup(actionGroup);

m_unixAction = menu->addAction("Unix");
m_unixAction->setObjectName("UnixAction");
m_windowsAction = menu->addAction("Windows");
m_windowsAction->setObjectName("WindowsAction");
m_unixAction->setProperty(FormatActionType,EndlineFormat::Unix);
m_windowsAction->setProperty(FormatActionType,EndlineFormat::Windows);
actionGroup->addAction(m_unixAction);
Expand Down
4 changes: 4 additions & 0 deletions src/widgets/ddropdownmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ void DDropdownMenu::setMenu(DMenu *menu)
qDebug() << "DDropdownMenu setMenu";
deleteMenu();
m_menu = menu;
m_menu->setObjectName("Menu");
m_menu->setAccessibleName("Menu");
}

void DDropdownMenu::deleteMenu()
Expand All @@ -242,6 +244,7 @@ void DDropdownMenu::setMenuActionGroup(QActionGroup *actionGroup)
qDebug() << "DDropdownMenu setMenuActionGroup";
deleteMenuActionGroup();
m_actionGroup = actionGroup;
m_actionGroup->setObjectName("ActionGroup");
qDebug() << "DDropdownMenu setMenuActionGroup end";
}

Expand Down Expand Up @@ -329,6 +332,7 @@ DDropdownMenu *DDropdownMenu::createEncodeMenu()
m_pEncodeMenu->m_pActUtf8 = act;
act->setCheckable(true);
act->setChecked(true);
m_pEncodeMenu->m_pActUtf8->setObjectName("PActUtf8");
} else {
qDebug() << "Adding other action";
act->setCheckable(false);
Expand Down
1 change: 1 addition & 0 deletions src/widgets/pathsettintwgt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ void PathSettingWgt::init()
qDebug() << "PathSettingWgt init";
QVBoxLayout* layout = new QVBoxLayout(this);
m_group = new QButtonGroup(this);
m_group->setObjectName("Group");
layout->setContentsMargins(0,0,0,0);
m_curFileBox = new DCheckBox(this);
m_curFileBox->setAccessibleName("SamePathAsCurrentFile");
Expand Down
4 changes: 4 additions & 0 deletions src/widgets/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ Window::Window(DMainWindow *parent)
m_themePath(Settings::instance()->settings->option("advance.editor.theme")->value().toString())
{
qDebug() << "Window constructor called";
m_tabbar->setObjectName("Tabbar");
m_tabbar->setAccessibleName("Tabbar");

qRegisterMetaType<TextEdit *>("TextEdit");
m_rootSaveDBus = new DBusDaemon::dbus("com.deepin.editor.daemon", "/", QDBusConnection::systemBus(), this);
Expand Down Expand Up @@ -559,6 +561,8 @@ void Window::initTitlebar()
replaceAction->setObjectName("Replace");

m_menu->addAction(newWindowAction);
m_menu->setObjectName("Menu_2");
m_menu->setAccessibleName("Menu_2");
m_menu->addAction(newTabAction);
m_menu->addAction(openFileAction);
m_menu->addSeparator();
Expand Down
Loading