simple_mtglife
diff mainwin.cc @ 1:d76fb2ffe7f5
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 25 Jan 2015 12:04:45 +0200 |
parents | 6321cfa2ad62 |
children | 7cac97dca573 |
line diff
1.1 --- a/mainwin.cc Fri Jan 23 15:24:27 2015 +0200 1.2 +++ b/mainwin.cc Sun Jan 25 12:04:45 2015 +0200 1.3 @@ -1,3 +1,4 @@ 1.4 +#include <QMessageBox> 1.5 #include "mainwin.h" 1.6 #include "ui_mainwin.h" 1.7 1.8 @@ -42,3 +43,29 @@ 1.9 { 1.10 ui->spin_p2_life->setValue(ui->spin_p2_life->value() - 10); 1.11 } 1.12 + 1.13 +void MainWin::on_action_reset_triggered() 1.14 +{ 1.15 + on_bn_p1_reset_clicked(); 1.16 + on_bn_p2_reset_clicked(); 1.17 +} 1.18 + 1.19 +void MainWin::on_action_quit_triggered() 1.20 +{ 1.21 + QApplication::quit(); 1.22 +} 1.23 + 1.24 +void MainWin::on_action_about_triggered() 1.25 +{ 1.26 + static const char *about_text = 1.27 + "simple_mtglife is an extremely simple and lightweight life counter " 1.28 + "for magic: the gathering.\n" 1.29 + "\n" 1.30 + "Copyright (C) 2015 John Tsiombikas <nuclear@member.fsf.org>\n" 1.31 + "http://nuclear.mutantstargoat.com\n" 1.32 + "\n" 1.33 + "This program is free software. Feel free to copy, modify, and " 1.34 + "distribute copies of this application, under the terms of the " 1.35 + "GNU General Public License version 3 (or any later version)."; 1.36 + QMessageBox::about(this, "About simple_mtglife", about_text); 1.37 +}