| 27 | } |
| 28 | |
| 29 | QString read() const { |
| 30 | QFile file{filename}; |
| 31 | if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) |
| 32 | return QString(); |
| 33 | QTextStream in(&file); |
| 34 | return in.readAll(); |
| 35 | } |
| 36 | |
| 37 | private: |
| 38 | const QString filename{getTmpFileName()}; |