KDEGames
kgamehighscoredialog.h
158 * ksdialog.setHiddenConfigGroups(QList<QByteArray>{QByteArrayLiteral("Very Easy"), QByteArrayLiteral("Easy")});
194 * Hide a field so that it is not shown on the table (but is still stored in the configuration file).
203 * @param flags set whether the user should be prompted for their name and how the scores should be sorted
KGameDifficulty manages difficulty levels of a game in a standard way.
Definition kgamedifficulty.h:89
void setHiddenConfigGroups(const QList< QByteArray > &hiddenGroups)
Hide some config groups so that they are not shown on the dialog (but are still stored in the configu...
Definition kgamehighscoredialog.cpp:195
KGameHighScoreDialog(int fields=Name, QWidget *parent=nullptr)
Definition kgamehighscoredialog.cpp:94
@ LessIsMore
A lower numerical score means higher placing on the table.
Definition kgamehighscoredialog.h:104
void addLocalizedConfigGroupNames(const QMap< QByteArray, QString > &groups)
You must add the translations of all group names to the dialog.
Definition kgamehighscoredialog.cpp:168
void addField(int field, const QString &header, const QString &key)
Define an extra FieldInfo entry.
Definition kgamehighscoredialog.cpp:223
void addLocalizedConfigGroupName(const QPair< QByteArray, QString > &group)
You must add the translations of all group names to the dialog.
Definition kgamehighscoredialog.cpp:158
void setConfigGroupWeights(const QMap< int, QByteArray > &weights)
It is a good idea giving config group weights, otherwise tabs get ordered by their tab name that is n...
Definition kgamehighscoredialog.cpp:202
void setConfigGroup(const QPair< QByteArray, QString > &group)
The group name must be passed though i18n() in order for the group name to be translated.
Definition kgamehighscoredialog.cpp:149
void setComment(const QString &comment)
Definition kgamehighscoredialog.cpp:216
int addScore(const FieldInfo &newInfo=FieldInfo(), AddScoreFlags flags={})
Adds a new score to the list.
Definition kgamehighscoredialog.cpp:494
QFlags< AddScoreFlag > AddScoreFlags
Stores a combination of AddScoreFlag values.
Definition kgamehighscoredialog.h:109
void hideField(int field)
Hide a field so that it is not shown on the table (but is still stored in the configuration file).
Definition kgamehighscoredialog.cpp:232
QDialog(QWidget *parent, Qt::WindowFlags f)
virtual int exec()
virtual void keyPressEvent(QKeyEvent *e) override
Q_OBJECTQ_OBJECT
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
void show()
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Thu Jan 23 2025 18:49:14 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Thu Jan 23 2025 18:49:14 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.