From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- akregator/src/mainwindow.cpp | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'akregator/src/mainwindow.cpp') diff --git a/akregator/src/mainwindow.cpp b/akregator/src/mainwindow.cpp index 41f307b8..8271994f 100644 --- a/akregator/src/mainwindow.cpp +++ b/akregator/src/mainwindow.cpp @@ -52,11 +52,11 @@ #include "statusbarprogresswidget.h" #include "trayicon.h" -#include -#include -#include +#include +#include +#include #include -#include +#include 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( "

Closing the main window will keep Akregator running in the system tray. Use 'Quit' from the 'File' menu to quit the application.

" ), 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); } -- cgit v1.2.3