summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/AudioRouteMenu.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/widgets/AudioRouteMenu.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/widgets/AudioRouteMenu.cpp')
-rw-r--r--src/gui/widgets/AudioRouteMenu.cpp30
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