diff options
Diffstat (limited to 'kkbswitch/kbconfig.h')
| -rw-r--r-- | kkbswitch/kbconfig.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kkbswitch/kbconfig.h b/kkbswitch/kbconfig.h index 5ff3936..93fd13c 100644 --- a/kkbswitch/kbconfig.h +++ b/kkbswitch/kbconfig.h @@ -85,9 +85,12 @@ public: void drawIcons(IconStyle icon_style, TQValueVector<TQPixmap> *icons, TQStringList *iconpaths); void checkKeysEnabled(); + int getPrevGroup(int groupno) { + return groupno == 0 ? groupCount() - 1 : groupno - 1; + } int getNextGroup(int groupno) { return groupno >= groupCount() - 1 ? 0 : groupno + 1; - } + } private: // Private methods /** No descriptions */ //void guessGroupPixmaps(); |
