mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-07-04 12:03:41 +02:00
GUI: Implement about dialog in MainWindow.
This commit is contained in:
parent
099d6b3008
commit
c98ed34e6e
2 changed files with 10 additions and 0 deletions
|
|
@ -21,9 +21,11 @@
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#include <QMessageBox>
|
||||||
#include <QMenuBar>
|
#include <QMenuBar>
|
||||||
#include <QGridLayout>
|
#include <QGridLayout>
|
||||||
#include <QStackedWidget>
|
#include <QStackedWidget>
|
||||||
|
#include "gui_about.h"
|
||||||
#include "GenerateWindow.hpp"
|
#include "GenerateWindow.hpp"
|
||||||
#include "SearchWindow.hpp"
|
#include "SearchWindow.hpp"
|
||||||
#include "MainWindow.hpp"
|
#include "MainWindow.hpp"
|
||||||
|
|
@ -42,6 +44,7 @@ QMainWindow (parent)
|
||||||
|
|
||||||
menuBar()->addAction("Generate", this, SLOT(switchToGenerate()));
|
menuBar()->addAction("Generate", this, SLOT(switchToGenerate()));
|
||||||
menuBar()->addAction("Search", this, SLOT(switchToSearch()));
|
menuBar()->addAction("Search", this, SLOT(switchToSearch()));
|
||||||
|
menuBar()->addAction("About", this, SLOT(showAbout()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::switchToGenerate()
|
void MainWindow::switchToGenerate()
|
||||||
|
|
@ -53,3 +56,8 @@ void MainWindow::switchToSearch()
|
||||||
{
|
{
|
||||||
m_stacked->setCurrentIndex(1);
|
m_stacked->setCurrentIndex(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::showAbout()
|
||||||
|
{
|
||||||
|
QMessageBox::about(this, EOSIOKEYGEN_GUI_ABOUT_TITLE, EOSIOKEYGEN_GUI_ABOUT_TEXT);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,8 @@ private slots :
|
||||||
// Switch to search window.
|
// Switch to search window.
|
||||||
void switchToSearch();
|
void switchToSearch();
|
||||||
|
|
||||||
|
void showAbout();
|
||||||
|
|
||||||
private :
|
private :
|
||||||
|
|
||||||
QStackedWidget* m_stacked;
|
QStackedWidget* m_stacked;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue