summaryrefslogtreecommitdiffstats
path: root/akregator/src/mainwindow.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /akregator/src/mainwindow.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'akregator/src/mainwindow.cpp')
-rw-r--r--akregator/src/mainwindow.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/akregator/src/mainwindow.cpp b/akregator/src/mainwindow.cpp
index 41f307b8e..8271994ff 100644
--- a/akregator/src/mainwindow.cpp
+++ b/akregator/src/mainwindow.cpp
@@ -52,11 +52,11 @@
#include "statusbarprogresswidget.h"
#include "trayicon.h"
-#include <qmetaobject.h>
-#include <qpen.h>
-#include <qpainter.h>
+#include <tqmetaobject.h>
+#include <tqpen.h>
+#include <tqpainter.h>
#include <private/qucomextra_p.h>
-#include <qtimer.h>
+#include <tqtimer.h>
namespace Akregator {
@@ -85,7 +85,7 @@ MainWindow::MainWindow()
int statH=fontMetrics().height()+2;
m_statusLabel = new KSqueezedTextLabel(this);
m_statusLabel->setTextFormat(Qt::RichText);
- m_statusLabel->setSizePolicy(QSizePolicy( QSizePolicy::Ignored, QSizePolicy::Fixed ));
+ m_statusLabel->setSizePolicy(TQSizePolicy( TQSizePolicy::Ignored, TQSizePolicy::Fixed ));
m_statusLabel->setMinimumWidth( 0 );
m_statusLabel->setFixedHeight( statH );
statusBar()->addWidget (m_statusLabel, 1, false);
@@ -111,9 +111,9 @@ bool MainWindow::loadPart()
// tell the KParts::MainWindow that this is indeed the main widget
setCentralWidget(m_part->widget());
- connect(m_part, SIGNAL(setWindowCaption (const QString &)), this, SLOT(setCaption (const QString &)));
+ connect(m_part, TQT_SIGNAL(setWindowCaption (const TQString &)), this, TQT_SLOT(setCaption (const TQString &)));
- connect(TrayIcon::getInstance(), SIGNAL(quitSelected()), this, SLOT(slotQuit()));
+ connect(TrayIcon::getInstance(), TQT_SIGNAL(quitSelected()), this, TQT_SLOT(slotQuit()));
// and integrate the part's GUI with the shell's
connectActionCollection(m_part->actionCollection());
createGUI(m_part);
@@ -145,7 +145,7 @@ MainWindow::~MainWindow()
{
}
-void MainWindow::setCaption(const QString &a)
+void MainWindow::setCaption(const TQString &a)
{
KParts::MainWindow::setCaption(a);
}
@@ -154,13 +154,13 @@ void MainWindow::setupActions()
{
connectActionCollection(actionCollection());
- KStdAction::quit(kapp, SLOT(quit()), actionCollection());
+ KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection());
setStandardToolBarMenuEnabled(true);
createStandardStatusBarAction();
- KStdAction::keyBindings(this, SLOT(optionsConfigureKeys()), actionCollection());
- KStdAction::configureToolbars(this, SLOT(optionsConfigureToolbars()), actionCollection());
+ KStdAction::keyBindings(this, TQT_SLOT(optionsConfigureKeys()), actionCollection());
+ KStdAction::configureToolbars(this, TQT_SLOT(optionsConfigureToolbars()), actionCollection());
}
void MainWindow::saveProperties(KConfig* config)
@@ -203,8 +203,8 @@ void MainWindow::optionsConfigureToolbars()
// use the standard toolbar editor
KEditToolbar dlg(factory());
- connect(&dlg, SIGNAL(newToolbarConfig()),
- this, SLOT(applyNewToolbarConfig()));
+ connect(&dlg, TQT_SIGNAL(newToolbarConfig()),
+ this, TQT_SLOT(applyNewToolbarConfig()));
dlg.exec();
}
@@ -226,10 +226,10 @@ KParts::BrowserExtension *MainWindow::browserExtension(KParts::ReadOnlyPart *p)
void MainWindow::connectActionCollection( KActionCollection *coll )
{
if (!coll) return;
- connect( coll, SIGNAL( actionStatusText( const QString & ) ),
- m_statusLabel, SLOT( setText( const QString & ) ) );
- connect( coll, SIGNAL( clearStatusText() ),
- this, SLOT( slotClearStatusText() ) );
+ connect( coll, TQT_SIGNAL( actionStatusText( const TQString & ) ),
+ m_statusLabel, TQT_SLOT( setText( const TQString & ) ) );
+ connect( coll, TQT_SIGNAL( clearStatusText() ),
+ this, TQT_SLOT( slotClearStatusText() ) );
}
bool MainWindow::queryExit()
@@ -261,10 +261,10 @@ bool MainWindow::queryClose()
}
else
{
- QPixmap shot = TrayIcon::getInstance()->takeScreenshot();
+ TQPixmap shot = TrayIcon::getInstance()->takeScreenshot();
// Associate source to image and show the dialog:
- QMimeSourceFactory::defaultFactory()->setPixmap("systray_shot", shot);
+ TQMimeSourceFactory::defaultFactory()->setPixmap("systray_shot", shot);
KMessageBox::information(this, i18n( "<qt><p>Closing the main window will keep Akregator running in the system tray. Use 'Quit' from the 'File' menu to quit the application.</p><p><center><img source=\"systray_shot\"></center></p></qt>" ), i18n( "Docking in System Tray" ), "hideOnCloseInfo");
hide();
return false;
@@ -274,10 +274,10 @@ bool MainWindow::queryClose()
void MainWindow::slotClearStatusText()
{
- m_statusLabel->setText(QString());
+ m_statusLabel->setText(TQString());
}
-void MainWindow::slotSetStatusBarText( const QString & text )
+void MainWindow::slotSetStatusBarText( const TQString & text )
{
m_statusLabel->setText(text);
}