diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
commit | 11f31c37e5fa4889d9989f10272f44845449cb7b (patch) | |
tree | 4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/widgets/AudioListView.cpp | |
parent | 832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff) | |
download | rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip |
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/widgets/AudioListView.cpp')
-rw-r--r-- | src/gui/widgets/AudioListView.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/widgets/AudioListView.cpp b/src/gui/widgets/AudioListView.cpp index 45193a6..3c75526 100644 --- a/src/gui/widgets/AudioListView.cpp +++ b/src/gui/widgets/AudioListView.cpp @@ -27,11 +27,11 @@ #include "misc/Debug.h" #include "gui/widgets/AudioListItem.h" -#include "qdragobject.h" +#include "tqdragobject.h" namespace Rosegarden { -AudioListView::AudioListView(QWidget *parent, const char *name) +AudioListView::AudioListView(TQWidget *parent, const char *name) : KListView(parent, name) { setDragEnabled(true); @@ -39,17 +39,17 @@ AudioListView::AudioListView(QWidget *parent, const char *name) setDropVisualizer(false); } -bool AudioListView::acceptDrag(QDropEvent* e) const +bool AudioListView::acceptDrag(TQDropEvent* e) const { - return QUriDrag::canDecode(e) || KListView::acceptDrag(e); + return TQUriDrag::canDecode(e) || KListView::acceptDrag(e); } -QDragObject* AudioListView::dragObject() +TQDragObject* AudioListView::dragObject() { AudioListItem* item = dynamic_cast<AudioListItem*>(currentItem()); - QString audioData; - QTextOStream ts(&audioData); + TQString audioData; + TQTextOStream ts(&audioData); ts << "AudioFileManager\n" << item->getId() << '\n' << item->getStartTime().sec << '\n' @@ -61,7 +61,7 @@ QDragObject* AudioListView::dragObject() << "file id = " << item->getId() << ", start time = " << item->getStartTime() << endl; - return new QTextDrag(audioData, this); + return new TQTextDrag(audioData, this); } } |