Пример #1
0
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();
}
Пример #2
0
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);
}
Пример #3
0
void RoaMainWidget::on_qpNext_clicked()
{
    hideContent(currentIndex);
    currentIndex++;
    changeContent(currentIndex);

    // Start installation
    if(currentIndex == 4)
    {
        emit readyToInstall();
    }
}
Пример #4
0
void RoaMainWidget::on_qpBack_clicked()
{
    hideContent(currentIndex);
    currentIndex--;
    changeContent(currentIndex);
}
Пример #5
0
void RoaMainWidget::setCustomContentId(int _id)
{
    hideContent(currentIndex);
    changeContent(_id);
    currentIndex = _id;
}