summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/eventlist
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-01 15:05:43 -0600
committerTimothy Pearson <[email protected]>2013-02-01 15:05:43 -0600
commitfb3718a55f355cd22f9eb9fa4e89cd3b84b8c9ca (patch)
tree5785d2ccbdfbe2f44d02fec75b4a51f5079a4b62 /src/gui/editors/eventlist
parentacf699af8244896500e654cccdc8aae7e5b545db (diff)
downloadrosegarden-fb3718a55f355cd22f9eb9fa4e89cd3b84b8c9ca.tar.gz
rosegarden-fb3718a55f355cd22f9eb9fa4e89cd3b84b8c9ca.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'src/gui/editors/eventlist')
-rw-r--r--src/gui/editors/eventlist/EventView.cpp26
-rw-r--r--src/gui/editors/eventlist/EventView.h4
-rw-r--r--src/gui/editors/eventlist/EventViewItem.h16
3 files changed, 23 insertions, 23 deletions
diff --git a/src/gui/editors/eventlist/EventView.cpp b/src/gui/editors/eventlist/EventView.cpp
index b804d17..ab32181 100644
--- a/src/gui/editors/eventlist/EventView.cpp
+++ b/src/gui/editors/eventlist/EventView.cpp
@@ -146,7 +146,7 @@ EventView::EventView(RosegardenGUIDoc *doc,
connect(m_filterGroup, TQT_SIGNAL(released(int)),
TQT_SLOT(slotModifyFilter(int)));
- m_eventList = new KListView(getCentralWidget());
+ m_eventList = new TDEListView(getCentralWidget());
m_eventList->setItemsRenameable(true);
m_grid->addWidget(m_eventList, 2, 1);
@@ -1120,53 +1120,53 @@ EventView::setupActions()
TQString pixmapDir = TDEGlobal::dirs()->findResource("appdata", "pixmaps/");
TQIconSet icon(TQPixmap(pixmapDir + "/toolbar/event-insert.png"));
- new KAction(i18n("&Insert Event"), icon, Key_I, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Insert Event"), icon, Key_I, TQT_TQOBJECT(this),
TQT_SLOT(slotEditInsert()), actionCollection(),
"insert");
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/event-delete.png");
icon = TQIconSet(pixmap);
- new KAction(i18n("&Delete Event"), icon, Key_Delete, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Delete Event"), icon, Key_Delete, TQT_TQOBJECT(this),
TQT_SLOT(slotEditDelete()), actionCollection(),
"delete");
pixmap.load(pixmapDir + "/toolbar/event-edit.png");
icon = TQIconSet(pixmap);
- new KAction(i18n("&Edit Event"), icon, Key_E, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Edit Event"), icon, Key_E, TQT_TQOBJECT(this),
TQT_SLOT(slotEditEvent()), actionCollection(),
"edit_simple");
pixmap.load(pixmapDir + "/toolbar/event-edit-advanced.png");
icon = TQIconSet(pixmap);
- new KAction(i18n("&Advanced Event Editor"), icon, Key_A, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Advanced Event Editor"), icon, Key_A, TQT_TQOBJECT(this),
TQT_SLOT(slotEditEventAdvanced()), actionCollection(),
"edit_advanced");
// icon = TQIconSet(TQCanvasPixmap(pixmapDir + "/toolbar/eventfilter.xpm"));
- new KAction(i18n("&Filter Selection"), "filter", Key_F, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Filter Selection"), "filter", Key_F, TQT_TQOBJECT(this),
TQT_SLOT(slotFilterSelection()), actionCollection(),
"filter_selection");
- new KAction(i18n("Select &All"), Key_A + CTRL, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Select &All"), Key_A + CTRL, TQT_TQOBJECT(this),
TQT_SLOT(slotSelectAll()), actionCollection(),
"select_all");
- new KAction(i18n("Clear Selection"), Key_Escape, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Clear Selection"), Key_Escape, TQT_TQOBJECT(this),
TQT_SLOT(slotClearSelection()), actionCollection(),
"clear_selection");
m_config->setGroup(EventViewConfigGroup);
int timeMode = m_config->readNumEntry("timemode", 0);
- KRadioAction *action;
+ TDERadioAction *action;
pixmap.load(pixmapDir + "/toolbar/time-musical.png");
icon = TQIconSet(pixmap);
- action = new KRadioAction(i18n("&Musical Times"), icon, 0, TQT_TQOBJECT(this),
+ action = new TDERadioAction(i18n("&Musical Times"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotMusicalTime()),
actionCollection(), "time_musical");
action->setExclusiveGroup("timeMode");
@@ -1176,7 +1176,7 @@ EventView::setupActions()
pixmap.load(pixmapDir + "/toolbar/time-real.png");
icon = TQIconSet(pixmap);
- action = new KRadioAction(i18n("&Real Times"), icon, 0, TQT_TQOBJECT(this),
+ action = new TDERadioAction(i18n("&Real Times"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRealTime()),
actionCollection(), "time_real");
action->setExclusiveGroup("timeMode");
@@ -1186,7 +1186,7 @@ EventView::setupActions()
pixmap.load(pixmapDir + "/toolbar/time-raw.png");
icon = TQIconSet(pixmap);
- action = new KRadioAction(i18n("Ra&w Times"), icon, 0, TQT_TQOBJECT(this),
+ action = new TDERadioAction(i18n("Ra&w Times"), icon, 0, TQT_TQOBJECT(this),
TQT_SLOT(slotRawTime()),
actionCollection(), "time_raw");
action->setExclusiveGroup("timeMode");
@@ -1194,7 +1194,7 @@ EventView::setupActions()
action->setChecked(true);
if (m_isTriggerSegment) {
- KAction *action = actionCollection()->action("open_in_matrix");
+ TDEAction *action = actionCollection()->action("open_in_matrix");
if (action)
delete action;
action = actionCollection()->action("open_in_notation");
diff --git a/src/gui/editors/eventlist/EventView.h b/src/gui/editors/eventlist/EventView.h
index fb25502..a54b30d 100644
--- a/src/gui/editors/eventlist/EventView.h
+++ b/src/gui/editors/eventlist/EventView.h
@@ -44,7 +44,7 @@ class TQListViewItem;
class TQLabel;
class TQCheckBox;
class TQButtonGroup;
-class KListView;
+class TDEListView;
namespace Rosegarden
@@ -175,7 +175,7 @@ protected:
TQLabel *m_triggerPitch;
TQLabel *m_triggerVelocity;
- KListView *m_eventList;
+ TDEListView *m_eventList;
int m_eventFilter;
static int m_lastSetEventFilter;
diff --git a/src/gui/editors/eventlist/EventViewItem.h b/src/gui/editors/eventlist/EventViewItem.h
index b46f8b2..e86544f 100644
--- a/src/gui/editors/eventlist/EventViewItem.h
+++ b/src/gui/editors/eventlist/EventViewItem.h
@@ -36,20 +36,20 @@ class Event;
// EventView specialisation of a TQListViewItem with the
// addition of a segment pointer
//
-class EventViewItem : public KListViewItem
+class EventViewItem : public TDEListViewItem
{
public:
EventViewItem(Rosegarden::Segment *segment,
Rosegarden::Event *event,
- KListView *parent) :
- KListViewItem(parent),
+ TDEListView *parent) :
+ TDEListViewItem(parent),
m_segment(segment),
m_event(event) {;}
EventViewItem(Rosegarden::Segment *segment,
Rosegarden::Event *event,
- KListViewItem *parent) :
- KListViewItem(parent),
+ TDEListViewItem *parent) :
+ TDEListViewItem(parent),
m_segment(segment),
m_event(event) {;}
@@ -63,14 +63,14 @@ public:
TQString label6 = TQString(),
TQString label7 = TQString(),
TQString label8 = TQString()) :
- KListViewItem(parent, label1, label2, label3, label4,
+ TDEListViewItem(parent, label1, label2, label3, label4,
label5, label6, label7, label8),
m_segment(segment),
m_event(event) {;}
EventViewItem(Rosegarden::Segment *segment,
Rosegarden::Event *event,
- KListViewItem *parent, TQString label1,
+ TDEListViewItem *parent, TQString label1,
TQString label2 = TQString(),
TQString label3 = TQString(),
TQString label4 = TQString(),
@@ -78,7 +78,7 @@ public:
TQString label6 = TQString(),
TQString label7 = TQString(),
TQString label8 = TQString()) :
- KListViewItem(parent, label1, label2, label3, label4,
+ TDEListViewItem(parent, label1, label2, label3, label4,
label5, label6, label7, label8),
m_segment(segment),
m_event(event) {;}