From 9c02dbb59ce57c68dc177d9294b980bf114a3e11 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Jul 2013 15:59:03 -0500 Subject: Update to TDE R14 API --- doc/html/kshowmaildock_8cpp-source.html | 44 ++++++++++++++++----------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'doc/html/kshowmaildock_8cpp-source.html') diff --git a/doc/html/kshowmaildock_8cpp-source.html b/doc/html/kshowmaildock_8cpp-source.html index 26d1bb2..e440781 100644 --- a/doc/html/kshowmaildock_8cpp-source.html +++ b/doc/html/kshowmaildock_8cpp-source.html @@ -32,26 +32,26 @@ 00015 * * 00016 ***************************************************************************/ 00017 -00018 #include <qpixmap.h> -00019 #include <qpainter.h> -00020 #include <qtooltip.h> +00018 #include <ntqpixmap.h> +00019 #include <ntqpainter.h> +00020 #include <ntqtooltip.h> 00021 -00022 #include <kpopupmenu.h> +00022 #include <tdepopupmenu.h> 00023 #include <kstandarddirs.h> -00024 #include <kglobalsettings.h> -00025 #include <klocale.h> +00024 #include <tdeglobalsettings.h> +00025 #include <tdelocale.h> 00026 #include <kdebug.h> 00027 00028 #include "kshowmail.h" 00029 #include "kshowmaildock.h" 00030 -00031 KShowMailDock::KShowMailDock(QWidget* parent, KAction *actionRefresh ) +00031 KShowMailDock::KShowMailDock(TQWidget* parent, TDEAction *actionRefresh ) 00032 : KSystemTray (parent, 0), -00033 m_background (QPixmap(::locate ("data", "kshowmail/pics/kshowmail24.png"))) +00033 m_background (TQPixmap(::locate ("data", "kshowmail/pics/kshowmail24.png"))) 00034 { 00035 // kdDebug () << "KShowMailDock::KShowMailDock" << endl; -00036 drawText ("?", Qt::red); -00037 QToolTip::add (this, i18n("KShowmail: a powerful pop3 email checker")); +00036 drawText ("?", TQt::red); +00037 TQToolTip::add (this, i18n("KShowmail: a powerful pop3 email checker")); 00038 00039 show(); 00040 @@ -61,33 +61,33 @@ 00044 connect (contextMenu(),SIGNAL(highlighted(int)),this, SIGNAL(sigHighlighted(int))); 00045 } 00046 -00047 void KShowMailDock::drawText (const QString str, const QColor& color) +00047 void KShowMailDock::drawText (const TQString str, const TQColor& color) 00048 { 00049 setPixmap (m_background); -00050 QPixmap* pix = pixmap (); +00050 TQPixmap* pix = pixmap (); 00051 if (pix && !pix->isNull ()) 00052 { -00053 QPainter p (pix); -00054 // p.setFont (KGlobalSettings::toolBarFont()); -00055 p.setFont (KGlobalSettings::windowTitleFont()); +00053 TQPainter p (pix); +00054 // p.setFont (TDEGlobalSettings::toolBarFont()); +00055 p.setFont (TDEGlobalSettings::windowTitleFont()); 00056 p.setPen (color); -00057 p.drawText (0,0,24,24,QPainter::AlignCenter,str,str.length()); +00057 p.drawText (0,0,24,24,TQPainter::AlignCenter,str,str.length()); 00058 } 00059 else 00060 kdError () << "No pixmap for traybar !" << endl; 00061 } 00062 -00063 void KShowMailDock::drawNumber (int n, const QColor& color) +00063 void KShowMailDock::drawNumber (int n, const TQColor& color) 00064 { 00065 setPixmap (m_background); -00066 QPixmap* pix = pixmap (); +00066 TQPixmap* pix = pixmap (); 00067 if (pix && !pix->isNull ()) 00068 { -00069 QString num (QString::number(n)); -00070 QPainter p (pix); -00071 p.setFont (KGlobalSettings::toolBarFont()); +00069 TQString num (TQString::number(n)); +00070 TQPainter p (pix); +00071 p.setFont (TDEGlobalSettings::toolBarFont()); 00072 p.setPen (color); -00073 p.drawText (0,0,24,24,QPainter::AlignCenter,num,num.length()); +00073 p.drawText (0,0,24,24,TQPainter::AlignCenter,num,num.length()); 00074 } 00075 else 00076 kdError () << "No pixmap for traybar !" << endl; -- cgit v1.2.1