Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Loading Win
- this->tmpWin = new QWidget;
- QVBoxLayout * vLayout = new QVBoxLayout;
- QLabel * txtLabel = new QLabel;
- QProgressBar * pBar = new QProgressBar;
- if (encrypted)
- txtLabel->setText("[ "+QFileInfo(fileName).fileName()+" ]\n<strong>"+tr("Decrypting...")+"</strong>");
- else
- txtLabel->setText("[ "+QFileInfo(fileName).fileName()+" ]\n<strong>"+tr("Encrypting...")+"</strong>");
- pBar->setRange(0, 0);
- pBar->setFixedWidth(400);
- vLayout->addWidget(txtLabel, 0, Qt::AlignHCenter);
- vLayout->addWidget(pBar, 0, Qt::AlignHCenter);
- this->tmpWin->setWindowFlags(Qt::SplashScreen);
- this->tmpWin->setLayout(vLayout);
- this->tmpWin->show();
- // ---
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement