Subversion Repositories svn1-original

Rev

Rev 195 | Rev 228 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 195 Rev 198
Line 29... Line 29...
29
    tableWidget->verticalHeader()->setDefaultSectionSize(20);
29
    tableWidget->verticalHeader()->setDefaultSectionSize(20);
30
    tableWidget->verticalHeader()->setProperty("showSortIndicator", QVariant(false));
30
    tableWidget->verticalHeader()->setProperty("showSortIndicator", QVariant(false));
31
    verticalLayout2->addWidget(tableWidget);
31
    verticalLayout2->addWidget(tableWidget);
32
 
32
 
33
    buttonBox = new QDialogButtonBox();
33
    buttonBox = new QDialogButtonBox();
34
    pb_load = buttonBox->addButton("Load",QDialogButtonBox::ActionRole );
-
 
35
    pb_restore = buttonBox->addButton("Restore",QDialogButtonBox::ActionRole );
34
    pb_restore = buttonBox->addButton("Restore",QDialogButtonBox::ActionRole );
36
    pb_save = buttonBox->addButton("Save",QDialogButtonBox::ActionRole );
35
    pb_save = buttonBox->addButton("Save",QDialogButtonBox::ActionRole );
37
    verticalLayout->addWidget(buttonBox);
36
    verticalLayout->addWidget(buttonBox);
38
 
37
 
39
    connect(pb_save, SIGNAL(clicked()), this, SLOT(save()) );
38
    connect(pb_save, SIGNAL(clicked()), this, SLOT(save()) );
40
    connect(pb_restore, SIGNAL(clicked()), this, SLOT(cancel()) );
39
    connect(pb_restore, SIGNAL(clicked()), this, SLOT(cancel()) );
41
    connect(pb_load, SIGNAL(clicked()), this, SLOT(populate()) );
-
 
42
    connect(tableWidget, SIGNAL(itemChanged(QTableWidgetItem*)), this, SLOT(tableItemChanged(QTableWidgetItem *)));
40
    connect(tableWidget, SIGNAL(itemChanged(QTableWidgetItem*)), this, SLOT(tableItemChanged(QTableWidgetItem *)));
43
    updateChanged (false);
41
    updateChanged (false);
44
}
42
}
45
 
43
 
46
qmDisqualified::~qmDisqualified()
44
qmDisqualified::~qmDisqualified()
Line 167... Line 165...
167
    if (newDirty != dirty)
165
    if (newDirty != dirty)
168
    {
166
    {
169
        dirty = newDirty;
167
        dirty = newDirty;
170
        if (dirty)
168
        if (dirty)
171
        {
169
        {
172
            //ui->Changed->setVisible(true);
-
 
173
            pb_save->setEnabled(true);
170
            pb_save->setEnabled(true);
174
            pb_save->setStyleSheet("background-color: rgb(255, 0, 0);");
171
            pb_save->setStyleSheet("background-color: rgb(255, 0, 0);");
175
        }
172
        }
176
        else
173
        else
177
        {
174
        {
178
            //ui->Changed->setVisible(false);
-
 
179
            pb_save->setEnabled(false);
175
            pb_save->setEnabled(false);
180
            pb_save->setStyleSheet("");
176
            pb_save->setStyleSheet("");
181
        }
177
        }
182
    }
178
    }
183
}
179
}