Editor for installations. More...
#include <projecteditor.h>
Public Member Functions | |
InstallationEditor (QWidget *parent=0) |
Editor for installations.
InstallationEditor::InstallationEditor | ( | QWidget * | parent = 0 |
) | [inline] |
: MappedBaseEditor(parent) { setObjectName("InstallationEditor"); setWindowTitle("Installation editor"); //set source setTable("tbl_installations", "inst_type", Qt::AscendingOrder); // widget setup QLabel *type = new QLabel("&Type*:", this); QLabel *desc = new QLabel("&Description*:", this); QLineEdit *typeEdit = new QLineEdit(this); QTextEdit *descEdit = new QTextEdit(this); type->setBuddy(typeEdit); desc->setBuddy(descEdit); // add widgets addWidget(type, 0, 0, 1, 1); addWidget(typeEdit, 0, 1, 1, 1, "inst_type"); addWidget(desc, 1, 0, 1, 1); addWidget(descEdit, 2, 0, 1, 2, "inst_desc", "plainText"); // setup connections connect(typeEdit, SIGNAL(textChanged(QString)), this, SLOT(updateButtons())); connect(descEdit, SIGNAL(textChanged()), this, SLOT(updateButtons())); // update changes select(); }