|
|
@ -62,6 +62,7 @@ UBTeacherBarWidget::UBTeacherBarWidget(QWidget *parent, const char *name):UBDock |
|
|
|
mpTitleLabel->setAlignment(Qt::AlignRight); |
|
|
|
mpTitleLabel->setAlignment(Qt::AlignRight); |
|
|
|
mpTitle = new QLineEdit(mpContainer); |
|
|
|
mpTitle = new QLineEdit(mpContainer); |
|
|
|
mpTitle->setObjectName("DockPaletteWidgetLineEdit"); |
|
|
|
mpTitle->setObjectName("DockPaletteWidgetLineEdit"); |
|
|
|
|
|
|
|
connect(mpTitle, SIGNAL(textChanged(const QString&)), this, SLOT(onTitleTextChanged(const QString&))); |
|
|
|
mpTitleLayout = new QHBoxLayout(); |
|
|
|
mpTitleLayout = new QHBoxLayout(); |
|
|
|
mpTitleLayout->addWidget(mpTitleLabel, 0); |
|
|
|
mpTitleLayout->addWidget(mpTitleLabel, 0); |
|
|
|
mpTitleLayout->addWidget(mpTitle, 1); |
|
|
|
mpTitleLayout->addWidget(mpTitle, 1); |
|
|
@ -95,6 +96,7 @@ UBTeacherBarWidget::UBTeacherBarWidget(QWidget *parent, const char *name):UBDock |
|
|
|
mpEquipmentLabel->setAlignment(Qt::AlignRight); |
|
|
|
mpEquipmentLabel->setAlignment(Qt::AlignRight); |
|
|
|
mpEquipment = new QLineEdit(mpContainer); |
|
|
|
mpEquipment = new QLineEdit(mpContainer); |
|
|
|
mpEquipment->setObjectName("DockPaletteWidgetLineEdit"); |
|
|
|
mpEquipment->setObjectName("DockPaletteWidgetLineEdit"); |
|
|
|
|
|
|
|
connect(mpEquipment, SIGNAL(textChanged(const QString&)), this, SLOT(onEquipmentTextChanged(const QString&))); |
|
|
|
mpEquipmentLayout = new QHBoxLayout(); |
|
|
|
mpEquipmentLayout = new QHBoxLayout(); |
|
|
|
mpEquipmentLayout->addWidget(mpEquipmentLabel, 0); |
|
|
|
mpEquipmentLayout->addWidget(mpEquipmentLabel, 0); |
|
|
|
mpEquipmentLayout->addWidget(mpEquipment, 1); |
|
|
|
mpEquipmentLayout->addWidget(mpEquipment, 1); |
|
|
@ -319,6 +321,16 @@ void UBTeacherBarWidget::loadContent() |
|
|
|
mpAction3->setStudentText(nextInfos.action3Student); |
|
|
|
mpAction3->setStudentText(nextInfos.action3Student); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void UBTeacherBarWidget::onTitleTextChanged(const QString& text) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
mpTitle->setToolTip(text); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void UBTeacherBarWidget::onEquipmentTextChanged(const QString& text) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
mpEquipment->setToolTip(text); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
UBTeacherStudentAction::UBTeacherStudentAction(int actionNumber, QWidget *parent, const char *name):QWidget(parent) |
|
|
|
UBTeacherStudentAction::UBTeacherStudentAction(int actionNumber, QWidget *parent, const char *name):QWidget(parent) |
|
|
|
, mpActionLabel(NULL) |
|
|
|
, mpActionLabel(NULL) |
|
|
|
, mpTeacherLabel(NULL) |
|
|
|
, mpTeacherLabel(NULL) |
|
|
|