From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kicker/applets/launcher/quickbutton.cpp | 62 ++++++++++++++++----------------- 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'kicker/applets/launcher/quickbutton.cpp') diff --git a/kicker/applets/launcher/quickbutton.cpp b/kicker/applets/launcher/quickbutton.cpp index 933088b04..2ac0742ca 100644 --- a/kicker/applets/launcher/quickbutton.cpp +++ b/kicker/applets/launcher/quickbutton.cpp @@ -24,10 +24,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "quickbutton.h" #include "quickaddappsmenu.h" -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -52,7 +52,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #define DEBUGSTR kndDebug() #endif -QuickURL::QuickURL(const QString &u) +QuickURL::QuickURL(const TQString &u) { DEBUGSTR<<"QuickURL::QuickURL("<name()); + TQToolTip::add(this, _qurl->name()); resize(int(DEFAULT_ICON_DIM),int(DEFAULT_ICON_DIM)); - QBrush bgbrush(colorGroup().brush(QColorGroup::Background)); + TQBrush bgbrush(colorGroup().brush(TQColorGroup::Background)); QuickAddAppsMenu *addAppsMenu = new QuickAddAppsMenu( parent, this, _qurl->url()); - _popup = new QPopupMenu(this); + _popup = new TQPopupMenu(this); _popup->insertItem(i18n("Add Application"), addAppsMenu); configAction->plug(_popup); _popup->insertSeparator(); _popup->insertItem(SmallIcon("remove"), i18n("Remove"), - this, SLOT(removeApp())); + this, TQT_SLOT(removeApp())); m_stickyAction = new KToggleAction(i18n("Never Remove Automatically"), KShortcut(), this); - connect(m_stickyAction, SIGNAL(toggled(bool)), - this, SLOT(slotStickyToggled(bool))); + connect(m_stickyAction, TQT_SIGNAL(toggled(bool)), + this, TQT_SLOT(slotStickyToggled(bool))); m_stickyAction->plug(_popup, 2); m_stickyId = _popup->idAt(2); - connect(this, SIGNAL(clicked()), SLOT(launch())); - connect(this, SIGNAL(removeApp(QuickButton *)), parent, - SLOT(removeAppManually(QuickButton *))); + connect(this, TQT_SIGNAL(clicked()), TQT_SLOT(launch())); + connect(this, TQT_SIGNAL(removeApp(QuickButton *)), parent, + TQT_SLOT(removeAppManually(QuickButton *))); } QuickButton::~QuickButton() @@ -169,13 +169,13 @@ QuickButton::~QuickButton() } -QString QuickButton::url() const +TQString QuickButton::url() const { return _qurl->url(); } -QString QuickButton::menuId() const +TQString QuickButton::menuId() const { return _qurl->menuId();} @@ -189,26 +189,26 @@ void QuickButton::loadIcon() setPixmap(_icon); } -void QuickButton::resizeEvent(QResizeEvent *e) +void QuickButton::resizeEvent(TQResizeEvent *e) { loadIcon(); SimpleButton::resizeEvent(e); } -void QuickButton::mousePressEvent(QMouseEvent *e) +void QuickButton::mousePressEvent(TQMouseEvent *e) { if (e->button() == RightButton) _popup->popup(e->globalPos()); else if (e->button() == LeftButton) { _dragPos = e->pos(); - QButton::mousePressEvent(e); + TQButton::mousePressEvent(e); } } -void QuickButton::mouseMoveEvent(QMouseEvent *e) +void QuickButton::mouseMoveEvent(TQMouseEvent *e) { if ((e->state() & LeftButton) == 0) return; - QPoint p(e->pos() - _dragPos); + TQPoint p(e->pos() - _dragPos); if (p.manhattanLength() <= KGlobalSettings::dndEventDelay()) return; DEBUGSTR<<"dragstart"<name(); data.direction = m_popupDirection; data.subtext = _qurl->genericName(); - if (data.subtext == QString()) + if (data.subtext == TQString()) { data.subtext = data.message; } -- cgit v1.2.3