void SCgNode::updateContentViewer() { bool isCntVis = mContentVisible; if(isCntVis) hideContent(); if (mContentViewer != 0) { delete mContentViewer; mContentViewer = 0; } if (!contentType() == SCgContent::Empty) { // creating new viewer if (!mContentViewer) mContentViewer = SCgContentFactory::createViewer(contentFormat()); Q_ASSERT(mContentViewer); mContentViewer->setData(contentData()); mContentViewer->setParentItem(this); if (isCntVis) showContent(); } update(); }
BabelWindow::BabelWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::BabelWindow) { ui->setupUi(this); hideContent(); displayList(); this->ui->textEdit_seeMessage->setDisabled(true); this->ui->lineEdit_password->setEchoMode(QLineEdit::Password); this->ui->lineEdit_passwordregister->setEchoMode(QLineEdit::Password); this->ui->lineEdit_passwordconfirmregister->setEchoMode(QLineEdit::Password); }
void RoaMainWidget::on_qpNext_clicked() { hideContent(currentIndex); currentIndex++; changeContent(currentIndex); // Start installation if(currentIndex == 4) { emit readyToInstall(); } }
void RoaMainWidget::on_qpBack_clicked() { hideContent(currentIndex); currentIndex--; changeContent(currentIndex); }
void RoaMainWidget::setCustomContentId(int _id) { hideContent(currentIndex); changeContent(_id); currentIndex = _id; }