MIsc changes

This commit is contained in:
eelke 2019-03-27 18:23:00 +01:00
parent 0f37f74dda
commit 089c793df7
8 changed files with 314 additions and 409 deletions

View file

@ -21,10 +21,10 @@ namespace {
t_BackupFormatItemVector g_BackupFormats = {
BackupFormatItem{ "p", "plain", "Output a plaintext SQL script, restore with psql" },
BackupFormatItem{ "c", "custom", "Postgresql's own format most flexible and compressed, restore with pg_restore" },
BackupFormatItem{ "d", "directory", "Generates a directory with a file for each table or blob" },
BackupFormatItem{ "t", "tar", "Similar to directory if untarred it results in a valid directory backup" }
BackupFormatItem{ "p", "plain (-Fp)", "Output a plaintext SQL script, restore with psql" },
BackupFormatItem{ "c", "custom (-Fc)", "Postgresql's own format most flexible and compressed, restore with pg_restore" },
BackupFormatItem{ "d", "directory (-Fd)", "Generates a directory with a file for each table or blob" },
BackupFormatItem{ "t", "tar (-Ft)", "Similar to directory if untarred it results in a valid directory backup" }
};
} // end of unnamed namespace
@ -34,6 +34,7 @@ namespace {
BackupFormatModel::BackupFormatModel(QObject *parent)
: QAbstractListModel(parent)
{
}
//QVariant BackupFormatModel::headerData(int section, Qt::Orientation orientation, int role) const

View file

@ -3,6 +3,7 @@
#include <QAbstractListModel>
class BackupFormatModel : public QAbstractListModel
{
Q_OBJECT
@ -21,6 +22,7 @@ public:
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
private:
};
#endif // BACKUPFORMATMODEL_H