List of databases and roles moved to a "Server tab" within the database window.

Opened by selecting "Inspect Server" from the menu.
This commit is contained in:
eelke 2021-04-10 14:27:04 +02:00
parent 50cd865b1a
commit f0e5488ce0
12 changed files with 271 additions and 2 deletions

View file

@ -5,18 +5,31 @@
#include "UserConfiguration.h"
#include <QTextStream>
class CodeGeneratorViewModel {
public:
QProperty<QString> StructName;
private:
};
CodeGenerator::CodeGenerator(QWidget *parent)
: QWidget(parent)
, ui(new Ui::CodeGenerator)
, Model(new CodeGeneratorViewModel)
{
ui->setupUi(this);
ui->generatedCodeEditor->setFont(UserConfiguration::instance()->codeFont());
ui->generatedCodeEditor->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard);
auto v = Model->StructName.onValueChanged([this]() { ui->structNameEdit->setText(Model->StructName); });
}
CodeGenerator::~CodeGenerator()
{
delete Model;
delete ui;
}