summaryrefslogtreecommitdiff
path: root/muse2/muse/synth.cpp
diff options
context:
space:
mode:
authorOrcan Ogetbil <oget.fedora@gmail.com>2010-11-28 02:49:05 +0000
committerOrcan Ogetbil <oget.fedora@gmail.com>2010-11-28 02:49:05 +0000
commit24fe49ade1524c1c2b4a6e97d7281457ece4912c (patch)
tree6e5fcccfc17f647ecfcb97c5192e6a53f838ad13 /muse2/muse/synth.cpp
parent460049b88bcd2aa374895a0fdaac2608f25418a8 (diff)
See ChangeLog
Diffstat (limited to 'muse2/muse/synth.cpp')
-rw-r--r--muse2/muse/synth.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/muse2/muse/synth.cpp b/muse2/muse/synth.cpp
index b6e06e65..8955bd3b 100644
--- a/muse2/muse/synth.cpp
+++ b/muse2/muse/synth.cpp
@@ -14,10 +14,10 @@
#include <sys/mman.h>
#include <vector>
#include <fcntl.h>
-
-#include <qdir.h>
#include <dlfcn.h>
-#include <q3popupmenu.h>
+
+#include <QDir>
+#include <QMenu>
#include "app.h"
#include "synth.h"
@@ -818,7 +818,7 @@ const char* MessSynthIF::getPatchName(int channel, int prog, MType type, bool dr
// populatePatchPopup
//---------------------------------------------------------
-void MessSynthIF::populatePatchPopup(Q3PopupMenu* menu, int ch, MType, bool)
+void MessSynthIF::populatePatchPopup(QMenu* menu, int ch, MType, bool)
{
menu->clear();
const MidiPatch* mp = _mess->getPatchInfo(ch, 0);
@@ -834,7 +834,8 @@ void MessSynthIF::populatePatchPopup(Q3PopupMenu* menu, int ch, MType, bool)
itemnum =
}
*/
- menu->insertItem(QString(mp->name), id);
+ QAction *act = menu->addAction(QString(mp->name));
+ act->setData(id);
mp = _mess->getPatchInfo(ch, mp);
}
}