summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/segment/segmentcanvas/AudioPreviewPainter.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
commit11f31c37e5fa4889d9989f10272f44845449cb7b (patch)
tree4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/editors/segment/segmentcanvas/AudioPreviewPainter.cpp
parent832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff)
downloadrosegarden-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/editors/segment/segmentcanvas/AudioPreviewPainter.cpp')
-rw-r--r--src/gui/editors/segment/segmentcanvas/AudioPreviewPainter.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/editors/segment/segmentcanvas/AudioPreviewPainter.cpp b/src/gui/editors/segment/segmentcanvas/AudioPreviewPainter.cpp
index 1b982dc..b0d3f3b 100644
--- a/src/gui/editors/segment/segmentcanvas/AudioPreviewPainter.cpp
+++ b/src/gui/editors/segment/segmentcanvas/AudioPreviewPainter.cpp
@@ -34,8 +34,8 @@
#include "misc/Debug.h"
#include "document/ConfigGroups.h"
-#include <qimage.h>
-#include <qapplication.h>
+#include <tqimage.h>
+#include <tqapplication.h>
#include <kapp.h>
#include <kconfig.h>
@@ -57,7 +57,7 @@ AudioPreviewPainter::AudioPreviewPainter(CompositionModelImpl& model,
{
int pixWidth = std::min(m_rect.getBaseWidth(), tileWidth());
- m_image = QImage(pixWidth, m_rect.height(), 8, 4);
+ m_image = TQImage(pixWidth, m_rect.height(), 8, 4);
m_image.setAlphaBuffer(true);
m_penWidth = (std::max(1U, m_rect.getPen().width()) * 2);
@@ -67,7 +67,7 @@ AudioPreviewPainter::AudioPreviewPainter(CompositionModelImpl& model,
int AudioPreviewPainter::tileWidth()
{
static int tw = -1;
- if (tw == -1) tw = QApplication::desktop()->width();
+ if (tw == -1) tw = TQApplication::desktop()->width();
return tw;
}
@@ -294,7 +294,7 @@ void AudioPreviewPainter::finalizeCurrentSlice()
m_image.setColor(0, qRgba(255, 255, 255, 0));
// foreground from computeSegmentPreviewColor
- QColor c = m_model.computeSegmentPreviewColor(m_segment);
+ TQColor c = m_model.computeSegmentPreviewColor(m_segment);
QRgb rgba = qRgba(c.red(), c.green(), c.blue(), 255);
m_image.setColor(1, rgba);