#include "settingsdialog.h" settingsdialog::settingsdialog(QWidget *parent) : QDialog(parent)//, // label(new QLabel), // treeWidget(new QTreeWidget), // okButton(new QPushButton(tr("OK")) // ) { // treeWidget->setAlternatingRowColors(false); // treeWidget->setSelectionMode(QAbstractItemView::NoSelection); // treeWidget->setColumnCount(1); // treeWidget->header()->hide(); // okButton->setDefault(true); // connect(okButton, &QAbstractButton::clicked, this, &QWidget::close); // QGridLayout *mainLayout = new QGridLayout; // mainLayout->setColumnStretch(0, 1); // mainLayout->setColumnStretch(2, 1); // mainLayout->addWidget(label, 0, 0, 1, 3); // mainLayout->addWidget(treeWidget, 1, 0, 1, 3); // mainLayout->addWidget(okButton, 2, 1); // setLayout(mainLayout); // interfaceIcon.addPixmap(style()->standardPixmap(QStyle::SP_DirOpenIcon), // QIcon::Normal, QIcon::On); // interfaceIcon.addPixmap(style()->standardPixmap(QStyle::SP_DirClosedIcon), // QIcon::Normal, QIcon::Off); // featureIcon.addPixmap(style()->standardPixmap(QStyle::SP_FileIcon)); // setWindowTitle(tr("Plugin Information")); // findPlugins(path, fileNames); }