diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-03-26 12:35:35 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-03-26 14:10:15 +0100 |
commit | 38dca4b75c471ddf950e2f9f03801c550d7d26fd (patch) | |
tree | f5923ce5d84971f1f394baf7411146f078c02fab /part/actions.cpp | |
parent | e28665ce3b2e9ec6f09b4c021db7443cac3c4128 (diff) | |
download | kxmleditor-38dca4b75c471ddf950e2f9f03801c550d7d26fd.tar.gz kxmleditor-38dca4b75c471ddf950e2f9f03801c550d7d26fd.zip |
Initial TQt conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'part/actions.cpp')
-rw-r--r-- | part/actions.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/part/actions.cpp b/part/actions.cpp index 13f1260..7076e09 100644 --- a/part/actions.cpp +++ b/part/actions.cpp @@ -19,10 +19,10 @@ // include files for QT -#include <qwhatsthis.h> -#include <qdragobject.h> -#include <qcombobox.h> -#include <qapplication.h> +#include <tqwhatsthis.h> +#include <tqdragobject.h> +#include <tqcombobox.h> +#include <tqapplication.h> // include files for KDE #include <ktoolbar.h> @@ -36,11 +36,11 @@ // //------------------------------------------------------------------- -KXmlEditorComboAction::KXmlEditorComboAction(const QString& text, +KXmlEditorComboAction::KXmlEditorComboAction(const TQString& text, int accel, - const QObject *receiver, + const TQObject *receiver, const char *member, - QObject* parent, + TQObject* parent, const char* name) : KAction(text, accel, parent, name), m_pCombo(0) @@ -54,12 +54,12 @@ KXmlEditorComboAction::~KXmlEditorComboAction() //delete m_pCombo; // L.V. this cause crash !!! } -QComboBox* KXmlEditorComboAction::comboBox() +TQComboBox* KXmlEditorComboAction::comboBox() { return m_pCombo; } -int KXmlEditorComboAction::plug(QWidget *w, int index) +int KXmlEditorComboAction::plug(TQWidget *w, int index) { // if ( !w->inherits( "KToolBar" ) ); // return -1; @@ -69,11 +69,11 @@ int KXmlEditorComboAction::plug(QWidget *w, int index) int id = KAction::getToolButtonID(); //kdDebug() << "KXmlEditorComboAction::plug id=" << id << endl; - m_pCombo = new QComboBox( toolBar, "Path Combo" ); + m_pCombo = new TQComboBox( toolBar, "Path Combo" ); m_pCombo->setEditable(true); - m_pCombo->setInsertionPolicy(QComboBox::NoInsertion); + m_pCombo->setInsertionPolicy(TQComboBox::NoInsertion); toolBar->insertWidget( id, 70, m_pCombo, index ); - connect( m_pCombo, SIGNAL(activated(const QString&)), m_receiver, m_member ); + connect( m_pCombo, SIGNAL(activated(const TQString&)), m_receiver, m_member ); addContainer( toolBar, id ); @@ -81,12 +81,12 @@ int KXmlEditorComboAction::plug(QWidget *w, int index) toolBar->setItemAutoSized(id, true); - QWhatsThis::add( m_pCombo, whatsThis() ); + TQWhatsThis::add( m_pCombo, whatsThis() ); return containerCount() - 1; } -void KXmlEditorComboAction::unplug(QWidget *w) +void KXmlEditorComboAction::unplug(TQWidget *w) { // if ( !w->inherits( "KToolBar" ) ) // return; @@ -135,18 +135,18 @@ void KXmlEditorComboAction::slotFocusEdit() m_pCombo->setFocus(); } -QString KXmlEditorComboAction::currentText() const +TQString KXmlEditorComboAction::currentText() const { if ( containerCount() == 0 ) { kdWarning() << "[KXmlEditorComboAction::currentText] action not plugged" << endl; - return QString::null; + return TQString::null; } return m_pCombo->currentText(); } -const QPixmap * KXmlEditorComboAction::currentPixmap() const +const TQPixmap * KXmlEditorComboAction::currentPixmap() const { if ( containerCount() == 0 ) { @@ -157,7 +157,7 @@ const QPixmap * KXmlEditorComboAction::currentPixmap() const return m_pCombo->pixmap( m_pCombo->currentItem() ); } -void KXmlEditorComboAction::insertItem( const QPixmap & pixmap, const QString & text ) +void KXmlEditorComboAction::insertItem( const TQPixmap & pixmap, const TQString & text ) { if ( containerCount() == 0 ) { @@ -179,7 +179,7 @@ void KXmlEditorComboAction::insertItem( const QPixmap & pixmap, const QString & m_pCombo->removeItem(15); } -void KXmlEditorComboAction::removeItem( const QString & text ) +void KXmlEditorComboAction::removeItem( const TQString & text ) { if ( containerCount() == 0 ) { @@ -197,7 +197,7 @@ void KXmlEditorComboAction::removeItem( const QString & text ) m_pCombo->removeItem(nIndex); } -int KXmlEditorComboAction::findItem( const QString & text ) +int KXmlEditorComboAction::findItem( const TQString & text ) { if ( containerCount() == 0 ) { @@ -217,13 +217,13 @@ int KXmlEditorComboAction::findItem( const QString & text ) return nIndex; } -ToolbarLabel::ToolbarLabel( const QString& text ) - : QLabel( text, 0L, "kde toolbar widget" ) // Use this name for it to be styled! +ToolbarLabel::ToolbarLabel( const TQString& text ) + : TQLabel( text, 0L, "kde toolbar widget" ) // Use this name for it to be styled! // , m_mw(mw) { - setBackgroundMode( Qt::PaletteButton ); - setAlignment( (QApplication::reverseLayout() ? Qt::AlignRight : Qt::AlignLeft) | - Qt::AlignVCenter | Qt::ShowPrefix ); + setBackgroundMode( TQt::PaletteButton ); + setAlignment( (TQApplication::reverseLayout() ? TQt::AlignRight : TQt::AlignLeft) | + TQt::AlignVCenter | TQt::ShowPrefix ); adjustSize(); } |