mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-27 09:16:18 +00:00
Changed: Minor changes
This commit is contained in:
parent
5d35e01a4d
commit
4998cf6d2e
4 changed files with 19 additions and 1 deletions
|
@ -21,6 +21,12 @@
|
||||||
|
|
||||||
class CProfilesModel;
|
class CProfilesModel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Dialog displayed when editing existing profiles.
|
||||||
|
*
|
||||||
|
* \author Cedric 'Kervala' OCHS
|
||||||
|
* \date 2016
|
||||||
|
*/
|
||||||
class CProfilesDialog : public QDialog, public Ui::ProfilesDialog
|
class CProfilesDialog : public QDialog, public Ui::ProfilesDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -24,7 +24,7 @@ QVariant CProfilesModel::data(const QModelIndex &index, int role) const
|
||||||
|
|
||||||
const CProfile &profile = m_profiles.at(index.row());
|
const CProfile &profile = m_profiles.at(index.row());
|
||||||
|
|
||||||
return QString("%1 (%2)").arg(profile.name).arg(profile.id);
|
return QString("%1 (#%2)").arg(profile.name).arg(profile.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CProfilesModel::removeRows(int row, int count, const QModelIndex &parent)
|
bool CProfilesModel::removeRows(int row, int count, const QModelIndex &parent)
|
||||||
|
|
|
@ -3,6 +3,12 @@
|
||||||
|
|
||||||
#include "configfile.h"
|
#include "configfile.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Profiles model
|
||||||
|
*
|
||||||
|
* \author Cedric 'Kervala' OCHS
|
||||||
|
* \date 2016
|
||||||
|
*/
|
||||||
class CProfilesModel : public QAbstractListModel
|
class CProfilesModel : public QAbstractListModel
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -19,6 +19,12 @@
|
||||||
|
|
||||||
#include "ui_settings.h"
|
#include "ui_settings.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Settings dialog
|
||||||
|
*
|
||||||
|
* \author Cedric 'Kervala' OCHS
|
||||||
|
* \date 2016
|
||||||
|
*/
|
||||||
class CSettingsDialog : public QDialog, public Ui::SettingsDialog
|
class CSettingsDialog : public QDialog, public Ui::SettingsDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
Loading…
Reference in a new issue