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.h | 56 +++++++++++++++++------------------ 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'kicker/applets/launcher/quickbutton.h') diff --git a/kicker/applets/launcher/quickbutton.h b/kicker/applets/launcher/quickbutton.h index 98eabec6e..263651cc0 100644 --- a/kicker/applets/launcher/quickbutton.h +++ b/kicker/applets/launcher/quickbutton.h @@ -24,11 +24,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #ifndef __quickbutton_h__ #define __quickbutton_h__ -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include @@ -45,22 +45,22 @@ class KToggleAction; class QuickURL { public: - QuickURL(const QString &u); + QuickURL(const TQString &u); KURL kurl() const {return _kurl;}; - QString url() const {return _kurl.url();}; - QString menuId() const {return _menuId;}; - QString genericName() const { return m_genericName; } - QString name() const { return m_name; } + TQString url() const {return _kurl.url();}; + TQString menuId() const {return _menuId;}; + TQString genericName() const { return m_genericName; } + TQString name() const { return m_name; } KService::Ptr service() const {return _service;}; void run() const; - QPixmap pixmap(mode_t _mode = 0, KIcon::Group _group = KIcon::Desktop, - int _force_size = 0, int _state = 0, QString * _path = 0L) const; + TQPixmap pixmap(mode_t _mode = 0, KIcon::Group _group = KIcon::Desktop, + int _force_size = 0, int _state = 0, TQString * _path = 0L) const; private: KURL _kurl; - QString _menuId; - QString m_genericName; - QString m_name; + TQString _menuId; + TQString m_genericName; + TQString m_name; KService::Ptr _service; }; @@ -71,12 +71,12 @@ class QuickButton: public SimpleButton, public KickerTip::Client { public: enum { DEFAULT_ICON_DIM = 16 }; enum { ICON_MARGIN = 1 }; - QuickButton(const QString &u, KAction* configAction, - QWidget *parent=0, const char *name=0); + QuickButton(const TQString &u, KAction* configAction, + TQWidget *parent=0, const char *name=0); ~QuickButton(); - QString url() const; - QString menuId() const; - QPixmap icon() const{ return _icon;} + TQString url() const; + TQString menuId() const; + TQPixmap icon() const{ return _icon;} bool sticky() { return m_sticky; } void setSticky(bool bSticky); void setPopupDirection(KPanelApplet::Direction d); @@ -88,13 +88,13 @@ public: signals: void removeApp(QuickButton *); - void executed(QString serviceStorageID); + void executed(TQString serviceStorageID); void stickyToggled(bool isSticky); protected: - void mousePressEvent(QMouseEvent *e); - void mouseMoveEvent(QMouseEvent *e); - void resizeEvent(QResizeEvent *rsevent); + void mousePressEvent(TQMouseEvent *e); + void mouseMoveEvent(TQMouseEvent *e); + void resizeEvent(TQResizeEvent *rsevent); void loadIcon(); void updateKickerTip(KickerTip::Data &data); @@ -108,10 +108,10 @@ protected slots: private: int m_flashCounter; QuickURL *_qurl; - QPoint _dragPos; - QPopupMenu *_popup; - QPixmap _icon, _iconh; - QCursor _oldCursor; + TQPoint _dragPos; + TQPopupMenu *_popup; + TQPixmap _icon, _iconh; + TQCursor _oldCursor; bool _highlight, _changeCursorOverItem, _dragEnabled; int _iconDim; bool m_sticky; -- cgit v1.2.1