diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kicker/applets/media/mediaapplet.cpp | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker/applets/media/mediaapplet.cpp')
-rw-r--r-- | kicker/applets/media/mediaapplet.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kicker/applets/media/mediaapplet.cpp b/kicker/applets/media/mediaapplet.cpp index 4ccd0eeef..b137b5d5c 100644 --- a/kicker/applets/media/mediaapplet.cpp +++ b/kicker/applets/media/mediaapplet.cpp @@ -33,7 +33,7 @@ extern "C" { - KDE_EXPORT KPanelApplet* init( QWidget *parent, const QString configFile) + KDE_EXPORT KPanelApplet* init( TQWidget *parent, const TQString configFile) { KGlobal::locale()->insertCatalogue("mediaapplet"); return new MediaApplet(configFile, KPanelApplet::Normal, @@ -42,7 +42,7 @@ extern "C" } } -MediaApplet::MediaApplet(const QString& configFile, Type type, int actions, QWidget *parent, const char *name) +MediaApplet::MediaApplet(const TQString& configFile, Type type, int actions, TQWidget *parent, const char *name) : KPanelApplet(configFile, type, actions, parent, name), mButtonSizeSum(0) { @@ -57,18 +57,18 @@ MediaApplet::MediaApplet(const QString& configFile, Type type, int actions, QWid mpDirLister = new KDirLister(); - connect( mpDirLister, SIGNAL( clear() ), - this, SLOT( slotClear() ) ); - connect( mpDirLister, SIGNAL( started(const KURL&) ), - this, SLOT( slotStarted(const KURL&) ) ); - connect( mpDirLister, SIGNAL( completed() ), - this, SLOT( slotCompleted() ) ); - connect( mpDirLister, SIGNAL( newItems( const KFileItemList & ) ), - this, SLOT( slotNewItems( const KFileItemList & ) ) ); - connect( mpDirLister, SIGNAL( deleteItem( KFileItem * ) ), - this, SLOT( slotDeleteItem( KFileItem * ) ) ); - connect( mpDirLister, SIGNAL( refreshItems( const KFileItemList & ) ), - this, SLOT( slotRefreshItems( const KFileItemList & ) ) ); + connect( mpDirLister, TQT_SIGNAL( clear() ), + this, TQT_SLOT( slotClear() ) ); + connect( mpDirLister, TQT_SIGNAL( started(const KURL&) ), + this, TQT_SLOT( slotStarted(const KURL&) ) ); + connect( mpDirLister, TQT_SIGNAL( completed() ), + this, TQT_SLOT( slotCompleted() ) ); + connect( mpDirLister, TQT_SIGNAL( newItems( const KFileItemList & ) ), + this, TQT_SLOT( slotNewItems( const KFileItemList & ) ) ); + connect( mpDirLister, TQT_SIGNAL( deleteItem( KFileItem * ) ), + this, TQT_SLOT( slotDeleteItem( KFileItem * ) ) ); + connect( mpDirLister, TQT_SIGNAL( refreshItems( const KFileItemList & ) ), + this, TQT_SLOT( slotRefreshItems( const KFileItemList & ) ) ); reloadList(); } @@ -135,7 +135,7 @@ int MediaApplet::heightForWidth( int /*width*/ ) const return mButtonSizeSum; } -void MediaApplet::resizeEvent( QResizeEvent *) +void MediaApplet::resizeEvent( TQResizeEvent *) { arrangeButtons(); } @@ -323,7 +323,7 @@ void MediaApplet::slotRefreshItems(const KFileItemList &entries) { kdDebug()<<"MediaApplet::slotRefreshItems:"<<(*it.current()).url().url()<<endl; - QString mimetype = (*it.current()).mimetype(); + TQString mimetype = (*it.current()).mimetype(); bool found = false; kdDebug()<<"mimetype="<<mimetype<<endl; @@ -423,7 +423,7 @@ void MediaApplet::reloadList() mpDirLister->openURL(KURL("media:/")); } -void MediaApplet::mousePressEvent(QMouseEvent *e) +void MediaApplet::mousePressEvent(TQMouseEvent *e) { if(e->button()==RightButton) { |