From 5547c613c9ca7902d7cb4d99e09484efde8658e5 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Tue, 21 Nov 2006 20:24:01 +0000 Subject: [PATCH] rename ok/cancel to okButton/cancelButton so I can use cancel as a function name. --- .../seqproperties/PropertiesWindow.cpp | 22 +++++++++---------- .../seqproperties/PropertiesWindow.hpp | 6 ++--- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/qui/seqbrowser/seqproperties/PropertiesWindow.cpp b/qui/seqbrowser/seqproperties/PropertiesWindow.cpp index 24d1521..45427b9 100644 --- a/qui/seqbrowser/seqproperties/PropertiesWindow.cpp +++ b/qui/seqbrowser/seqproperties/PropertiesWindow.cpp @@ -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() diff --git a/qui/seqbrowser/seqproperties/PropertiesWindow.hpp b/qui/seqbrowser/seqproperties/PropertiesWindow.hpp index 638a45e..f369af2 100644 --- a/qui/seqbrowser/seqproperties/PropertiesWindow.hpp +++ b/qui/seqbrowser/seqproperties/PropertiesWindow.hpp @@ -26,7 +26,7 @@ public slots: //! create a subanalysis and run it void apply(); //! clear our model and close the window - void abort(); + void cancel(); //! provide a way for the model to tell us to update our gui void modelUpdated(const QModelIndex&, int, int); //! update our title @@ -36,8 +36,8 @@ private: //! keep track of what analysis we're attached to MussaRef analysis; QTableView *table; - QPushButton *ok; - QPushButton *cancel; + QPushButton *okButton; + QPushButton *cancelButton; SequencePropertiesModel model; }; -- 2.30.2