summaryrefslogtreecommitdiffstats
path: root/src/tastytooltip.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-04-10 10:42:00 +0200
committerSlávek Banko <slavek.banko@axis.cz>2016-04-10 10:42:00 +0200
commit7fdc8b30e85418cca031b45ad02f723373b73433 (patch)
tree491150f68ddc476645599a00d04e27b194e9648c /src/tastytooltip.cpp
parent3566ebfc3015ab32c4e0531defb41377c171fadb (diff)
downloadtastymenu-7fdc8b30e85418cca031b45ad02f723373b73433.tar.gz
tastymenu-7fdc8b30e85418cca031b45ad02f723373b73433.zip
Initial TQt conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/tastytooltip.cpp')
-rw-r--r--src/tastytooltip.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/tastytooltip.cpp b/src/tastytooltip.cpp
index 27f6a12..1d324cc 100644
--- a/src/tastytooltip.cpp
+++ b/src/tastytooltip.cpp
@@ -19,28 +19,28 @@
***************************************************************************/
#include "tastytooltip.h"
-#include <qlabel.h>
-#include <qtimer.h>
+#include <tqlabel.h>
+#include <tqtimer.h>
#include <kiconloader.h>
#include <kdebug.h>
-#include <qbutton.h>
+#include <tqbutton.h>
-TastyToolTip::TastyToolTip( QWidget * parent,const char * name, WFlags fl)
- : QWidget(parent, name, fl|WX11BypassWM )
+TastyToolTip::TastyToolTip( TQWidget * parent,const char * name, WFlags fl)
+ : TQWidget(parent, name, fl|WX11BypassWM )
{
iconName = "kmenu";
- tastyToolTipLayout = new QVBoxLayout( this, 0, 0, "tastyToolTipLayout");
+ tastyToolTipLayout = new TQVBoxLayout( this, 0, 0, "tastyToolTipLayout");
toolTipWidget = new TastyToolTipWidget(this);
tastyToolTipLayout->addWidget(toolTipWidget);
}
-void TastyToolTip::loadIcon( QString icon )
+void TastyToolTip::loadIcon( TQString icon )
{
iconName = icon;
KIconLoader *iconLoader = KGlobal::iconLoader();
- QPixmap btnPixmap(iconLoader->loadIcon(icon, KIcon::Panel, KIcon::SizeHuge));
+ TQPixmap btnPixmap(iconLoader->loadIcon(icon, KIcon::Panel, KIcon::SizeHuge));
if( !btnPixmap.isNull() )
toolTipWidget->iconPixmap->setPixmap(btnPixmap);
@@ -56,32 +56,32 @@ TastyToolTip::~TastyToolTip()
}
-void TastyToolTip::showTip(const QPoint & point)
+void TastyToolTip::showTip(const TQPoint & point)
{
move(point);
- QTimer::singleShot(250, this, SLOT(show()));
+ TQTimer::singleShot(250, this, SLOT(show()));
}
void TastyToolTip::show()
{
- QButton *button = dynamic_cast<QButton *>(parent());
+ TQButton *button = dynamic_cast<TQButton *>(parent());
if(button && button->hasMouse() && !button->isDown())
- QWidget::show();
+ TQWidget::show();
}
void TastyToolTip::hideTip( )
{
- QTimer::singleShot(250, this, SLOT(hide()));
+ TQTimer::singleShot(250, this, SLOT(hide()));
}
-void TastyToolTip::notify(const QPoint & point )
+void TastyToolTip::notify(const TQPoint & point )
{
move(point);
show();
- QTimer::singleShot(5000, this, SLOT(hide()));
+ TQTimer::singleShot(5000, this, SLOT(hide()));
}
-void TastyToolTip::setMessage( QString message )
+void TastyToolTip::setMessage( TQString message )
{
KIconLoader *iconLoader = KGlobal::iconLoader();
toolTipWidget->MessageLabel->setText(message);
@@ -92,7 +92,7 @@ void TastyToolTip::setMessage( QString message )
loadIcon(iconName);
}
-void TastyToolTip::setTitle( QString title )
+void TastyToolTip::setTitle( TQString title )
{
if( !title.isEmpty() )
toolTipWidget->appNameLabel->setText( title );