commit | 4b7916bfa68c5d2ccbd8148472c52630ebba4e3a | [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 | 9e0850ee48749c93ced13b01dbced65b8a2ef698 | |
parent | 832505ff007c18c776022b9474a14af6045102ec [diff] [blame] |
default button for setting dialog to be ok
diff --git a/demo/settingdialog.cpp b/demo/settingdialog.cpp index d9640dc..9cb54f4 100644 --- a/demo/settingdialog.cpp +++ b/demo/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()));