Addressed Issue #10

This commit is contained in:
amazing-username
2018-03-31 15:04:20 -05:00
parent d1662f12fb
commit 30bc1f8245
10 changed files with 67 additions and 65 deletions
+12 -4
View File
@@ -1,9 +1,11 @@
#include<QString>
#include"SaveFile.h"
SaveFile::SaveFile(QWidget* parent) : QDialog(parent)
{
setupWindow();
}
string SaveFile::filenameStr = "default.txt";
SaveFile::SaveFile(QWidget* parent) : QDialog(parent) { setupWindow(); }
SaveFile::SaveFile(QWidget* parent, MainWindow* mw) : QDialog(parent), mw(mw) { setupWindow(); }
void SaveFile::setupWindow()
{
@@ -34,5 +36,11 @@ void SaveFile::connections()
}
void SaveFile::saveFileAs()
{
QString fs = filename.get()->text();
filenameStr.assign(fs.toUtf8().constData());
filenameStr.append(".txt");
mw.get()->processEncryption();
this->hide();
}