19 #include <QAbstractItemView> 59 if (editable != QComboBox::isEditable()) {
70 setCurrentIndex(index);
74 connect(lineEdit(), SIGNAL(editingFinished()),
this,
84 int index = findText(topic);
89 setCurrentIndex(index);
103 return itemData(index).toString();
142 for (QMap<QString, QString>::const_iterator it = topics.begin();
143 it != topics.end(); ++it)
144 addItem(it.key(), it.value());
151 setCurrentIndex(index);
162 if (currentIndex() >= 0)
MessageTopicComboBox(QWidget *parent=0)
QString getCurrentTopicType() const
void registryUpdateStarted()
void currentIndexChanged(const QString &text)
void setEditable(bool editable)
virtual ~MessageTopicComboBox()
void currentTopicChanged(const QString &topic)
MessageTopicRegistry * registry_
QString getCurrentTopic() const
void setCurrentTopic(const QString &topic)
void setEditable(bool editable)
void lineEditEditingFinished()
void registryUpdateFinished()
QMap< QString, QString > getTopics() const
bool isCurrentTopicRegistered() const