summaryrefslogtreecommitdiffstats
path: root/kdict/actions.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kdict/actions.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdict/actions.cpp')
-rw-r--r--kdict/actions.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/kdict/actions.cpp b/kdict/actions.cpp
index 5ca1aade..2496d1b7 100644
--- a/kdict/actions.cpp
+++ b/kdict/actions.cpp
@@ -17,14 +17,14 @@
#include "actions.h"
-#include <qlabel.h>
-#include <qpushbutton.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
#include <kcombobox.h>
#include <ktoolbar.h>
-DictComboAction::DictComboAction( const QString &text, QObject *parent, const char *name,
+DictComboAction::DictComboAction( const TQString &text, TQObject *parent, const char *name,
bool editable, bool autoSized )
: KAction( text, 0, parent, name ), m_editable(editable), m_autoSized(autoSized), m_compMode(KGlobalSettings::completionMode())
{
@@ -36,7 +36,7 @@ DictComboAction::~DictComboAction()
}
-int DictComboAction::plug( QWidget *widget, int index )
+int DictComboAction::plug( TQWidget *widget, int index )
{
if ( widget->inherits( "KToolBar" ) )
{
@@ -50,15 +50,15 @@ int DictComboAction::plug( QWidget *widget, int index )
bar->setItemAutoSized(id_,m_autoSized);
if ( m_combo ) {
- connect(bar->getCombo(id_), SIGNAL(activated(const QString&)), SLOT(slotComboActivated(const QString&)));
- connect(bar->getCombo(id_), SIGNAL(activated(int)), SLOT(slotComboActivated(int)));
+ connect(bar->getCombo(id_), TQT_SIGNAL(activated(const TQString&)), TQT_SLOT(slotComboActivated(const TQString&)));
+ connect(bar->getCombo(id_), TQT_SIGNAL(activated(int)), TQT_SLOT(slotComboActivated(int)));
if (m_editable)
- m_combo->setInsertionPolicy( QComboBox::NoInsertion );
+ m_combo->setInsertionPolicy( TQComboBox::NoInsertion );
}
addContainer( bar, id_ );
- connect( bar, SIGNAL( destroyed() ), this, SLOT( slotDestroyed() ) );
+ connect( bar, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) );
return containerCount() - 1;
}
@@ -66,7 +66,7 @@ int DictComboAction::plug( QWidget *widget, int index )
}
-void DictComboAction::unplug( QWidget *widget )
+void DictComboAction::unplug( TQWidget *widget )
{
if ( widget->inherits( "KToolBar" ) )
{
@@ -85,7 +85,7 @@ void DictComboAction::unplug( QWidget *widget )
}
-QWidget* DictComboAction::widget()
+TQWidget* DictComboAction::widget()
{
return m_combo;
}
@@ -98,12 +98,12 @@ void DictComboAction::setFocus()
}
-QString DictComboAction::currentText() const
+TQString DictComboAction::currentText() const
{
if (m_combo)
return m_combo->currentText();
else
- return QString::null;
+ return TQString::null;
}
void DictComboAction::selectAll()
@@ -116,7 +116,7 @@ void DictComboAction::selectAll()
}
-void DictComboAction::setEditText(const QString &s)
+void DictComboAction::setEditText(const TQString &s)
{
if (m_combo && m_editable)
m_combo->setEditText(s);
@@ -147,7 +147,7 @@ void DictComboAction::clear()
}
-void DictComboAction::setList(QStringList items)
+void DictComboAction::setList(TQStringList items)
{
if (m_combo) {
m_combo->clear();
@@ -184,7 +184,7 @@ void DictComboAction::slotComboActivated(int i)
}
-void DictComboAction::slotComboActivated(const QString &s)
+void DictComboAction::slotComboActivated(const TQString &s)
{
emit(activated(s));
}
@@ -193,7 +193,7 @@ void DictComboAction::slotComboActivated(const QString &s)
//*********************************************************************************
-DictLabelAction::DictLabelAction( const QString &text, QObject *parent, const char *name )
+DictLabelAction::DictLabelAction( const TQString &text, TQObject *parent, const char *name )
: KAction( text, 0, parent, name )
{
}
@@ -204,7 +204,7 @@ DictLabelAction::~DictLabelAction()
}
-int DictLabelAction::plug( QWidget *widget, int index )
+int DictLabelAction::plug( TQWidget *widget, int index )
{
if ( widget->inherits( "KToolBar" ) )
{
@@ -212,7 +212,7 @@ int DictLabelAction::plug( QWidget *widget, int index )
int id = KAction::getToolButtonID();
- QLabel *label = new QLabel( text(), widget, "kde toolbar widget" );
+ TQLabel *label = new TQLabel( text(), widget, "kde toolbar widget" );
label->setMinimumWidth(label->sizeHint().width());
label->setBackgroundMode( Qt::PaletteButton );
label->setAlignment(AlignCenter | AlignVCenter);
@@ -222,7 +222,7 @@ int DictLabelAction::plug( QWidget *widget, int index )
addContainer( tb, id );
- connect( tb, SIGNAL( destroyed() ), this, SLOT( slotDestroyed() ) );
+ connect( tb, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) );
m_label = label;
@@ -233,7 +233,7 @@ int DictLabelAction::plug( QWidget *widget, int index )
}
-void DictLabelAction::unplug( QWidget *widget )
+void DictLabelAction::unplug( TQWidget *widget )
{
if ( widget->inherits( "KToolBar" ) )
{
@@ -252,7 +252,7 @@ void DictLabelAction::unplug( QWidget *widget )
}
-void DictLabelAction::setBuddy(QWidget *buddy)
+void DictLabelAction::setBuddy(TQWidget *buddy)
{
if (m_label && buddy)
m_label->setBuddy(buddy);
@@ -262,8 +262,8 @@ void DictLabelAction::setBuddy(QWidget *buddy)
//*********************************************************************************
-DictButtonAction::DictButtonAction( const QString& text, QObject* receiver,
- const char* slot, QObject* parent, const char* name )
+DictButtonAction::DictButtonAction( const TQString& text, TQObject* receiver,
+ const char* slot, TQObject* parent, const char* name )
: KAction( text, 0, receiver, slot, parent, name )
{
}
@@ -274,7 +274,7 @@ DictButtonAction::~DictButtonAction()
}
-int DictButtonAction::plug( QWidget *widget, int index )
+int DictButtonAction::plug( TQWidget *widget, int index )
{
if ( widget->inherits( "KToolBar" ) )
{
@@ -282,14 +282,14 @@ int DictButtonAction::plug( QWidget *widget, int index )
int id = KAction::getToolButtonID();
- QPushButton *button = new QPushButton( text(), widget );
+ TQPushButton *button = new TQPushButton( text(), widget );
button->adjustSize();
- connect(button,SIGNAL(clicked()),this,SLOT(activate()));
+ connect(button,TQT_SIGNAL(clicked()),this,TQT_SLOT(activate()));
tb->insertWidget( id, button->width(), button, index );
addContainer( tb, id );
- connect( tb, SIGNAL( destroyed() ), this, SLOT( slotDestroyed() ) );
+ connect( tb, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) );
m_button = button;
@@ -300,7 +300,7 @@ int DictButtonAction::plug( QWidget *widget, int index )
}
-void DictButtonAction::unplug( QWidget *widget )
+void DictButtonAction::unplug( TQWidget *widget )
{
if ( widget->inherits( "KToolBar" ) )
{