Skip to content

Commit b40db76

Browse files
committed
Update dialog header for table selection
1 parent 15bfe32 commit b40db76

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

src/publisher_select_dialog.h

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
#pragma once
22
#include <QDialog>
3-
#include <QLabel>
4-
#include <QListWidget>
5-
#include <QAbstractButton>
6-
#include <unordered_set>
7-
#include <map>
8-
#include <QCheckBox>
3+
#include <QStringList>
94

105
#include "ui_publisher_select_dialog.h"
116

@@ -19,12 +14,15 @@ class PublisherSelectDialog : public QDialog
1914
Q_OBJECT
2015
private:
2116
Ui::PublisherSelect *_ui;
22-
std::map<std::string, std::pair<QLabel *, QCheckBox *>> _topic_widgets;
2317

2418
public:
2519
explicit PublisherSelectDialog(QWidget* parent = nullptr) : QDialog(parent), _ui(new Ui::PublisherSelect)
2620
{
2721
_ui->setupUi(this);
22+
_ui->listTopics->verticalHeader()->setVisible(false);
23+
QStringList labels;
24+
labels.push_back("Topic name");
25+
_ui->listTopics->setHorizontalHeaderLabels(labels);
2826
}
2927

3028
Ui::PublisherSelect* ui()

0 commit comments

Comments
 (0)