summaryrefslogtreecommitdiffstats
path: root/kparts/mainwindow.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kparts/mainwindow.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kparts/mainwindow.cpp')
-rw-r--r--kparts/mainwindow.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kparts/mainwindow.cpp b/kparts/mainwindow.cpp
index 234188a73..ee286fd15 100644
--- a/kparts/mainwindow.cpp
+++ b/kparts/mainwindow.cpp
@@ -26,7 +26,7 @@
#include <kstatusbar.h>
#include <khelpmenu.h>
#include <kstandarddirs.h>
-#include <qapplication.h>
+#include <tqapplication.h>
#include <kxmlguifactory.h>
#include <kaccel.h>
@@ -51,13 +51,13 @@ public:
{
}
- QGuardedPtr<Part> m_activePart;
+ TQGuardedPtr<Part> m_activePart;
bool m_bShellGUIActivated;
KHelpMenu *m_helpMenu;
};
}
-MainWindow::MainWindow( QWidget* parent, const char *name, WFlags f )
+MainWindow::MainWindow( TQWidget* parent, const char *name, WFlags f )
: KMainWindow( parent, name, f )
{
d = new MainWindowPrivate();
@@ -71,7 +71,7 @@ MainWindow::MainWindow( const char *name, WFlags f )
PartBase::setPartObject( this );
}
-MainWindow::MainWindow( int cflags, QWidget* parent, const char *name, WFlags f )
+MainWindow::MainWindow( int cflags, TQWidget* parent, const char *name, WFlags f )
: KMainWindow( cflags, parent, name, f )
{
d = new MainWindowPrivate();
@@ -95,7 +95,7 @@ void MainWindow::createGUI( Part * part )
setUpdatesEnabled( false );
- QPtrList<Plugin> plugins;
+ TQPtrList<Plugin> plugins;
if ( d->m_activePart )
{
@@ -103,14 +103,14 @@ void MainWindow::createGUI( Part * part )
<< " " << d->m_activePart->name() << endl;
GUIActivateEvent ev( false );
- QApplication::sendEvent( d->m_activePart, &ev );
+ TQApplication::sendEvent( d->m_activePart, &ev );
factory->removeClient( d->m_activePart );
- disconnect( d->m_activePart, SIGNAL( setWindowCaption( const QString & ) ),
- this, SLOT( setCaption( const QString & ) ) );
- disconnect( d->m_activePart, SIGNAL( setStatusBarText( const QString & ) ),
- this, SLOT( slotSetStatusBarText( const QString & ) ) );
+ disconnect( d->m_activePart, TQT_SIGNAL( setWindowCaption( const TQString & ) ),
+ this, TQT_SLOT( setCaption( const TQString & ) ) );
+ disconnect( d->m_activePart, TQT_SIGNAL( setStatusBarText( const TQString & ) ),
+ this, TQT_SLOT( slotSetStatusBarText( const TQString & ) ) );
}
if ( !d->m_bShellGUIActivated )
@@ -123,15 +123,15 @@ void MainWindow::createGUI( Part * part )
if ( part )
{
// do this before sending the activate event
- connect( part, SIGNAL( setWindowCaption( const QString & ) ),
- this, SLOT( setCaption( const QString & ) ) );
- connect( part, SIGNAL( setStatusBarText( const QString & ) ),
- this, SLOT( slotSetStatusBarText( const QString & ) ) );
+ connect( part, TQT_SIGNAL( setWindowCaption( const TQString & ) ),
+ this, TQT_SLOT( setCaption( const TQString & ) ) );
+ connect( part, TQT_SIGNAL( setStatusBarText( const TQString & ) ),
+ this, TQT_SLOT( slotSetStatusBarText( const TQString & ) ) );
factory->addClient( part );
GUIActivateEvent ev( true );
- QApplication::sendEvent( part, &ev );
+ TQApplication::sendEvent( part, &ev );
if ( autoSaveSettings() )
applyMainWindowSettings( KGlobal::config(), autoSaveGroup() );
@@ -142,7 +142,7 @@ void MainWindow::createGUI( Part * part )
d->m_activePart = part;
}
-void MainWindow::slotSetStatusBarText( const QString & text )
+void MainWindow::slotSetStatusBarText( const TQString & text )
{
statusBar()->message( text );
}
@@ -157,25 +157,25 @@ void MainWindow::createShellGUI( bool create )
if ( isHelpMenuEnabled() && !d->m_helpMenu )
d->m_helpMenu = new KHelpMenu( this, instance()->aboutData(), true, actionCollection() );
- QString f = xmlFile();
+ TQString f = xmlFile();
setXMLFile( locate( "config", "ui/ui_standards.rc", instance() ) );
if ( !f.isEmpty() )
setXMLFile( f, true );
else
{
- QString auto_file( instance()->instanceName() + "ui.rc" );
+ TQString auto_file( instance()->instanceName() + "ui.rc" );
setXMLFile( auto_file, true );
}
GUIActivateEvent ev( true );
- QApplication::sendEvent( this, &ev );
+ TQApplication::sendEvent( this, &ev );
guiFactory()->addClient( this );
}
else
{
GUIActivateEvent ev( false );
- QApplication::sendEvent( this, &ev );
+ TQApplication::sendEvent( this, &ev );
guiFactory()->removeClient( this );
}