|
|
@ -309,6 +309,8 @@ UBTeacherStudentAction::UBTeacherStudentAction(QWidget *parent, const char *name |
|
|
|
mpComboLayout = new QVBoxLayout(); |
|
|
|
mpComboLayout = new QVBoxLayout(); |
|
|
|
|
|
|
|
|
|
|
|
mpCombo = new QComboBox(this); |
|
|
|
mpCombo = new QComboBox(this); |
|
|
|
|
|
|
|
mpCombo->setObjectName("DockPaletteWidgetComboBox"); |
|
|
|
|
|
|
|
mpCombo->setMinimumWidth(80); |
|
|
|
mpCombo->addItem(tr("Teacher")); |
|
|
|
mpCombo->addItem(tr("Teacher")); |
|
|
|
mpCombo->addItem(tr("Student")); |
|
|
|
mpCombo->addItem(tr("Student")); |
|
|
|
mpComboLayout->addWidget(mpCombo, 0); |
|
|
|
mpComboLayout->addWidget(mpCombo, 0); |
|
|
@ -317,6 +319,9 @@ UBTeacherStudentAction::UBTeacherStudentAction(QWidget *parent, const char *name |
|
|
|
mpLayout->addLayout(mpComboLayout, 0); |
|
|
|
mpLayout->addLayout(mpComboLayout, 0); |
|
|
|
|
|
|
|
|
|
|
|
mpText = new QTextEdit(this); |
|
|
|
mpText = new QTextEdit(this); |
|
|
|
|
|
|
|
mpText->setObjectName("DockPaletteWidgetBox"); |
|
|
|
|
|
|
|
mpText->setStyleSheet("background:white;"); |
|
|
|
|
|
|
|
|
|
|
|
mpLayout->addWidget(mpText, 1); |
|
|
|
mpLayout->addWidget(mpText, 1); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
@ -449,11 +454,15 @@ UBUrlWidget::UBUrlWidget(QWidget *parent, const char *name):QWidget(parent) |
|
|
|
, mpUrl(NULL) |
|
|
|
, mpUrl(NULL) |
|
|
|
{ |
|
|
|
{ |
|
|
|
setObjectName(name); |
|
|
|
setObjectName(name); |
|
|
|
|
|
|
|
setAttribute(Qt::WA_StyledBackground, true); |
|
|
|
|
|
|
|
setStyleSheet(UBApplication::globalStyleSheet()); |
|
|
|
|
|
|
|
|
|
|
|
mpLayout = new QHBoxLayout(this); |
|
|
|
mpLayout = new QHBoxLayout(this); |
|
|
|
setLayout(mpLayout); |
|
|
|
setLayout(mpLayout); |
|
|
|
mpUrlLabel = new QLabel(tr("Url"), this); |
|
|
|
mpUrlLabel = new QLabel(tr("Url"), this); |
|
|
|
mpLayout->addWidget(mpUrlLabel, 0); |
|
|
|
mpLayout->addWidget(mpUrlLabel, 0); |
|
|
|
mpUrl = new QLineEdit(this); |
|
|
|
mpUrl = new QLineEdit(this); |
|
|
|
|
|
|
|
mpUrl->setObjectName("DockPaletteWidgetLineEdit"); |
|
|
|
mpLayout->addWidget(mpUrl, 1); |
|
|
|
mpLayout->addWidget(mpUrl, 1); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|