commit | 5b0e32320fde376ada1ec29a127a6109c3402da9 | [log] [tgz] |
---|---|---|
author | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Tue Jun 05 20:28:44 2012 -0700 |
committer | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Tue Jun 05 20:28:44 2012 -0700 |
tree | 2c61bb610aa6d3ecbe00092d41e19adc2acd13b6 | |
parent | a4fb1249ba4635f9436daa1cd0146a5ccdc990d2 [diff] |
default button for setting dialog to be ok
diff --git a/settingdialog.cpp b/settingdialog.cpp index d9640dc..9cb54f4 100644 --- a/settingdialog.cpp +++ b/settingdialog.cpp
@@ -15,7 +15,7 @@ QValidator *validator = new QRegExpValidator(rx, this); prefixEdit->setValidator(validator); - cancelButton->setDefault(true); + okButton->setDefault(true); connect(cancelButton, SIGNAL(clicked()), this, SLOT(reject())); connect(okButton, SIGNAL(clicked()), this, SLOT(update()));