summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/BigArrowButton.h2
-rw-r--r--src/gui/widgets/DiatonicPitchChooser.cpp2
-rw-r--r--src/gui/widgets/Fader.cpp2
-rw-r--r--src/gui/widgets/PitchChooser.cpp2
-rw-r--r--src/gui/widgets/PitchDragLabel.cpp2
-rw-r--r--src/gui/widgets/QuantizeParameters.cpp8
-rw-r--r--src/gui/widgets/Rotary.cpp10
-rw-r--r--src/gui/widgets/ScrollBox.cpp6
-rw-r--r--src/gui/widgets/TimeWidget.cpp4
-rw-r--r--src/gui/widgets/ZoomSlider.h4
10 files changed, 21 insertions, 21 deletions
diff --git a/src/gui/widgets/BigArrowButton.h b/src/gui/widgets/BigArrowButton.h
index 10205c5..f7972c7 100644
--- a/src/gui/widgets/BigArrowButton.h
+++ b/src/gui/widgets/BigArrowButton.h
@@ -30,7 +30,7 @@ namespace Rosegarden {
class BigArrowButton : public KArrowButton
{
public:
- BigArrowButton(TQWidget *parent = 0, Qt::ArrowType arrow = Qt::UpArrow,
+ BigArrowButton(TQWidget *parent = 0, TQt::ArrowType arrow = TQt::UpArrow,
const char *name = 0) :
KArrowButton(parent, arrow, name) { }
virtual ~BigArrowButton() { }
diff --git a/src/gui/widgets/DiatonicPitchChooser.cpp b/src/gui/widgets/DiatonicPitchChooser.cpp
index 830568f..aae228b 100644
--- a/src/gui/widgets/DiatonicPitchChooser.cpp
+++ b/src/gui/widgets/DiatonicPitchChooser.cpp
@@ -45,7 +45,7 @@ DiatonicPitchChooser::DiatonicPitchChooser(TQString title,
int defaultNote,
int defaultPitch,
int defaultOctave) :
- TQGroupBox(1, Qt::Horizontal, title, parent),
+ TQGroupBox(1, TQt::Horizontal, title, parent),
m_defaultPitch(defaultPitch)
{
m_pitchDragLabel = new PitchDragLabel(this, defaultPitch);
diff --git a/src/gui/widgets/Fader.cpp b/src/gui/widgets/Fader.cpp
index 91e416f..d7a24ea 100644
--- a/src/gui/widgets/Fader.cpp
+++ b/src/gui/widgets/Fader.cpp
@@ -318,7 +318,7 @@ Fader::mousePressEvent(TQMouseEvent *e)
{
m_clickMousePos = -1;
- if (e->button() == Qt::LeftButton) {
+ if (e->button() == TQt::LeftButton) {
if (e->type() == TQEvent::MouseButtonDblClick) {
setFader(0);
diff --git a/src/gui/widgets/PitchChooser.cpp b/src/gui/widgets/PitchChooser.cpp
index 543ec42..d56b028 100644
--- a/src/gui/widgets/PitchChooser.cpp
+++ b/src/gui/widgets/PitchChooser.cpp
@@ -40,7 +40,7 @@ namespace Rosegarden
PitchChooser::PitchChooser(TQString title,
TQWidget *parent,
int defaultPitch) :
- TQGroupBox(1, Qt::Horizontal, title, parent),
+ TQGroupBox(1, TQt::Horizontal, title, parent),
m_defaultPitch(defaultPitch)
{
m_pitchDragLabel = new PitchDragLabel(this, defaultPitch);
diff --git a/src/gui/widgets/PitchDragLabel.cpp b/src/gui/widgets/PitchDragLabel.cpp
index 33f2751..2eb2d36 100644
--- a/src/gui/widgets/PitchDragLabel.cpp
+++ b/src/gui/widgets/PitchDragLabel.cpp
@@ -82,7 +82,7 @@ PitchDragLabel::slotSetPitch(int pitch, int octave, int step)
void
PitchDragLabel::mousePressEvent(TQMouseEvent *e)
{
- if (e->button() == Qt::LeftButton) {
+ if (e->button() == TQt::LeftButton) {
m_clickedY = e->y();
m_clickedPitch = m_pitch;
m_clicked = true;
diff --git a/src/gui/widgets/QuantizeParameters.cpp b/src/gui/widgets/QuantizeParameters.cpp
index ac8446f..c28e331 100644
--- a/src/gui/widgets/QuantizeParameters.cpp
+++ b/src/gui/widgets/QuantizeParameters.cpp
@@ -75,7 +75,7 @@ QuantizeParameters::QuantizeParameters(TQWidget *parent,
}
TQGroupBox *quantizerBox = new TQGroupBox
- (1, Qt::Horizontal, i18n("Quantizer"), this);
+ (1, TQt::Horizontal, i18n("Quantizer"), this);
m_mainLayout->addWidget(quantizerBox, zero, 0);
TQFrame *typeFrame = new TQFrame(quantizerBox);
@@ -99,7 +99,7 @@ QuantizeParameters::QuantizeParameters(TQWidget *parent,
m_mainLayout->addWidget(parameterBox, zero + 1, 0);
m_notationBox = new TQGroupBox
- (1, Qt::Horizontal, i18n("Notation parameters"), parameterBox);
+ (1, TQt::Horizontal, i18n("Notation parameters"), parameterBox);
TQFrame *notationFrame = new TQFrame(m_notationBox);
layout = new TQGridLayout(notationFrame, 4, 2, 5, 3);
@@ -140,7 +140,7 @@ QuantizeParameters::QuantizeParameters(TQWidget *parent,
layout->addMultiCellWidget(m_counterpoint, 3, 3, 0, 1);
m_gridBox = new TQGroupBox
- (1, Qt::Horizontal, i18n("Grid parameters"), parameterBox);
+ (1, TQt::Horizontal, i18n("Grid parameters"), parameterBox);
TQFrame *gridFrame = new TQFrame(m_gridBox);
layout = new TQGridLayout(gridFrame, 4, 2, 5, 3);
@@ -164,7 +164,7 @@ QuantizeParameters::QuantizeParameters(TQWidget *parent,
layout->addMultiCellWidget(m_durationCheckBox, 3, 3, 0, 1);
m_postProcessingBox = new TQGroupBox
- (1, Qt::Horizontal, i18n("After quantization"), this);
+ (1, TQt::Horizontal, i18n("After quantization"), this);
if (!preamble.isNull()) {
m_mainLayout->addMultiCellWidget(m_postProcessingBox,
diff --git a/src/gui/widgets/Rotary.cpp b/src/gui/widgets/Rotary.cpp
index a9c24e8..4b5134f 100644
--- a/src/gui/widgets/Rotary.cpp
+++ b/src/gui/widgets/Rotary.cpp
@@ -371,17 +371,17 @@ Rotary::snapPosition()
void
Rotary::mousePressEvent(TQMouseEvent *e)
{
- if (e->button() == Qt::LeftButton) {
+ if (e->button() == TQt::LeftButton) {
m_buttonPressed = true;
m_lastY = e->y();
m_lastX = e->x();
- } else if (e->button() == Qt::MidButton) // reset to default
+ } else if (e->button() == TQt::MidButton) // reset to default
{
m_position = m_initialPosition;
snapPosition();
update();
emit valueChanged(m_snapPosition);
- } else if (e->button() == Qt::RightButton) // reset to centre position
+ } else if (e->button() == TQt::RightButton) // reset to centre position
{
m_position = (m_maxValue + m_minValue) / 2.0;
snapPosition();
@@ -405,7 +405,7 @@ Rotary::mousePressEvent(TQMouseEvent *e)
// std::cerr << "Rotary::mousePressEvent: logarithmic = " << m_logarithmic
// << ", position = " << m_position << std::endl;
- if (e->button() == Qt::RightButton || e->button() == Qt::MidButton) {
+ if (e->button() == TQt::RightButton || e->button() == TQt::MidButton) {
// one shot, 500ms
_floatTimer->start(500, true);
}
@@ -453,7 +453,7 @@ Rotary::mouseDoubleClickEvent(TQMouseEvent * /*e*/)
void
Rotary::mouseReleaseEvent(TQMouseEvent *e)
{
- if (e->button() == Qt::LeftButton) {
+ if (e->button() == TQt::LeftButton) {
m_buttonPressed = false;
m_lastY = 0;
m_lastX = 0;
diff --git a/src/gui/widgets/ScrollBox.cpp b/src/gui/widgets/ScrollBox.cpp
index c7e3efd..5f07495 100644
--- a/src/gui/widgets/ScrollBox.cpp
+++ b/src/gui/widgets/ScrollBox.cpp
@@ -51,15 +51,15 @@ ScrollBox::ScrollBox(TQWidget* parent, SizeMode sizeMode, const char* name) :
void ScrollBox::mousePressEvent(TQMouseEvent* e)
{
m_mouse = e->pos();
- if (e->button() == Qt::RightButton)
+ if (e->button() == TQt::RightButton)
emit button3Pressed();
- if (e->button() == Qt::MidButton)
+ if (e->button() == TQt::MidButton)
emit button2Pressed();
}
void ScrollBox::mouseMoveEvent(TQMouseEvent* e)
{
- if (e->state() != Qt::LeftButton)
+ if (e->state() != TQt::LeftButton)
return ;
int dx = (e->pos().x() - m_mouse.x()) * m_pagesize.width() / width();
diff --git a/src/gui/widgets/TimeWidget.cpp b/src/gui/widgets/TimeWidget.cpp
index b3d09e3..9fdddf6 100644
--- a/src/gui/widgets/TimeWidget.cpp
+++ b/src/gui/widgets/TimeWidget.cpp
@@ -51,7 +51,7 @@ TimeWidget::TimeWidget(TQString title,
timeT absTime,
bool editable,
bool constrainToCompositionDuration) :
- TQGroupBox(1, Qt::Horizontal, title, parent),
+ TQGroupBox(1, TQt::Horizontal, title, parent),
m_composition(composition),
m_isDuration(false),
m_constrain(constrainToCompositionDuration),
@@ -69,7 +69,7 @@ TimeWidget::TimeWidget(TQString title,
timeT duration,
bool editable,
bool constrainToCompositionDuration) :
- TQGroupBox(1, Qt::Horizontal, title, parent),
+ TQGroupBox(1, TQt::Horizontal, title, parent),
m_composition(composition),
m_isDuration(true),
m_constrain(constrainToCompositionDuration),
diff --git a/src/gui/widgets/ZoomSlider.h b/src/gui/widgets/ZoomSlider.h
index 4375dc6..8c713cc 100644
--- a/src/gui/widgets/ZoomSlider.h
+++ b/src/gui/widgets/ZoomSlider.h
@@ -57,7 +57,7 @@ public:
* to the user as a nice continuous range.
*/
ZoomSlider(const std::vector<T> &sizes, T defaultValue,
- Qt::Orientation, TQWidget * parent, const char * name=0);
+ TQt::Orientation, TQWidget * parent, const char * name=0);
virtual ~ZoomSlider();
@@ -81,7 +81,7 @@ protected:
template<class T>
ZoomSlider<T>::ZoomSlider(const std::vector<T> &sizes,
- T initialSize, Qt::Orientation o,
+ T initialSize, TQt::Orientation o,
TQWidget *parent, const char *name) :
TQSlider(0, sizes.size()-1, 1,
getIndex(sizes, initialSize), o, parent, name),