summaryrefslogtreecommitdiffstats
path: root/languages/sql/sqlactions.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /languages/sql/sqlactions.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/sql/sqlactions.cpp')
-rw-r--r--languages/sql/sqlactions.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/languages/sql/sqlactions.cpp b/languages/sql/sqlactions.cpp
index 8cfac095..df8ba309 100644
--- a/languages/sql/sqlactions.cpp
+++ b/languages/sql/sqlactions.cpp
@@ -11,9 +11,9 @@
#include "sqlactions.h"
-#include <qpopupmenu.h>
-#include <qstringlist.h>
-#include <qsqldatabase.h>
+#include <tqpopupmenu.h>
+#include <tqstringlist.h>
+#include <tqsqldatabase.h>
#include <kdebug.h>
#include <klocale.h>
@@ -25,9 +25,9 @@
#include "kdevlanguagesupport.h"
#include "sqlsupport_part.h"
-SqlListAction::SqlListAction(SQLSupportPart *part, const QString &text,
+SqlListAction::SqlListAction(SQLSupportPart *part, const TQString &text,
const KShortcut& cut,
- const QObject *receiver, const char *slot,
+ const TQObject *receiver, const char *slot,
KActionCollection *parent, const char *name)
: KWidgetAction( m_combo = new KComboBox(), text, cut, 0, 0, parent, name), m_part(part)
{
@@ -39,8 +39,8 @@ SqlListAction::SqlListAction(SQLSupportPart *part, const QString &text,
m_combo->setMinimumWidth( 200 );
m_combo->setMaximumWidth( 400 );
- connect( m_combo, SIGNAL(activated(const QString&)), receiver, slot );
- connect( m_combo, SIGNAL(activated(int)), this, SLOT(activated(int)) );
+ connect( m_combo, TQT_SIGNAL(activated(const TQString&)), receiver, slot );
+ connect( m_combo, TQT_SIGNAL(activated(int)), this, TQT_SLOT(activated(int)) );
setShortcutConfigurable( false );
setAutoSized( true );
@@ -49,7 +49,7 @@ SqlListAction::SqlListAction(SQLSupportPart *part, const QString &text,
}
-void SqlListAction::setCurrentConnectionName(const QString &name)
+void SqlListAction::setCurrentConnectionName(const TQString &name)
{
int idx = m_part->connections().findIndex( name );
if ( idx < 0 )
@@ -59,10 +59,10 @@ void SqlListAction::setCurrentConnectionName(const QString &name)
}
-QString SqlListAction::currentConnectionName() const
+TQString SqlListAction::currentConnectionName() const
{
if ( m_combo->currentItem() <= 0 )
- return QString::null;
+ return TQString::null;
return m_part->connections()[ m_combo->currentItem() - 1 ];
}
@@ -70,22 +70,22 @@ void SqlListAction::activated(int idx)
{
if (idx < 1 || (int)m_part->connections().count() <= idx)
return;
- const QSqlDatabase *db = QSqlDatabase::database(m_part->connections()[idx], true);
+ const TQSqlDatabase *db = TQSqlDatabase::database(m_part->connections()[idx], true);
m_combo->changeItem( db->isOpen() ? SmallIcon( "ok" ) : SmallIcon( "no" ),
m_combo->text(idx), idx );
}
void SqlListAction::refresh()
{
- const QStringList& dbc = m_part->connections();
+ const TQStringList& dbc = m_part->connections();
m_combo->clear();
m_combo->insertItem( i18n("<no database server>") );
- QString cName;
- for ( QStringList::ConstIterator it = dbc.begin(); it != dbc.end(); ++it ) {
+ TQString cName;
+ for ( TQStringList::ConstIterator it = dbc.begin(); it != dbc.end(); ++it ) {
- QSqlDatabase* db = QSqlDatabase::database( (*it), false );
+ TQSqlDatabase* db = TQSqlDatabase::database( (*it), false );
if ( !db ) {
kdDebug( 9000 ) << "Could not find database connection " << (*it) << endl;
m_combo->insertItem( SmallIcon( "no" ), i18n("<error - no connection %1>").arg( *it ) );