diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-14 21:37:51 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-14 21:37:51 +0000 |
commit | c0acd81bbf8dd493e0932a0607a331409b8e100d (patch) | |
tree | f531ce5bcf55f6a467c4610a0022e83da3bf04e0 /kbarcode/tokendialog.cpp | |
parent | e295fa9ed9bf0a1ce153cd3e92a6fc24b9316933 (diff) | |
download | kbarcode-c0acd81bbf8dd493e0932a0607a331409b8e100d.tar.gz kbarcode-c0acd81bbf8dd493e0932a0607a331409b8e100d.zip |
Convert accidental instances of STQL to the proper SQL
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbarcode@1247182 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbarcode/tokendialog.cpp')
-rw-r--r-- | kbarcode/tokendialog.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kbarcode/tokendialog.cpp b/kbarcode/tokendialog.cpp index dcda408..83a6575 100644 --- a/kbarcode/tokendialog.cpp +++ b/kbarcode/tokendialog.cpp @@ -109,13 +109,13 @@ void TokenDialog::setupStackPage2() TQVButtonGroup* group = new TQVButtonGroup( i18n("What do you want to insert?"), stackPage2 ); radioVariable = new TQRadioButton( i18n("Insert a custom &variable"), group ); - radioSTQLQuery = new TQRadioButton( i18n("Insert a &SQL query"), group ); + radioSQLQuery = new TQRadioButton( i18n("Insert a &SQL query"), group ); radioJavaScript = new TQRadioButton( i18n("Insert a &JavaScript function"), group ); radioVariable->setChecked( true ); connect( radioVariable, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableControls() ) ); - connect( radioSTQLQuery, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableControls() ) ); + connect( radioSQLQuery, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableControls() ) ); connect( radioJavaScript, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableControls() ) ); page2->addWidget( stackPage2 ); @@ -265,7 +265,7 @@ void TokenDialog::accept() else if( radioVariableExisting->isChecked() ) m_result = listVariable->currentText(); } - else if( radioSTQLQuery->isChecked() ) + else if( radioSQLQuery->isChecked() ) m_result = TQString( "sqlquery:%2").tqarg( editQuery->text() ); else if( radioJavaScript->isChecked() ) m_result = TQString( "js:%2").tqarg( editJavaScript->text() ); @@ -301,7 +301,7 @@ void TokenDialog::showPage( TQWidget* w ) { if( radioVariable->isChecked() ) page3->raiseWidget( stack2Page3 ); - else if( radioSTQLQuery->isChecked() ) + else if( radioSQLQuery->isChecked() ) page3->raiseWidget( stack2Page4 ); else if( radioJavaScript->isChecked() ) { @@ -448,8 +448,8 @@ void TokenDialog::enableControls() listVariable->isEnabled() && listVariable->currentItem() != -1 ) setFinishEnabled( page3, true ); - buttonQuery->setEnabled( radioSTQLQuery->isChecked() && !editQuery->text().isEmpty() && SqlTables::isConnected() ); - if( radioSTQLQuery->isChecked() && !editQuery->text().isEmpty() ) + buttonQuery->setEnabled( radioSQLQuery->isChecked() && !editQuery->text().isEmpty() && SqlTables::isConnected() ); + if( radioSQLQuery->isChecked() && !editQuery->text().isEmpty() ) setFinishEnabled( page3, true ); if( radioJavaScript->isChecked() && !editJavaScript->text().isEmpty() ) |