diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
commit | 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch) | |
tree | 073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kdict/actions.cpp | |
parent | 3467e6464beac3a162839bf7078e22e3a74d73e7 (diff) | |
download | tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip |
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdict/actions.cpp')
-rw-r--r-- | kdict/actions.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kdict/actions.cpp b/kdict/actions.cpp index 2496d1b7..0ae5c793 100644 --- a/kdict/actions.cpp +++ b/kdict/actions.cpp @@ -24,9 +24,9 @@ #include <ktoolbar.h> -DictComboAction::DictComboAction( const TQString &text, TQObject *parent, const char *name, +DictComboAction::DictComboAction( const TQString &text, TQObject *tqparent, const char *name, bool editable, bool autoSized ) - : KAction( text, 0, parent, name ), m_editable(editable), m_autoSized(autoSized), m_compMode(KGlobalSettings::completionMode()) + : KAction( text, 0, tqparent, name ), m_editable(editable), m_autoSized(autoSized), m_compMode(KGlobalSettings::completionMode()) { } @@ -46,7 +46,7 @@ int DictComboAction::plug( TQWidget *widget, int index ) m_combo = new KComboBox(m_editable,bar); m_combo->setCompletionMode(m_compMode); - bar->insertWidget( id_, m_combo->sizeHint().width(), m_combo, index ); + bar->insertWidget( id_, m_combo->tqsizeHint().width(), m_combo, index ); bar->setItemAutoSized(id_,m_autoSized); if ( m_combo ) { @@ -103,7 +103,7 @@ TQString DictComboAction::currentText() const if (m_combo) return m_combo->currentText(); else - return TQString::null; + return TQString(); } void DictComboAction::selectAll() @@ -155,7 +155,7 @@ void DictComboAction::setList(TQStringList items) if (m_editable && m_combo->completionObject()) m_combo->completionObject()->setItems(items); if (!m_autoSized) - m_combo->setFixedWidth(m_combo->sizeHint().width()); + m_combo->setFixedWidth(m_combo->tqsizeHint().width()); } } @@ -193,8 +193,8 @@ void DictComboAction::slotComboActivated(const TQString &s) //********************************************************************************* -DictLabelAction::DictLabelAction( const TQString &text, TQObject *parent, const char *name ) - : KAction( text, 0, parent, name ) +DictLabelAction::DictLabelAction( const TQString &text, TQObject *tqparent, const char *name ) + : KAction( text, 0, tqparent, name ) { } @@ -213,9 +213,9 @@ int DictLabelAction::plug( TQWidget *widget, int index ) int id = KAction::getToolButtonID(); TQLabel *label = new TQLabel( text(), widget, "kde toolbar widget" ); - label->setMinimumWidth(label->sizeHint().width()); - label->setBackgroundMode( Qt::PaletteButton ); - label->setAlignment(AlignCenter | AlignVCenter); + label->setMinimumWidth(label->tqsizeHint().width()); + label->setBackgroundMode( TQt::PaletteButton ); + label->tqsetAlignment(AlignCenter | AlignVCenter); label->adjustSize(); tb->insertWidget( id, label->width(), label, index ); @@ -263,8 +263,8 @@ void DictLabelAction::setBuddy(TQWidget *buddy) DictButtonAction::DictButtonAction( const TQString& text, TQObject* receiver, - const char* slot, TQObject* parent, const char* name ) - : KAction( text, 0, receiver, slot, parent, name ) + const char* slot, TQObject* tqparent, const char* name ) + : KAction( text, 0, receiver, slot, tqparent, name ) { } @@ -320,7 +320,7 @@ void DictButtonAction::unplug( TQWidget *widget ) int DictButtonAction::widthHint() { if (m_button) - return m_button->sizeHint().width(); + return m_button->tqsizeHint().width(); else return 0; } |