diff --git a/gui/include/DataSource/DataSourceWidget.h b/gui/include/DataSource/DataSourceWidget.h
index 84e09dd..615adfd 100644
--- a/gui/include/DataSource/DataSourceWidget.h
+++ b/gui/include/DataSource/DataSourceWidget.h
@@ -32,6 +32,9 @@ private:
Ui::DataSourceWidget *ui;
private slots:
+ /// Slot called when the filtering text has changed
+ void filterChanged(const QString &text) noexcept;
+
/// Slot called when right clicking on an item in the tree (displays a menu)
void onTreeMenuRequested(const QPoint &pos) noexcept;
};
diff --git a/gui/src/DataSource/DataSourceWidget.cpp b/gui/src/DataSource/DataSourceWidget.cpp
index 67bcf4a..33f7cdb 100644
--- a/gui/src/DataSource/DataSourceWidget.cpp
+++ b/gui/src/DataSource/DataSourceWidget.cpp
@@ -47,6 +47,9 @@ DataSourceWidget::DataSourceWidget(QWidget *parent) : QWidget{parent}, ui{new Ui
// Connection to show a menu when right clicking on the tree
connect(ui->treeWidget, &QTreeWidget::customContextMenuRequested, this,
&DataSourceWidget::onTreeMenuRequested);
+
+ // Connection to filter tree
+ connect(ui->filterLineEdit, &QLineEdit::textChanged, this, &DataSourceWidget::filterChanged);
}
DataSourceWidget::~DataSourceWidget() noexcept
@@ -63,6 +66,10 @@ void DataSourceWidget::addDataSource(DataSourceItem *dataSource) noexcept
}
}
+void DataSourceWidget::filterChanged(const QString &text) noexcept
+{
+}
+
void DataSourceWidget::onTreeMenuRequested(const QPoint &pos) noexcept
{
// Retrieves the selected item in the tree, and build the menu from its actions
diff --git a/gui/ui/DataSource/DataSourceWidget.ui b/gui/ui/DataSource/DataSourceWidget.ui
index 473ed3b..e5d6f22 100644
--- a/gui/ui/DataSource/DataSourceWidget.ui
+++ b/gui/ui/DataSource/DataSourceWidget.ui
@@ -14,19 +14,10 @@
Data sources
-
- 0
-
-
- 0
-
-
- 0
-
-
- 0
-
-
+
+
+ -