menuBar()->addAction( tr("Pause"), this, SLOT(pause()));
menuBar()->addAction( tr("New game"), this, SLOT(newGame()));
menuBar()->addAction( tr("Visit web page"), this, SLOT(visitWeb()));
+ menuBar()->addAction( tr("About"),this, SLOT(about()));
+ menuBar()->addAction(tr("About Qt"), this, SLOT(aboutQt()))
}
process->start(QString("browser --url=chessclock.garage.maemo.org"));
}
+void ChessClockWindow::about()
+{
+ pause();
+ QMessageBox::about(this, tr("About ChessClock"),
+ tr("<h1>Chess Clock %1</h1>"
+ "©Arto Hyvättinen 2010"
+ "<p>Chess Clock is free software under the terms of GNU General Public License 3"
+ "<p>Bugtracker and instructions at <a>checkclock.garage.maemo.org</a>"
+ ).arg(qApp->applicationVersion()))
+}
+
+void ChessClockWindow::aboutQt()
+{
+ pause();
+ qApp->aboutQt();
+}
+
void ChessClockWindow::initTimeControls()
{
whiteAddition_ = initTimeEdit();
blackAddition_ = initTimeEdit();
// Turns per addition
- perTurnLabel_ = new QLabel( tr("Addition per turn"));
+ perTurnLabel_ = new QLabel( tr("Turns per addition"));
whiteTurns_=new QSpinBox;
whiteTurns_->setRange(1,99);
#include "basicdialog.h"
#include <QApplication>
+#include <QLabel>
DelayTimeControl::DelayTimeControl()
{
{
BasicDialog dialog(getName());
dialog.disablePerTurns();
+ dialog.additionLabel_->setText(qApp->translate("Delay","Delay time"));
dialog.init();
if( useLastSettings || dialog.exec() == QDialog::Accepted)