diff options
Diffstat (limited to 'libkdepim/komposer/core/core.cpp')
-rw-r--r-- | libkdepim/komposer/core/core.cpp | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/libkdepim/komposer/core/core.cpp b/libkdepim/komposer/core/core.cpp index 6a14fdb38..f93e59cc9 100644 --- a/libkdepim/komposer/core/core.cpp +++ b/libkdepim/komposer/core/core.cpp @@ -47,13 +47,13 @@ #include <kstdaccel.h> #include <kdebug.h> -#include <qwidgetstack.h> -#include <qhbox.h> -#include <qwidget.h> +#include <tqwidgetstack.h> +#include <tqhbox.h> +#include <tqwidget.h> using namespace Komposer; -Core::Core( QWidget *parent, const char *name ) +Core::Core( TQWidget *parent, const char *name ) : KomposerIface( "KomposerIface" ), KMainWindow( parent, name ), m_currentEditor( 0 ) { @@ -118,9 +118,9 @@ Core::slotPluginLoaded( Plugin *plugin ) void Core::slotAllPluginsLoaded() { - QValueList<KPluginInfo*> plugins = m_pluginManager->availablePlugins(); + TQValueList<KPluginInfo*> plugins = m_pluginManager->availablePlugins(); kdDebug()<<"Number of available plugins is "<< plugins.count() <<endl; - for ( QValueList<KPluginInfo*>::iterator it = plugins.begin(); it != plugins.end(); ++it ) { + for ( TQValueList<KPluginInfo*>::iterator it = plugins.begin(); it != plugins.end(); ++it ) { KPluginInfo *i = ( *it ); kdDebug()<<"\tAvailable plugin "<< i->pluginName() <<", comment = "<< i->comment() <<endl; @@ -156,13 +156,13 @@ Core::selectEditor( Komposer::Editor *editor ) editor->select(); - QPtrList<KParts::Part> *partList = const_cast<QPtrList<KParts::Part>*>( + TQPtrList<KParts::Part> *partList = const_cast<TQPtrList<KParts::Part>*>( m_partManager->parts() ); if ( partList->find( part ) == -1 ) addPart( part ); m_partManager->setActivePart( part ); - QWidget *view = part->widget(); + TQWidget *view = part->widget(); Q_ASSERT( view ); kdDebug()<<"Raising view "<<view<<endl; @@ -176,7 +176,7 @@ Core::selectEditor( Komposer::Editor *editor ) } void -Core::selectEditor( const QString &editorName ) +Core::selectEditor( const TQString &editorName ) { } @@ -217,19 +217,19 @@ void Core::initWidgets() { statusBar()->show(); - QHBox *topWidget = new QHBox( this ); + TQHBox *topWidget = new TQHBox( this ); setCentralWidget( topWidget ); - m_stack = new QWidgetStack( topWidget ); + m_stack = new TQWidgetStack( topWidget ); } void Core::initCore() { m_pluginManager = new PluginManager( this ); - connect( m_pluginManager, SIGNAL(pluginLoaded(Plugin*)), - SLOT(slotPluginLoaded(Plugin*)) ); - connect( m_pluginManager, SIGNAL(allPluginsLoaded()), - SLOT(slotAllPluginsLoaded()) ); + connect( m_pluginManager, TQT_SIGNAL(pluginLoaded(Plugin*)), + TQT_SLOT(slotPluginLoaded(Plugin*)) ); + connect( m_pluginManager, TQT_SIGNAL(allPluginsLoaded()), + TQT_SLOT(slotAllPluginsLoaded()) ); m_pluginManager->loadAllPlugins(); @@ -239,39 +239,39 @@ Core::initCore() void Core::initConnections() { - connect( kapp, SIGNAL(shutDown()), - SLOT(slotQuit()) ); + connect( kapp, TQT_SIGNAL(shutDown()), + TQT_SLOT(slotQuit()) ); } void Core::createActions() { - KStdAction::close( this, SLOT(slotClose()), actionCollection() ); + KStdAction::close( this, TQT_SLOT(slotClose()), actionCollection() ); (void) new KAction( i18n( "&Send" ), "mail_send", CTRL+Key_Return, - this, SLOT(slotSendNow()), actionCollection(), + this, TQT_SLOT(slotSendNow()), actionCollection(), "send_default" ); (void) new KAction( i18n( "&Queue" ), "queue", 0, - this, SLOT(slotSendLater()), + this, TQT_SLOT(slotSendLater()), actionCollection(), "send_alternative" ); (void) new KAction( i18n( "Save in &Drafts Folder" ), "filesave", 0, - this, SLOT(slotSaveDraft()), + this, TQT_SLOT(slotSaveDraft()), actionCollection(), "save_in_drafts" ); (void) new KAction( i18n( "&Insert File..." ), "fileopen", 0, - this, SLOT(slotInsertFile()), + this, TQT_SLOT(slotInsertFile()), actionCollection(), "insert_file" ); (void) new KAction( i18n( "&Address Book" ), "contents",0, - this, SLOT(slotAddrBook()), + this, TQT_SLOT(slotAddrBook()), actionCollection(), "addressbook" ); (void) new KAction( i18n( "&New Composer" ), "mail_new", KStdAccel::shortcut( KStdAccel::New ), - this, SLOT(slotNewComposer()), + this, TQT_SLOT(slotNewComposer()), actionCollection(), "new_composer" ); (void) new KAction( i18n( "&Attach File..." ), "attach", - 0, this, SLOT(slotAttachFile()), + 0, this, TQT_SLOT(slotAttachFile()), actionCollection(), "attach_file" ); } @@ -330,26 +330,26 @@ Core::send( int how ) } void -Core::addAttachment( const KURL &url, const QString &comment ) +Core::addAttachment( const KURL &url, const TQString &comment ) { } void -Core::setBody( const QString &body ) +Core::setBody( const TQString &body ) { m_currentEditor->setText( body ); } void -Core::addAttachment( const QString &name, - const QCString &cte, - const QByteArray &data, - const QCString &type, - const QCString &subType, - const QCString ¶mAttr, - const QString ¶mValue, - const QCString &contDisp ) +Core::addAttachment( const TQString &name, + const TQCString &cte, + const TQByteArray &data, + const TQCString &type, + const TQCString &subType, + const TQCString ¶mAttr, + const TQString ¶mValue, + const TQCString &contDisp ) { } |