QKeySequence: Remove unused private helper methods

The functionality is available in QKeySequencepPrivate still, if needed.

Change-Id: Iefa2e5b31a550fd2a419d2aee028ce4c1ddfb7a2
Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
Tor Arne Vestbø 2023-10-06 15:44:36 +02:00
parent 6e33e3e899
commit 8850e86981
2 changed files with 0 additions and 20 deletions

View File

@ -1036,14 +1036,6 @@ Q_DECLARE_TYPEINFO(QModifKeyName, Q_RELOCATABLE_TYPE);
Q_GLOBAL_STATIC(QList<QModifKeyName>, globalModifs)
Q_GLOBAL_STATIC(QList<QModifKeyName>, globalPortableModifs)
/*!
Constructs a single key from the string \a str.
*/
int QKeySequence::decodeString(const QString &str)
{
return QKeySequencePrivate::decodeString(str, NativeText);
}
int QKeySequencePrivate::decodeString(QString accel, QKeySequence::SequenceFormat format)
{
Q_ASSERT(!accel.isEmpty());
@ -1192,16 +1184,6 @@ int QKeySequencePrivate::decodeString(QString accel, QKeySequence::SequenceForma
return ret;
}
/*!
Creates a shortcut string for \a key. For example,
Qt::CTRL+Qt::Key_O gives "Ctrl+O". The strings, "Ctrl", "Shift", etc. are
translated (using QObject::tr()) in the "QShortcut" context.
*/
QString QKeySequence::encodeString(int key)
{
return QKeySequencePrivate::encodeString(key, NativeText);
}
static inline void addKey(QString &str, const QString &theKey, QKeySequence::SequenceFormat format)
{
if (!str.isEmpty()) {

View File

@ -167,8 +167,6 @@ public:
bool isDetached() const;
private:
static int decodeString(const QString &ks);
static QString encodeString(int key);
int assign(const QString &str);
int assign(const QString &str, SequenceFormat format);
void setKey(QKeyCombination key, int index);