mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Formatting the code.
This commit is contained in:
@@ -30,7 +30,7 @@ class CsvParserModel : public QAbstractTableModel, public CsvParser
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit CsvParserModel(QObject *parent = nullptr);
|
||||
explicit CsvParserModel(QObject* parent = nullptr);
|
||||
~CsvParserModel();
|
||||
void setFilename(const QString& filename);
|
||||
QString getFileInfo();
|
||||
@@ -39,9 +39,9 @@ public:
|
||||
void setHeaderLabels(QStringList l);
|
||||
void mapColumns(int csvColumn, int dbColumn);
|
||||
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
||||
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
|
||||
int columnCount(const QModelIndex& parent = QModelIndex()) const override;
|
||||
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
|
||||
|
||||
public slots:
|
||||
@@ -51,11 +51,10 @@ private:
|
||||
int m_skipped;
|
||||
QString m_filename;
|
||||
QStringList m_columnHeader;
|
||||
//first column of model must be empty (aka combobox row "Not present in CSV file")
|
||||
// first column of model must be empty (aka combobox row "Not present in CSV file")
|
||||
void addEmptyColumn();
|
||||
//mapping CSV columns to keepassx columns
|
||||
// mapping CSV columns to keepassx columns
|
||||
QMap<int, int> m_columnMap;
|
||||
};
|
||||
|
||||
#endif //KEEPASSX_CSVPARSERMODEL_H
|
||||
|
||||
#endif // KEEPASSX_CSVPARSERMODEL_H
|
||||
|
||||
Reference in New Issue
Block a user