summaryrefslogtreecommitdiffstats
path: root/src/trayhoverpopup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/trayhoverpopup.cpp')
-rw-r--r--src/trayhoverpopup.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/trayhoverpopup.cpp b/src/trayhoverpopup.cpp
index 2c63fd0..4e8e8bb 100644
--- a/src/trayhoverpopup.cpp
+++ b/src/trayhoverpopup.cpp
@@ -37,16 +37,16 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <qvbox.h>
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qtooltip.h>
-#include <qpixmap.h>
+#include <ntqvbox.h>
+#include <ntqhbox.h>
+#include <ntqlabel.h>
+#include <ntqtooltip.h>
+#include <ntqpixmap.h>
#include <kdialog.h>
#include "trayhoverpopup.h"
-TrayHoverPopup::TrayHoverPopup(const QPixmap & pix,QWidget *parent, const char *name )
+TrayHoverPopup::TrayHoverPopup(const TQPixmap & pix,TQWidget *parent, const char *name )
: KPassivePopup(KPassivePopup::Boxed,parent,name),pix(pix)
{
setTimeout(0);
@@ -54,7 +54,7 @@ TrayHoverPopup::TrayHoverPopup(const QPixmap & pix,QWidget *parent, const char *
connect(&hover_timer,SIGNAL(timeout()),this,SLOT(onHoverTimeout()));
connect(&show_timer,SIGNAL(timeout()),this,SLOT(onShowTimeout()));
create();
- setPalette(QToolTip::palette());
+ setPalette(TQToolTip::palette());
setLineWidth(1);
context_menu_shown = false;
cursor_over_icon = false;
@@ -114,38 +114,38 @@ void TrayHoverPopup::onShowTimeout()
show();
}
-void TrayHoverPopup::updateText(const QString & msg)
+void TrayHoverPopup::updateText(const TQString & msg)
{
text->setText(msg);
}
void TrayHoverPopup::create()
{
- QVBox *vb = new QVBox(this);
+ TQVBox *vb = new TQVBox(this);
vb->setSpacing(KDialog::spacingHint());
- QHBox *hb=0;
+ TQHBox *hb=0;
if (!pix.isNull())
{
- hb = new QHBox(vb);
+ hb = new TQHBox(vb);
hb->setMargin(0);
hb->setSpacing(KDialog::spacingHint());
- QLabel* pix_lbl = new QLabel(hb,"title_icon");
+ TQLabel* pix_lbl = new TQLabel(hb,"title_icon");
pix_lbl->setPixmap(pix);
pix_lbl->setAlignment(AlignLeft);
}
- QLabel* title = new QLabel("Tor Status", hb ? hb : vb, "title_label" );
- QFont fnt = title->font();
+ TQLabel* title = new TQLabel("Tor Status", hb ? hb : vb, "title_label" );
+ TQFont fnt = title->font();
fnt.setBold( true );
title->setFont( fnt );
- title->setAlignment( Qt::AlignHCenter );
+ title->setAlignment( TQt::AlignHCenter );
if ( hb )
hb->setStretchFactor(title, 10 ); // enforce centering
// text will be filled later
- text = new QLabel( "Dummy", vb, "msg_label" );
+ text = new TQLabel( "Dummy", vb, "msg_label" );
text->setAlignment( AlignLeft );
setView(vb);
}