mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 19:11:39 -06:00
The Colum Display Format Dialog recognizes now the current format in the combo instead of falling back to Custom. The display format items have been reorganized in groups with separators in between. This is because the strict alphabetical order looses sense in the translations.
32 lines
616 B
C++
32 lines
616 B
C++
#ifndef COLUMNDISPLAYFORMATDIALOG_H
|
|
#define COLUMNDISPLAYFORMATDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QString>
|
|
#include <QMap>
|
|
|
|
namespace Ui {
|
|
class ColumnDisplayFormatDialog;
|
|
}
|
|
|
|
class ColumnDisplayFormatDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ColumnDisplayFormatDialog(const QString& colname, QString current_format, QWidget* parent = nullptr);
|
|
~ColumnDisplayFormatDialog();
|
|
|
|
QString selectedDisplayFormat() const;
|
|
|
|
private slots:
|
|
void updateSqlCode();
|
|
|
|
private:
|
|
Ui::ColumnDisplayFormatDialog* ui;
|
|
QString column_name;
|
|
QMap<QString, QString> formatFunctions;
|
|
};
|
|
|
|
#endif
|