diff options
Diffstat (limited to 'src/gui/rulers/StandardRuler.cpp')
-rw-r--r-- | src/gui/rulers/StandardRuler.cpp | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/src/gui/rulers/StandardRuler.cpp b/src/gui/rulers/StandardRuler.cpp index 611c991..4869d84 100644 --- a/src/gui/rulers/StandardRuler.cpp +++ b/src/gui/rulers/StandardRuler.cpp @@ -35,10 +35,10 @@ #include "gui/general/GUIPalette.h" #include "gui/rulers/LoopRuler.h" #include "document/RosegardenGUIDoc.h" -#include <qobject.h> -#include <qtooltip.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqobject.h> +#include <tqtooltip.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden @@ -49,10 +49,10 @@ StandardRuler::StandardRuler(RosegardenGUIDoc *doc, double xorigin, int barHeight, bool invert, - QWidget* parent, + TQWidget* parent, const char* name, WFlags f): - QVBox(parent, name, f), + TQVBox(parent, name, f), m_invert(invert), m_loopRulerHeight(10), m_currentXOffset(0), @@ -75,9 +75,9 @@ StandardRuler::StandardRuler(RosegardenGUIDoc *doc, (m_doc, m_rulerScale, barHeight - m_loopRulerHeight, xorigin, this); } - QObject::connect - (doc->getCommandHistory(), SIGNAL(commandExecuted()), - this, SLOT(update())); + TQObject::connect + (doc->getCommandHistory(), TQT_SIGNAL(commandExecuted()), + this, TQT_SLOT(update())); } @@ -95,50 +95,50 @@ void StandardRuler::connectRulerToDocPointer(RosegardenGUIDoc *doc) // pointer and loop drag signals are specific to the current view, // so they are re-emitted from the loop ruler by this widget // - QObject::connect - (m_loopRuler, SIGNAL(setPointerPosition(timeT)), - doc, SLOT(slotSetPointerPosition(timeT))); + TQObject::connect + (m_loopRuler, TQT_SIGNAL(setPointerPosition(timeT)), + doc, TQT_SLOT(slotSetPointerPosition(timeT))); - QObject::connect - (m_hButtonBar, SIGNAL(setPointerPosition(timeT)), - doc, SLOT(slotSetPointerPosition(timeT))); + TQObject::connect + (m_hButtonBar, TQT_SIGNAL(setPointerPosition(timeT)), + doc, TQT_SLOT(slotSetPointerPosition(timeT))); - QObject::connect - (m_hButtonBar, SIGNAL(editMarkers()), - RosegardenGUIApp::self(), SLOT(slotEditMarkers())); + TQObject::connect + (m_hButtonBar, TQT_SIGNAL(editMarkers()), + RosegardenGUIApp::self(), TQT_SLOT(slotEditMarkers())); - QObject::connect - (m_hButtonBar, SIGNAL(addMarker(timeT)), - RosegardenGUIApp::self(), SLOT(slotAddMarker(timeT))); + TQObject::connect + (m_hButtonBar, TQT_SIGNAL(addMarker(timeT)), + RosegardenGUIApp::self(), TQT_SLOT(slotAddMarker(timeT))); - QObject::connect - (m_hButtonBar, SIGNAL(deleteMarker(int, timeT, QString, QString)), - RosegardenGUIApp::self(), SLOT(slotDeleteMarker(int, timeT, QString, QString))); + TQObject::connect + (m_hButtonBar, TQT_SIGNAL(deleteMarker(int, timeT, TQString, TQString)), + RosegardenGUIApp::self(), TQT_SLOT(slotDeleteMarker(int, timeT, TQString, TQString))); - QObject::connect - (m_loopRuler, SIGNAL(dragPointerToPosition(timeT)), - this, SIGNAL(dragPointerToPosition(timeT))); + TQObject::connect + (m_loopRuler, TQT_SIGNAL(dragPointerToPosition(timeT)), + this, TQT_SIGNAL(dragPointerToPosition(timeT))); - QObject::connect - (m_loopRuler, SIGNAL(dragLoopToPosition(timeT)), - this, SIGNAL(dragLoopToPosition(timeT))); + TQObject::connect + (m_loopRuler, TQT_SIGNAL(dragLoopToPosition(timeT)), + this, TQT_SIGNAL(dragLoopToPosition(timeT))); - QObject::connect - (m_loopRuler, SIGNAL(setPlayPosition(timeT)), - RosegardenGUIApp::self(), SLOT(slotSetPlayPosition(timeT))); + TQObject::connect + (m_loopRuler, TQT_SIGNAL(setPlayPosition(timeT)), + RosegardenGUIApp::self(), TQT_SLOT(slotSetPlayPosition(timeT))); - QObject::connect - (m_hButtonBar, SIGNAL(setLoop(timeT, timeT)), - doc, SLOT(slotSetLoop(timeT, timeT))); + TQObject::connect + (m_hButtonBar, TQT_SIGNAL(setLoop(timeT, timeT)), + doc, TQT_SLOT(slotSetLoop(timeT, timeT))); - QObject::connect - (m_loopRuler, SIGNAL(setLoop(timeT, timeT)), - doc, SLOT(slotSetLoop(timeT, timeT))); + TQObject::connect + (m_loopRuler, TQT_SIGNAL(setLoop(timeT, timeT)), + doc, TQT_SLOT(slotSetLoop(timeT, timeT))); - QObject::connect - (doc, SIGNAL(loopChanged(timeT, timeT)), + TQObject::connect + (doc, TQT_SIGNAL(loopChanged(timeT, timeT)), m_loopRuler, - SLOT(slotSetLoopMarker(timeT, timeT))); + TQT_SLOT(slotSetLoopMarker(timeT, timeT))); m_loopRuler->setBackgroundColor(GUIPalette::getColour(GUIPalette::PointerRuler)); } @@ -161,11 +161,11 @@ void StandardRuler::setHScaleFactor(double dy) m_loopRuler->setHScaleFactor(dy); } -void StandardRuler::paintEvent(QPaintEvent *e) +void StandardRuler::paintEvent(TQPaintEvent *e) { m_hButtonBar->update(); m_loopRuler->update(); - QWidget::paintEvent(e); + TQWidget::paintEvent(e); } } |