Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void wagerwindow::updateFiles()
- {
- ccStream.device()->open(QIODevice::WriteOnly);
- hsStream.device()->open(QIODevice::WriteOnly);
- ccStream<<(qint32)currentBalance;
- hsStream<<(qint32)highScore;
- ccStream.device()->close();
- hsStream.device()->close();
- }
- void wagerwindow::readFromFiles()
- {
- ccStream.device()->open(QIODevice::ReadOnly);
- hsStream.device()->open(QIODevice::ReadOnly);
- ccStream>>currentBalance;
- hsStream>>highScore;
- ccStream.device()->close();
- hsStream.device()->close();
- wagerButton->setText(QString::number(currentBalance));
- this->setWindowTitle(QString::number(highScore));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement