Added the feature of having a working application directory

This commit is contained in:
amazing-username
2017-08-06 21:24:09 -05:00
parent 4b7c0ea173
commit b83287b768
9 changed files with 166 additions and 7 deletions
+4
View File
@@ -1,3 +1,4 @@
#include<iostream>
#include<QString>
#include"MainWindow.h"
#include"Encryption.h"
@@ -41,6 +42,7 @@ void MainWindow::setupMainWindow()
setWindowTitle("Encryption Decryption Messaging");
setFixedHeight(windowHeight);
setFixedWidth(windowWidth);
actionButton.get()->setEnabled(false);
connections();
}
void MainWindow::createMenus()
@@ -65,6 +67,7 @@ void MainWindow::connections()
QObject::connect(closeApplication.get(), SIGNAL(triggered()), this, SLOT(exitApplication()));
QObject::connect(keyEdit.get(), SIGNAL(triggered()), this, SLOT(keyManagementWindow()));
QObject::connect(passwordManage.get(), SIGNAL(triggered()), this, SLOT(passwordManageWindow()));
QObject::connect(actionButton.get(), SIGNAL(clicked()), this, SLOT(test()));
}
@@ -107,3 +110,4 @@ std::string MainWindow::grabCryptionText()
return placeHolder.toStdString();
}
void MainWindow::test() { std::cout<<"Action button Works"<<std::endl; }