summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KShortcut.java
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/org/kde/koala/KShortcut.java')
-rw-r--r--kdejava/koala/org/kde/koala/KShortcut.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/kdejava/koala/org/kde/koala/KShortcut.java b/kdejava/koala/org/kde/koala/KShortcut.java
index 641973e6..269cbd66 100644
--- a/kdejava/koala/org/kde/koala/KShortcut.java
+++ b/kdejava/koala/org/kde/koala/KShortcut.java
@@ -2,7 +2,7 @@
package org.kde.koala;
import org.kde.qt.Qt;
-import org.kde.qt.QKeySequence;
+import org.kde.qt.TQKeySequence;
import org.kde.qt.QtSupport;
/**
@@ -36,7 +36,7 @@ public class KShortcut implements QtSupport {
a KShortcut.
@short The maximum number of key sequences that can be contained in a KShortcut.
*/
- public static final int MAX_SEQUENCES = 2;
+ public static final int MAX_SETQUENCES = 2;
/**
Creates a new null shortcut.
@@ -66,10 +66,10 @@ public class KShortcut implements QtSupport {
@param keySeq the qt key sequence to add
@short Creates a new shortcut that contains only the given qt key sequence.
*/
- public KShortcut(QKeySequence keySeq) {
+ public KShortcut(TQKeySequence keySeq) {
newKShortcut(keySeq);
}
- private native void newKShortcut(QKeySequence keySeq);
+ private native void newKShortcut(TQKeySequence keySeq);
/**
Creates a new shortcut that contains only the given key
in its only sequence.
@@ -131,7 +131,7 @@ public class KShortcut implements QtSupport {
@param keySeq the qt key sequence to add
@short Initializes the shortcut with the given qt key sequence.
*/
- public native boolean init(QKeySequence keySeq);
+ public native boolean init(TQKeySequence keySeq);
/**
Initializes the shortcut with the given key as its only sequence.
@param key the key to add
@@ -163,7 +163,7 @@ public class KShortcut implements QtSupport {
Returns the number of sequences that are in this
shortcut.
@return the number of sequences
- MAX_SEQUENCES
+ MAX_SETQUENCES
@short Returns the number of sequences that are in this shortcut.
*/
@@ -173,7 +173,7 @@ public class KShortcut implements QtSupport {
@param i the number of the key sequence to retrieve
@return the <code>i</code>'th sequence or KKeySequence.null() if
there are less than <code>i</code> key sequences
- MAX_SEQUENCES
+ MAX_SETQUENCES
@short Returns the <code>i</code>'th key sequence of this shortcut.
*/
@@ -252,8 +252,8 @@ public class KShortcut implements QtSupport {
/**
Sets the <code>i</code> 'th key sequence of the shortcut. You can not introduce
gaps in the list of sequences, so you must use an <code>i</code> <= count().
- Also note that the maximum number of key sequences is MAX_SEQUENCES.
- @param i the position of the new key sequence(0 <= i <= count(), 0 <= i < MAX_SEQUENCES)
+ Also note that the maximum number of key sequences is MAX_SETQUENCES.
+ @param i the position of the new key sequence(0 <= i <= count(), 0 <= i < MAX_SETQUENCES)
@param keySeq the key sequence to set
@return true if successful, false otherwise
@@ -262,7 +262,7 @@ public class KShortcut implements QtSupport {
public native boolean setSeq(int i, KKeySequence keySeq);
/**
Appends the given key sequence. This sets it as either the keysequence or
- the alternate keysequence. If the shortcut already has MAX_SEQUENCES
+ the alternate keysequence. If the shortcut already has MAX_SETQUENCES
sequences then this call does nothing, and returns false.
@param keySeq the key sequence to add
@return true if successful, false otherwise
@@ -284,7 +284,7 @@ public class KShortcut implements QtSupport {
@short Appends the given key
@see #setSeq
- @see MAX_SEQUENCES
+ @see MAX_SETQUENCES
*/
public native boolean append(KKey spec);
/**
@@ -293,7 +293,7 @@ public class KShortcut implements QtSupport {
@return true if successful, false otherwise
@short Appends the sequences from the given shortcut.
- @see MAX_SEQUENCES
+ @see MAX_SETQUENCES
*/
public native boolean append(KShortcut cut);
/**