cleaned code a little bit

This commit is contained in:
csoler 2016-03-12 11:05:03 -05:00
parent 61c7da7e2d
commit a065dba8f8
2 changed files with 5 additions and 3 deletions

View File

@ -256,7 +256,7 @@ IdDialog::IdDialog(QWidget *parent) :
// circles stuff
connect(ui->pushButton_extCircle, SIGNAL(clicked()), this, SLOT(createExternalCircle()));
connect(ui->pushButton_editCircle, SIGNAL(clicked()), this, SLOT(editExistingCircle()));
connect(ui->pushButton_editCircle, SIGNAL(clicked()), this, SLOT(showEditExistingCircle()));
connect(ui->treeWidget_membership, SIGNAL(itemSelectionChanged()), this, SLOT(circle_selected()));
connect(ui->treeWidget_membership, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(CircleListCustomPopupMenu(QPoint)));
@ -369,7 +369,7 @@ void IdDialog::createExternalCircle()
requestCircleGroupMeta(); // update GUI
}
void IdDialog::editExistingCircle()
void IdDialog::showEditExistingCircle()
{
QTreeWidgetItem *item = ui->treeWidget_membership->currentItem();
if ((!item) || (!item->parent()))
@ -460,6 +460,7 @@ static void update_children_background(QTreeWidgetItem *item, uint32_t type)
}
}
#ifdef SUSPENDED
static void set_tree_background(QTreeWidget *tree, uint32_t type)
{
std::cerr << "CirclesDialog set_tree_background()";
@ -487,6 +488,7 @@ static void check_mark_item(QTreeWidgetItem *item, const std::set<RsPgpId> &name
std::cerr << std::endl;
}
}
#endif
void IdDialog::circle_selected()
{
QTreeWidgetItem *item = ui->treeWidget_membership->currentItem();

View File

@ -60,7 +60,7 @@ protected:
void requestCircleGroupMeta();
private slots:
void createExternalCircle();
void editExistingCircle();
void showEditExistingCircle();
void filterComboBoxChanged();
void filterChanged(const QString &text);