summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/connectiondialog.ui.h
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 /kdevdesigner/designer/connectiondialog.ui.h
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 'kdevdesigner/designer/connectiondialog.ui.h')
-rw-r--r--kdevdesigner/designer/connectiondialog.ui.h62
1 files changed, 31 insertions, 31 deletions
diff --git a/kdevdesigner/designer/connectiondialog.ui.h b/kdevdesigner/designer/connectiondialog.ui.h
index 3c6cd932..f8df4230 100644
--- a/kdevdesigner/designer/connectiondialog.ui.h
+++ b/kdevdesigner/designer/connectiondialog.ui.h
@@ -64,25 +64,25 @@ static const char * invalid_connection[] = {
" "
};
-static QPixmap *invalidConnection = 0;
-static QPixmap *validConnection = 0;
+static TQPixmap *invalidConnection = 0;
+static TQPixmap *validConnection = 0;
void ConnectionDialog::init()
{
- connect( connectionsTable, SIGNAL( currentChanged( int, int ) ),
- this, SLOT( updateEditSlotsButton() ) );
- connect( connectionsTable, SIGNAL( resorted() ),
- this, SLOT( updateConnectionContainers() ) );
+ connect( connectionsTable, TQT_SIGNAL( currentChanged( int, int ) ),
+ this, TQT_SLOT( updateEditSlotsButton() ) );
+ connect( connectionsTable, TQT_SIGNAL( resorted() ),
+ this, TQT_SLOT( updateConnectionContainers() ) );
buttonEditSlots->setEnabled( FALSE );
if ( !invalidConnection ) {
- invalidConnection = new QPixmap( invalid_connection );
- validConnection = new QPixmap( valid_connection );
+ invalidConnection = new TQPixmap( invalid_connection );
+ validConnection = new TQPixmap( valid_connection );
}
- QValueList<MetaDataBase::Connection> conns =
+ TQValueList<MetaDataBase::Connection> conns =
MetaDataBase::connections( MainWindow::self->formWindow() );
- for ( QValueList<MetaDataBase::Connection>::Iterator it = conns.begin();
+ for ( TQValueList<MetaDataBase::Connection>::Iterator it = conns.begin();
it != conns.end(); ++it ) {
ConnectionContainer *c = addConnection( (*it).sender, (*it).receiver,
(*it).signal, (*it).slot );
@@ -96,13 +96,13 @@ void ConnectionDialog::init()
void ConnectionDialog::addConnection()
{
- addConnection( defaultSender, defaultReceiver, QString::null, QString::null );
+ addConnection( defaultSender, defaultReceiver, TQString::null, TQString::null );
ensureConnectionVisible();
}
-ConnectionContainer *ConnectionDialog::addConnection( QObject *sender, QObject *receiver,
- const QString &signal,
- const QString &slot )
+ConnectionContainer *ConnectionDialog::addConnection( TQObject *sender, TQObject *receiver,
+ const TQString &signal,
+ const TQString &slot )
{
connectionsTable->insertRows( connectionsTable->numRows() );
@@ -144,17 +144,17 @@ ConnectionContainer *ConnectionDialog::addConnection( QObject *sender, QObject *
re->setSlot( sl );
sl->setSlot( sl );
- connect( re, SIGNAL( currentReceiverChanged( QObject * ) ),
- this, SLOT( updateEditSlotsButton() ) );
+ connect( re, TQT_SIGNAL( currentReceiverChanged( TQObject * ) ),
+ this, TQT_SLOT( updateEditSlotsButton() ) );
ConnectionContainer *c = new ConnectionContainer( this, se, si, re, sl, row );
connections.append( c );
- connect( c, SIGNAL( changed( ConnectionContainer * ) ),
- this, SLOT( updateConnectionState( ConnectionContainer * ) ) );
+ connect( c, TQT_SIGNAL( changed( ConnectionContainer * ) ),
+ this, TQT_SLOT( updateConnectionState( ConnectionContainer * ) ) );
connectionsTable->setCurrentCell( row, 0 );
- connectionsTable->verticalHeader()->setLabel( row, *invalidConnection, QString::null );
+ connectionsTable->verticalHeader()->setLabel( row, *invalidConnection, TQString::null );
if ( sender )
se->setSenderEx( sender );
@@ -178,19 +178,19 @@ void ConnectionDialog::updateConnectionState( ConnectionContainer *c )
c->repaint();
if ( c->isValid() )
connectionsTable->verticalHeader()->setLabel( c->row(),
- *validConnection, QString::null );
+ *validConnection, TQString::null );
else
connectionsTable->verticalHeader()->setLabel( c->row(),
- *invalidConnection, QString::null );
+ *invalidConnection, TQString::null );
}
void ConnectionDialog::okClicked()
{
- QValueList<MetaDataBase::Connection> oldConnections =
+ TQValueList<MetaDataBase::Connection> oldConnections =
MetaDataBase::connections( MainWindow::self->formWindow() );
- QPtrList<Command> newConnectionCmds;
- QPtrList<Command> oldConnectionCmds;
+ TQPtrList<Command> newConnectionCmds;
+ TQPtrList<Command> oldConnectionCmds;
for ( ConnectionContainer *c = connections.first(); c; c = connections.next() ) {
MetaDataBase::Connection conn;
@@ -214,9 +214,9 @@ void ConnectionDialog::okClicked()
}
- QValueList<MetaDataBase::Connection> conns =
+ TQValueList<MetaDataBase::Connection> conns =
MetaDataBase::connections( MainWindow::self->formWindow() );
- for ( QValueList<MetaDataBase::Connection>::Iterator it = conns.begin();
+ for ( TQValueList<MetaDataBase::Connection>::Iterator it = conns.begin();
it != conns.end(); ++it ) {
RemoveConnectionCommand *cmd = new RemoveConnectionCommand( i18n( "Remove Signal/Slot "
"Connection" ),
@@ -231,7 +231,7 @@ void ConnectionDialog::okClicked()
MacroCommand *cmd2 = new MacroCommand( i18n( "Remove Signal/Slot Connections" ),
MainWindow::self->formWindow(),
oldConnectionCmds );
- QPtrList<Command> cmds;
+ TQPtrList<Command> cmds;
cmds.append( cmd2 );
cmds.append( cmd1 );
MacroCommand *cmd = new MacroCommand( i18n( "Edit Signal/Slot Connections" ),
@@ -269,14 +269,14 @@ void ConnectionDialog::editSlots()
connectionsTable->setCurrentCell( connectionsTable->currentRow(), 0 );
for ( ConnectionContainer *c = connections.first(); c; c = connections.next() ) {
if ( c->receiverItem()->currentText() !=
- QString( MainWindow::self->formWindow()->mainContainer()->name() ) )
+ TQString( MainWindow::self->formWindow()->mainContainer()->name() ) )
continue;
c->slotItem()->customSlotsChanged();
}
connectionsTable->setCurrentCell( connectionsTable->currentRow(), currentCol );
}
-void ConnectionDialog::setDefault( QObject *sender, QObject *receiver )
+void ConnectionDialog::setDefault( TQObject *sender, TQObject *receiver )
{
defaultSender = sender;
defaultReceiver = receiver;
@@ -291,13 +291,13 @@ void ConnectionDialog::updateEditSlotsButton()
if ( !c || !c->receiverItem() )
return;
buttonEditSlots->setEnabled( c->receiverItem()->currentText() ==
- QString( MainWindow::self->formWindow()->
+ TQString( MainWindow::self->formWindow()->
mainContainer()->name() ) );
}
void ConnectionDialog::updateConnectionContainers()
{
- QPtrList<ConnectionContainer> newContainers;
+ TQPtrList<ConnectionContainer> newContainers;
for ( int i = 0; i < connectionsTable->numRows(); ++i ) {
for ( ConnectionContainer *c = connections.first(); c; c = connections.next() ) {
if ( c->senderItem() == connectionsTable->item( i, 0 ) ) {