From 7fdc8b30e85418cca031b45ad02f723373b73433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 10 Apr 2016 10:42:00 +0200 Subject: Initial TQt conversion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/tastytooltip.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src/tastytooltip.cpp') 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 -#include +#include +#include #include #include -#include +#include -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(parent()); + TQButton *button = dynamic_cast(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 ); -- cgit v1.2.1