diff options
Diffstat (limited to 'src/gui/widgets/AudioRouteMenu.cpp')
-rw-r--r-- | src/gui/widgets/AudioRouteMenu.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/gui/widgets/AudioRouteMenu.cpp b/src/gui/widgets/AudioRouteMenu.cpp index 6f4c93f..0cdc889 100644 --- a/src/gui/widgets/AudioRouteMenu.cpp +++ b/src/gui/widgets/AudioRouteMenu.cpp @@ -34,22 +34,22 @@ #include "sound/MappedStudio.h" #include <kcombobox.h> #include <klocale.h> -#include <qcursor.h> -#include <qobject.h> -#include <qpoint.h> -#include <qstring.h> -#include <qwidget.h> +#include <tqcursor.h> +#include <tqobject.h> +#include <tqpoint.h> +#include <tqstring.h> +#include <tqwidget.h> namespace Rosegarden { -AudioRouteMenu::AudioRouteMenu(QWidget *par, +AudioRouteMenu::AudioRouteMenu(TQWidget *par, Direction direction, Format format, Studio *studio, Instrument *instrument) : - QObject(par), + TQObject(par), m_studio(studio), m_instrument(instrument), m_direction(direction), @@ -60,15 +60,15 @@ AudioRouteMenu::AudioRouteMenu(QWidget *par, case Compact: { m_combo = 0; m_button = new WheelyButton(par); - connect(m_button, SIGNAL(wheel(bool)), this, SLOT(slotWheel(bool))); - connect(m_button, SIGNAL(clicked()), this, SLOT(slotShowMenu())); + connect(m_button, TQT_SIGNAL(wheel(bool)), this, TQT_SLOT(slotWheel(bool))); + connect(m_button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotShowMenu())); break; } case Regular: { m_button = 0; m_combo = new KComboBox(par); - connect(m_combo, SIGNAL(activated(int)), this, SLOT(slotEntrySelected(int))); + connect(m_combo, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotEntrySelected(int))); break; } @@ -77,7 +77,7 @@ AudioRouteMenu::AudioRouteMenu(QWidget *par, slotRepopulate(); } -QWidget * +TQWidget * AudioRouteMenu::getWidget() { if (m_button) @@ -133,17 +133,17 @@ AudioRouteMenu::slotShowMenu() if (getNumEntries() == 0) return ; - RosegardenPopupMenu *menu = new RosegardenPopupMenu((QWidget *)parent()); + RosegardenPopupMenu *menu = new RosegardenPopupMenu((TQWidget *)parent()); for (int i = 0; i < getNumEntries(); ++i) { - menu->insertItem(getEntryText(i), this, SLOT(slotEntrySelected(int)), + menu->insertItem(getEntryText(i), this, TQT_SLOT(slotEntrySelected(int)), 0, i); menu->setItemParameter(i, i); } int itemHeight = menu->itemHeight(0) + 2; - QPoint pos = QCursor::pos(); + TQPoint pos = TQCursor::pos(); pos.rx() -= 10; pos.ry() -= (itemHeight / 2 + getCurrentEntry() * itemHeight); @@ -261,7 +261,7 @@ AudioRouteMenu::getEntryText(int entry) return i18n("Sub %1").arg(entry); } - return QString(); + return TQString(); } void |