summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/segment/TrackLabel.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/TrackLabel.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/TrackLabel.cpp')
-rw-r--r--src/gui/editors/segment/TrackLabel.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/gui/editors/segment/TrackLabel.cpp b/src/gui/editors/segment/TrackLabel.cpp
index 90561d1..9df485f 100644
--- a/src/gui/editors/segment/TrackLabel.cpp
+++ b/src/gui/editors/segment/TrackLabel.cpp
@@ -28,16 +28,16 @@
#include <klocale.h>
#include "base/Track.h"
#include <klineeditdlg.h>
-#include <qfont.h>
-#include <qframe.h>
-#include <qlabel.h>
-#include <qregexp.h>
-#include <qstring.h>
-#include <qtimer.h>
-#include <qtooltip.h>
-#include <qwidget.h>
-#include <qwidgetstack.h>
-#include <qvalidator.h>
+#include <tqfont.h>
+#include <tqframe.h>
+#include <tqlabel.h>
+#include <tqregexp.h>
+#include <tqstring.h>
+#include <tqtimer.h>
+#include <tqtooltip.h>
+#include <tqwidget.h>
+#include <tqwidgetstack.h>
+#include <tqvalidator.h>
namespace Rosegarden
@@ -45,15 +45,15 @@ namespace Rosegarden
TrackLabel::TrackLabel(TrackId id,
int position,
- QWidget *parent,
+ TQWidget *parent,
const char *name):
- QWidgetStack(parent, name),
- m_instrumentLabel(new QLabel(this)),
- m_trackLabel(new QLabel(this)),
+ TQWidgetStack(parent, name),
+ m_instrumentLabel(new TQLabel(this)),
+ m_trackLabel(new TQLabel(this)),
m_id(id),
m_position(position)
{
- QFont font;
+ TQFont font;
font.setPointSize(font.pointSize() * 95 / 100);
if (font.pixelSize() > 14)
font.setPixelSize(14);
@@ -65,15 +65,15 @@ TrackLabel::TrackLabel(TrackId id,
addWidget(m_trackLabel, ShowTrack);
raiseWidget(ShowTrack);
- m_instrumentLabel->setFrameShape(QFrame::NoFrame);
- m_trackLabel->setFrameShape(QFrame::NoFrame);
+ m_instrumentLabel->setFrameShape(TQFrame::NoFrame);
+ m_trackLabel->setFrameShape(TQFrame::NoFrame);
- m_pressTimer = new QTimer(this);
+ m_pressTimer = new TQTimer(this);
- connect(m_pressTimer, SIGNAL(timeout()),
- this, SIGNAL(changeToInstrumentList()));
+ connect(m_pressTimer, TQT_SIGNAL(timeout()),
+ this, TQT_SIGNAL(changeToInstrumentList()));
- QToolTip::add
+ TQToolTip::add
(this, i18n("Click and hold with left mouse button to assign this Track to an Instrument."));
}
@@ -87,7 +87,7 @@ void TrackLabel::setIndent(int i)
m_trackLabel->setIndent(i);
}
-void TrackLabel::setAlternativeLabel(const QString &label)
+void TrackLabel::setAlternativeLabel(const TQString &label)
{
// recover saved original
if (label.isEmpty()) {
@@ -142,7 +142,7 @@ TrackLabel::setSelected(bool on)
}
void
-TrackLabel::mousePressEvent(QMouseEvent *e)
+TrackLabel::mousePressEvent(TQMouseEvent *e)
{
if (e->button() == RightButton) {
@@ -157,7 +157,7 @@ TrackLabel::mousePressEvent(QMouseEvent *e)
}
void
-TrackLabel::mouseReleaseEvent(QMouseEvent *e)
+TrackLabel::mouseReleaseEvent(TQMouseEvent *e)
{
// stop the timer if running
if (m_pressTimer->isActive())
@@ -169,7 +169,7 @@ TrackLabel::mouseReleaseEvent(QMouseEvent *e)
}
void
-TrackLabel::mouseDoubleClickEvent(QMouseEvent *e)
+TrackLabel::mouseDoubleClickEvent(TQMouseEvent *e)
{
if (e->button() != LeftButton)
return ;
@@ -186,9 +186,9 @@ TrackLabel::mouseDoubleClickEvent(QMouseEvent *e)
bool ok = false;
- QRegExpValidator validator(QRegExp(".*"), this); // empty is OK
+ TQRegExpValidator validator(TQRegExp(".*"), this); // empty is OK
- QString newText = KLineEditDlg::getText(i18n("Change track name"),
+ TQString newText = KLineEditDlg::getText(i18n("Change track name"),
i18n("Enter new track name"),
m_trackLabel->text(),
&ok,