diff options
| author | Robert Jonsson <spamatica@gmail.com> | 2010-10-27 20:48:30 +0000 | 
|---|---|---|
| committer | Robert Jonsson <spamatica@gmail.com> | 2010-10-27 20:48:30 +0000 | 
| commit | 764788d8150555ffa13d1c22838565c5cd50a892 (patch) | |
| tree | 9d7a4278e316784dbdee58bd3da5cb4ed69d4d2e /muse2/muse | |
| parent | 055b1b1114f43bb63644ed9770c0380356c2ef97 (diff) | |
Fixed keyboard shortcuts for tools and changed setOn to setChecked, should be changed for all QActions as setOn is deprecated
Diffstat (limited to 'muse2/muse')
| -rw-r--r-- | muse2/muse/widgets/tools.cpp | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/muse2/muse/widgets/tools.cpp b/muse2/muse/widgets/tools.cpp index ec80230a..74c3eea7 100644 --- a/muse2/muse/widgets/tools.cpp +++ b/muse2/muse/widgets/tools.cpp @@ -5,6 +5,7 @@  //  (C) Copyright 1999 Werner Schweer (ws@seh.de)  //========================================================= +#include <stdio.h>  #include "tools.h"  //#include <qpixmap.h>  //#include <q3buttongroup.h> @@ -128,7 +129,8 @@ void EditToolBar::set(int id)        for (int i = 0; i < nactions; ++i) {              Action* action = actions[i];              if (action->id() == id) { -                  action->setOn(true); +                  action->setChecked(true); +                  toolChanged(action);                    return;                    }              } @@ -142,7 +144,7 @@ int EditToolBar::curTool()        {        for (int i = 0; i < nactions; ++i) {              Action* action = actions[i]; -            if (action->isOn()) +            if (action->isChecked())                    return action->id();              }        return -1; | 
