rename ok/cancel to okButton/cancelButton
[mussa.git] / qui / seqbrowser / seqproperties / PropertiesWindow.cpp
index 24d1521f286144bc1fb54879a67a36d57dbf0f6a..45427b933b5b65adb62ad72aea8842a4ce8b41ad 100644 (file)
@@ -14,26 +14,26 @@ PropertiesWindow::PropertiesWindow(/* MussaRef m, */
   : QWidget(parent),
     /* analysis(m), */
     table(0),
-    ok(0),
-    cancel(0),
+    okButton(0),
+    cancelButton(0),
     model(glseqs)
 {
   QGridLayout *parameterLayout = new QGridLayout;
 
-  ok = new QPushButton(tr("&OK"), this);
-  ok->setEnabled( false );
-  connect(ok, SIGNAL(clicked()), this, SLOT(apply()));
+  okButton = new QPushButton(tr("&OK"), this);
+  okButton->setEnabled( false );
+  connect(okButton, SIGNAL(clicked()), this, SLOT(apply()));
 
-  cancel = new QPushButton(tr("Cancel"), this);
-  connect(cancel, SIGNAL(clicked()), this, SLOT(cancel()));
+  cancelButton = new QPushButton(tr("Cancel"), this);
+  connect(cancelButton, SIGNAL(clicked()), this, SLOT(cancel()));
 
   table = new QTableView(this);
   table->setModel(&model);
 
   // layout buttons
   QHBoxLayout *buttonLayout = new QHBoxLayout;
-  buttonLayout->addWidget(ok);
-  buttonLayout->addWidget(cancel);
+  buttonLayout->addWidget(okButton);
+  buttonLayout->addWidget(cancelButton);
 
   // layout verticle space
   QVBoxLayout *verticalLayout = new QVBoxLayout;
@@ -55,7 +55,7 @@ SequencePropertiesModel& PropertiesWindow::getModel()
   return model;
 }
 
-void PropertiesWindow::abort()
+void PropertiesWindow::cancel()
 {
   model.clear();
   hide();
@@ -75,7 +75,7 @@ void PropertiesWindow::apply()
 void PropertiesWindow::modelUpdated(const QModelIndex&, int, int )
 {
   // if the model is empty we shouldn't be able to click ok
-  if (ok) ok->setEnabled(not model.empty());
+  if (okButton) okButton->setEnabled(not model.empty());
 }
 
 void PropertiesWindow::updateTitle()