mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
32 lines
625 B
C++
32 lines
625 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() override;
|
|
|
|
QString selectedDisplayFormat() const;
|
|
|
|
private slots:
|
|
void updateSqlCode();
|
|
|
|
private:
|
|
Ui::ColumnDisplayFormatDialog* ui;
|
|
QString column_name;
|
|
QMap<QString, QString> formatFunctions;
|
|
};
|
|
|
|
#endif
|