Skip to content

Commit

Permalink
chore: correct typos for cancel button
Browse files Browse the repository at this point in the history
Log:
  • Loading branch information
felixonmars authored and deepin-bot[bot] committed Sep 26, 2023
1 parent 6525ad8 commit f6cffdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/appchooserdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
AppChooserDialog::AppChooserDialog(QWidget *parent)
: QDialog(parent)
, m_view(new QListView(this))
, m_cancleBtn(new QPushButton(tr("Cancle"), this))
, m_cancelBtn(new QPushButton(tr("Cancel"), this))
, m_confirmBtn(new QPushButton(tr("Confirm"), this))
{
m_view->setFlow(QListView::LeftToRight);
Expand All @@ -32,7 +32,7 @@ AppChooserDialog::AppChooserDialog(QWidget *parent)

QHBoxLayout *btnLayout = new QHBoxLayout;
btnLayout->setAlignment(Qt::AlignRight);
btnLayout->addWidget(m_cancleBtn);
btnLayout->addWidget(m_cancelBtn);
btnLayout->addWidget(m_confirmBtn);

QVBoxLayout *layout = new QVBoxLayout(this);
Expand All @@ -42,7 +42,7 @@ AppChooserDialog::AppChooserDialog(QWidget *parent)
m_view->setItemDelegate(new AppChooserDelegate);

connect(m_confirmBtn, &QPushButton::clicked, this, &QDialog::accept);
connect(m_cancleBtn, &QPushButton::clicked, this, &QDialog::reject);
connect(m_cancelBtn, &QPushButton::clicked, this, &QDialog::reject);

setMinimumSize(750, 300);
}
Expand Down
2 changes: 1 addition & 1 deletion src/appchooserdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ class AppChooserDialog : public QDialog
QListView *m_view;
QStringList m_choices;

QPushButton *m_cancleBtn;
QPushButton *m_cancelBtn;
QPushButton *m_confirmBtn;
};

0 comments on commit f6cffdc

Please sign in to comment.