summaryrefslogtreecommitdiffstats
path: root/akregator/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'akregator/src/mainwindow.cpp')
-rw-r--r--akregator/src/mainwindow.cpp39
1 files changed, 18 insertions, 21 deletions
diff --git a/akregator/src/mainwindow.cpp b/akregator/src/mainwindow.cpp
index c4e47338..b236d001 100644
--- a/akregator/src/mainwindow.cpp
+++ b/akregator/src/mainwindow.cpp
@@ -43,7 +43,7 @@
#include <tdemessagebox.h>
#include <tdeparts/partmanager.h>
#include <ksqueezedtextlabel.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <kstatusbar.h>
#include <kstdaction.h>
#include <kurl.h>
@@ -55,14 +55,14 @@
#include <tqmetaobject.h>
#include <tqpen.h>
#include <tqpainter.h>
-#include <tqucomextra_p.h>
+#include <private/tqucomextra_p.h>
#include <tqtimer.h>
namespace Akregator {
BrowserInterface::BrowserInterface( MainWindow *shell, const char *name )
- : KParts::BrowserInterface( TQT_TQOBJECT(shell), name )
+ : KParts::BrowserInterface( shell, name )
{
m_shell = shell;
}
@@ -104,16 +104,16 @@ bool MainWindow::loadPart()
{
// now that the Part is loaded, we cast it to a Part to get
// our hands on it
- m_part = static_cast<Akregator::Part*>(factory->create(TQT_TQOBJECT(this), "akregator_part", "KParts::ReadOnlyPart" ));
+ m_part = static_cast<Akregator::Part*>(factory->create(this, "akregator_part", "KParts::ReadOnlyPart" ));
if (m_part)
{
// tell the KParts::MainWindow that this is indeed the main widget
setCentralWidget(m_part->widget());
- connect(m_part, TQT_SIGNAL(setWindowCaption (const TQString &)), this, TQT_SLOT(setCaption (const TQString &)));
+ connect(m_part, TQ_SIGNAL(setWindowCaption (const TQString &)), this, TQ_SLOT(setCaption (const TQString &)));
- connect(TrayIcon::getInstance(), TQT_SIGNAL(quitSelected()), this, TQT_SLOT(slotQuit()));
+ connect(TrayIcon::getInstance(), TQ_SIGNAL(quitSelected()), this, TQ_SLOT(slotQuit()));
// and integrate the part's GUI with the shell's
connectActionCollection(m_part->actionCollection());
createGUI(m_part);
@@ -154,13 +154,13 @@ void MainWindow::setupActions()
{
connectActionCollection(actionCollection());
- KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT(quit()), actionCollection());
+ KStdAction::quit(tdeApp, TQ_SLOT(quit()), actionCollection());
setStandardToolBarMenuEnabled(true);
createStandardStatusBarAction();
- KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(optionsConfigureKeys()), actionCollection());
- KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(optionsConfigureToolbars()), actionCollection());
+ KStdAction::keyBindings(this, TQ_SLOT(optionsConfigureKeys()), actionCollection());
+ KStdAction::configureToolbars(this, TQ_SLOT(optionsConfigureToolbars()), actionCollection());
}
void MainWindow::saveProperties(TDEConfig* config)
@@ -203,8 +203,8 @@ void MainWindow::optionsConfigureToolbars()
// use the standard toolbar editor
KEditToolbar dlg(factory());
- connect(&dlg, TQT_SIGNAL(newToolbarConfig()),
- this, TQT_SLOT(applyNewToolbarConfig()));
+ connect(&dlg, TQ_SIGNAL(newToolbarConfig()),
+ this, TQ_SLOT(applyNewToolbarConfig()));
dlg.exec();
}
@@ -226,16 +226,16 @@ KParts::BrowserExtension *MainWindow::browserExtension(KParts::ReadOnlyPart *p)
void MainWindow::connectActionCollection( TDEActionCollection *coll )
{
if (!coll) return;
- connect( coll, TQT_SIGNAL( actionStatusText( const TQString & ) ),
- m_statusLabel, TQT_SLOT( setText( const TQString & ) ) );
- connect( coll, TQT_SIGNAL( clearStatusText() ),
- this, TQT_SLOT( slotClearStatusText() ) );
+ connect( coll, TQ_SIGNAL( actionStatusText( const TQString & ) ),
+ m_statusLabel, TQ_SLOT( setText( const TQString & ) ) );
+ connect( coll, TQ_SIGNAL( clearStatusText() ),
+ this, TQ_SLOT( slotClearStatusText() ) );
}
bool MainWindow::queryExit()
{
kdDebug() << "MainWindow::queryExit()" << endl;
- if ( !kapp->sessionSaving() )
+ if ( !tdeApp->sessionSaving() )
{
delete m_part; // delete that here instead of dtor to ensure nested tdehtmlparts are deleted before singleton objects like TDEHTMLPageCache
m_part = 0;
@@ -250,12 +250,12 @@ void MainWindow::slotQuit()
{
if (TrayIcon::getInstance())
TrayIcon::getInstance()->hide();
- kapp->quit();
+ tdeApp->quit();
}
bool MainWindow::queryClose()
{
- if (kapp->sessionSaving() || TrayIcon::getInstance() == 0 || TrayIcon::getInstance()->isHidden() )
+ if (tdeApp->sessionSaving() || TrayIcon::getInstance() == 0 || TrayIcon::getInstance()->isHidden() )
{
return true;
}
@@ -285,6 +285,3 @@ void MainWindow::slotSetStatusBarText( const TQString & text )
} // namespace Akregator
#include "mainwindow.moc"
-
-
-// vim: set et ts=4 sts=4 sw=4: