Skip to content

Commit

Permalink
Merge pull request #6 from onvif/2.0
Browse files Browse the repository at this point in the history
Remove obsolete slot resulting in large startup delay on fragmented f…
  • Loading branch information
HansBusch authored Dec 22, 2022
2 parents f2fa8d9 + 165e90a commit 540261d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
9 changes: 0 additions & 9 deletions player/src/parserUI/parserWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ ParserWidget::ParserWidget(QWidget *parent) :
m_ui->setupUi(this);
m_ui->boxTree->setSelectionMode(QAbstractItemView::SingleSelection);
connect(m_ui->boxTree, &QTreeWidget::currentItemChanged, this, &ParserWidget::onItemChanged);
connect(m_ui->boxTree, &QTreeWidget::itemCollapsed, this, &ParserWidget::onExpandCollaps);
connect(m_ui->boxTree, &QTreeWidget::itemExpanded, this, &ParserWidget::onExpandCollaps);
connect(m_ui->expandBoxes, &QPushButton::clicked, [this] () {
this->m_ui->boxTree->expandAll();
this->resizeTreeToContents(m_ui->boxTree);
Expand Down Expand Up @@ -252,13 +250,6 @@ void ParserWidget::onItemChanged(QTreeWidgetItem *item)
}
}

void ParserWidget::onExpandCollaps(const QTreeWidgetItem* item)
{
Q_UNUSED(item);

resizeTreeToContents(m_ui->boxTree);
}

QTreeWidgetItem * ParserWidget::createPropertyItem(QString name, const Property & value, QTreeWidgetItem *parent)
{
QTreeWidgetItem * item = new QTreeWidgetItem(parent);
Expand Down
2 changes: 0 additions & 2 deletions player/src/parserUI/parserWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ class ParserWidget : public QDialog
public slots:
//! This slot is called when the box is selected and we need to show its content.
void onItemChanged(QTreeWidgetItem * item);
//! This slot is called when some item is expanded or collapsed.
void onExpandCollaps(const QTreeWidgetItem* item);

private:
//! Creates a tree item for a box.
Expand Down

0 comments on commit 540261d

Please sign in to comment.