From 8c5b96b2405fcc0007bf5f15542c0f44cb57fc8a Mon Sep 17 00:00:00 2001 From: shibakaneki Date: Thu, 2 Feb 2012 09:58:31 +0100 Subject: [PATCH] Changed the combobx into a textfield in the teacher bar --- src/gui/UBTBDocumentEditWidget.cpp | 6 +++--- src/gui/UBTBDocumentEditWidget.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/UBTBDocumentEditWidget.cpp b/src/gui/UBTBDocumentEditWidget.cpp index 97c00521..2b4e358a 100644 --- a/src/gui/UBTBDocumentEditWidget.cpp +++ b/src/gui/UBTBDocumentEditWidget.cpp @@ -62,8 +62,8 @@ UBTBDocumentEditWidget::UBTBDocumentEditWidget(UBTeacherBarDataMgr* pDataMgr, QW mpKeywords->setObjectName("DockPaletteWidgetLineEdit"); mpLevel = new QComboBox(this); mpLevel->setObjectName("DockPaletteWidgetComboBox"); - mpTopic = new QComboBox(this); - mpTopic->setObjectName("DockPaletteWidgetComboBox"); + mpTopic = new QLineEdit(this); + mpTopic->setObjectName("DockPaletteWidgetLineEdit"); mpAuthor = new QLineEdit(this); mpAuthor->setObjectName("DockPaletteWidgetLineEdit"); mpKeywordLabel = new QLabel(tr("Keywords:"), this); @@ -179,7 +179,7 @@ void UBTBDocumentEditWidget::updateFields() mpTarget->setPlainText(mpDataMgr->sessionTarget()); mpKeywords->setText(mpDataMgr->keywords()); // TODO: retrieve the level - // TODO retrieve the topic + mpTopic->setText(mpDataMgr->topic()); mpAuthor->setText(mpDataMgr->authors()); } diff --git a/src/gui/UBTBDocumentEditWidget.h b/src/gui/UBTBDocumentEditWidget.h index 7d782247..4b49a973 100644 --- a/src/gui/UBTBDocumentEditWidget.h +++ b/src/gui/UBTBDocumentEditWidget.h @@ -60,7 +60,7 @@ private: QComboBox* mpLicenseCombox; QLineEdit* mpKeywords; QComboBox* mpLevel; - QComboBox* mpTopic; + QLineEdit* mpTopic; QLineEdit* mpAuthor; QLabel* mpKeywordLabel; QLabel* mpLevelLabel;