Skip to content

Commit

Permalink
Add/Edit/Delete/Reset in options tree ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed May 3, 2024
1 parent 5cbe60e commit f7aa1a5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/psioptionseditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,14 @@ PsiOptionsEditor::PsiOptionsEditor(QWidget *parent) : QWidget(parent)

buttonLine->addStretch(1);

pb_new = new QPushButton(tr("Add..."), this);
buttonLine->addWidget(pb_new);
connect(pb_new, SIGNAL(clicked()), SLOT(add()));

pb_edit = new QPushButton(tr("Edit..."), this);
buttonLine->addWidget(pb_edit);
connect(pb_edit, SIGNAL(clicked()), SLOT(edit()));

pb_delete = new QPushButton(tr("Delete..."), this);
buttonLine->addWidget(pb_delete);
connect(pb_delete, SIGNAL(clicked()), SLOT(deleteit()));
Expand All @@ -213,14 +221,6 @@ PsiOptionsEditor::PsiOptionsEditor(QWidget *parent) : QWidget(parent)
buttonLine->addWidget(pb_reset);
connect(pb_reset, SIGNAL(clicked()), SLOT(resetit()));

pb_edit = new QPushButton(tr("Edit..."), this);
buttonLine->addWidget(pb_edit);
connect(pb_edit, SIGNAL(clicked()), SLOT(edit()));

pb_new = new QPushButton(tr("Add..."), this);
buttonLine->addWidget(pb_new);
connect(pb_new, SIGNAL(clicked()), SLOT(add()));

if (parent) {
pb_detach = new QToolButton(this);
pb_detach->setIcon(IconsetFactory::iconPtr("psi/advanced")->icon());
Expand Down

0 comments on commit f7aa1a5

Please sign in to comment.