1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-17 03:50:03 +02:00

GUI: Implement about dialog in MainWindow.

This commit is contained in:
Henrik Hautakoski 2020-04-15 19:33:59 +02:00
parent 099d6b3008
commit c98ed34e6e
2 changed files with 10 additions and 0 deletions

View file

@ -21,9 +21,11 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#include <QMessageBox>
#include <QMenuBar>
#include <QGridLayout>
#include <QStackedWidget>
#include "gui_about.h"
#include "GenerateWindow.hpp"
#include "SearchWindow.hpp"
#include "MainWindow.hpp"
@ -42,6 +44,7 @@ QMainWindow (parent)
menuBar()->addAction("Generate", this, SLOT(switchToGenerate()));
menuBar()->addAction("Search", this, SLOT(switchToSearch()));
menuBar()->addAction("About", this, SLOT(showAbout()));
}
void MainWindow::switchToGenerate()
@ -53,3 +56,8 @@ void MainWindow::switchToSearch()
{
m_stacked->setCurrentIndex(1);
}
void MainWindow::showAbout()
{
QMessageBox::about(this, EOSIOKEYGEN_GUI_ABOUT_TITLE, EOSIOKEYGEN_GUI_ABOUT_TEXT);
}

View file

@ -42,6 +42,8 @@ private slots :
// Switch to search window.
void switchToSearch();
void showAbout();
private :
QStackedWidget* m_stacked;