Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool Database::load(const QString &filename)
- {
- bool opened = false;
- if (!filename.isEmpty())
- {
- QFile file(filename);
- opened = file.open(QIODevice::ReadOnly);
- if (opened)
- {
- modified = false;
- QDataStream output(&file);
- output >> db >> ids >> maxId;
- file.close();
- }
- }
- return opened;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement