Properties::Properties(QWidget *parent) : QDialog(parent) { setWindowTitle(QString(PropellerIdeGuiKey)+tr(" Properties")); configSettings(); setupFolders(); setupOptions(); setupHighlight(); QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept())); connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject())); QVBoxLayout *layout = new QVBoxLayout(this); layout->addWidget(&tabWidget); layout->addWidget(buttonBox); setLayout(layout); setWindowFlags(Qt::Tool); resize(500,260); }
/* * get propeller-elf-gcc path, propeller-load directory path, and user workspace path. */ Properties::Properties(QWidget *parent) : QDialog(parent) { this->setWindowTitle(QString(ASideGuiKey)+tr(" Properties")); /* clean for testing only */ // cleanSettings(); setupFolders(); setupGeneral(); //setupOptional(); // add later setupHighlight(); QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept())); connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject())); QVBoxLayout *layout = new QVBoxLayout(this); layout->addWidget(&tabWidget); layout->addWidget(buttonBox); setWindowFlags(Qt::Tool); resize(600,260); }