Use checkable action for alternative speed limits and display button as "pressed when enabled"

This commit is contained in:
Christophe Dumez
2010-06-21 22:38:28 +00:00
parent 9628a9e156
commit 00c92d6d61
3 changed files with 9 additions and 11 deletions

View File

@@ -195,6 +195,7 @@ public slots:
if(alternative) {
altSpeedsBtn->setIcon(QIcon(":/Icons/slow.png"));
altSpeedsBtn->setToolTip(tr("Click to disable alternative speed limits"));
altSpeedsBtn->setDown(true);
} else {
altSpeedsBtn->setIcon(QIcon(":/Icons/slow_off.png"));
altSpeedsBtn->setToolTip(tr("Click to enable alternative speed limits"));