Exemplo n.º 1
0
SDRDialog::SDRDialog(QSettings& s,QWidget *parent) : QDialog(parent),settings(s)
{
    setupUi(this);
    pathLabel[0] = labelExe1;
    pathLabel[1] = labelExe2;
    ipPtr[0]           = lineEditIP1;
    ipPtr[1]           = lineEditIP2;
    portPtr[0]         = lineEditPort1;
    portPtr[1]         = lineEditPort2;
    configLabel[0]       = labelConfig1;
    configLabel[1]       = labelConfig2;
    connect(buttonExe1,SIGNAL(clicked()),this,SLOT(findExeFile1()));
    connect(buttonExe2,SIGNAL(clicked()),this,SLOT(findExeFile2()));
    connect(buttonConfig1,SIGNAL(clicked()),this,SLOT(findConfig1()));
    connect(buttonConfig2,SIGNAL(clicked()),this,SLOT(findConfig2()));
    connect(buttonBox, SIGNAL(accepted()), this, SLOT(updateSDR()));
    connect(buttonBox, SIGNAL(rejected()), this, SLOT(rejectChanges()));
    updateFromSettings();
}
Exemplo n.º 2
0
void SDRDialog::rejectChanges()
{
    updateFromSettings();
    reject();
}
Exemplo n.º 3
0
View::View(Fm::FolderView::ViewMode _mode, QWidget* parent):
  Fm::FolderView(_mode, parent) {

  Settings& settings = static_cast<Application*>(qApp)->settings();
  updateFromSettings(settings);
}