2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
3 (c) 2007 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
11 #include "shogiactions.h"
19 ShogiActions::ShogiActions()
21 QAction
* toggle
= new KAction(KIcon("bookmark"), "Promote automatically", this);
22 toggle
->setCheckable(true);
23 toggle
->setChecked(true);
24 connect(toggle
, SIGNAL(triggered()), this, SLOT(toggle_promotion()));
28 bool ShogiActions::promotion() const {
32 void ShogiActions::toggle_promotion() {
33 m_promotion
= !m_promotion
;
37 } // namespace HLVariant