summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/tempo
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:05:43 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:05:43 -0600
commitfb3718a55f355cd22f9eb9fa4e89cd3b84b8c9ca (patch)
tree5785d2ccbdfbe2f44d02fec75b4a51f5079a4b62 /src/gui/editors/tempo
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/tempo')
-rw-r--r--src/gui/editors/tempo/TempoListItem.h6
-rw-r--r--src/gui/editors/tempo/TempoView.cpp22
-rw-r--r--src/gui/editors/tempo/TempoView.h4
3 files changed, 16 insertions, 16 deletions
diff --git a/src/gui/editors/tempo/TempoListItem.h b/src/gui/editors/tempo/TempoListItem.h
index 4d62ab0..7f81f27 100644
--- a/src/gui/editors/tempo/TempoListItem.h
+++ b/src/gui/editors/tempo/TempoListItem.h
@@ -33,7 +33,7 @@ namespace Rosegarden {
class Composition;
-class TempoListItem : public KListViewItem
+class TempoListItem : public TDEListViewItem
{
public:
enum Type { TimeSignature, Tempo };
@@ -42,12 +42,12 @@ public:
Type type,
timeT time,
int index,
- KListView *parent,
+ TDEListView *parent,
TQString label1,
TQString label2,
TQString label3,
TQString label4 = TQString()) :
- KListViewItem(parent, label1, label2, label3, label4),
+ TDEListViewItem(parent, label1, label2, label3, label4),
m_composition(composition),
m_type(type),
m_time(time),
diff --git a/src/gui/editors/tempo/TempoView.cpp b/src/gui/editors/tempo/TempoView.cpp
index 4386cb2..d5c4013 100644
--- a/src/gui/editors/tempo/TempoView.cpp
+++ b/src/gui/editors/tempo/TempoView.cpp
@@ -97,7 +97,7 @@ TempoView::TempoView(RosegardenGUIDoc *doc, TQWidget *parent, timeT openTime):
connect(m_filterGroup, TQT_SIGNAL(released(int)),
TQT_SLOT(slotModifyFilter(int)));
- m_list = new KListView(getCentralWidget());
+ m_list = new TDEListView(getCentralWidget());
m_list->setItemsRenameable(true);
m_grid->addWidget(m_list, 2, 1);
@@ -578,48 +578,48 @@ TempoView::setupActions()
TQString pixmapDir = TDEGlobal::dirs()->findResource("appdata", "pixmaps/");
TQIconSet icon(TQPixmap(pixmapDir + "/toolbar/event-insert-tempo.png"));
- new KAction(AddTempoChangeCommand::getGlobalName(), icon, Key_I, TQT_TQOBJECT(this),
+ new TDEAction(AddTempoChangeCommand::getGlobalName(), icon, Key_I, TQT_TQOBJECT(this),
TQT_SLOT(slotEditInsertTempo()), actionCollection(),
"insert_tempo");
TQCanvasPixmap pixmap(pixmapDir + "/toolbar/event-insert-timesig.png");
icon = TQIconSet(pixmap);
- new KAction(AddTimeSignatureCommand::getGlobalName(), icon, Key_G, TQT_TQOBJECT(this),
+ new TDEAction(AddTimeSignatureCommand::getGlobalName(), icon, Key_G, TQT_TQOBJECT(this),
TQT_SLOT(slotEditInsertTimeSignature()), actionCollection(),
"insert_timesig");
pixmap.load(pixmapDir + "/toolbar/event-delete.png");
icon = TQIconSet(pixmap);
- new KAction(i18n("&Delete"), icon, Key_Delete, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Delete"), 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 Item"), icon, Key_E, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Edit Item"), icon, Key_E, TQT_TQOBJECT(this),
TQT_SLOT(slotEdit()), actionCollection(),
"edit");
- new KAction(i18n("Select &All"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Select &All"), 0, 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(TempoViewConfigGroup);
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");
@@ -629,7 +629,7 @@ TempoView::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");
@@ -639,7 +639,7 @@ TempoView::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");
diff --git a/src/gui/editors/tempo/TempoView.h b/src/gui/editors/tempo/TempoView.h
index 8f9bdca..b3e944f 100644
--- a/src/gui/editors/tempo/TempoView.h
+++ b/src/gui/editors/tempo/TempoView.h
@@ -41,7 +41,7 @@ class TQListViewItem;
class TQCloseEvent;
class TQCheckBox;
class TQButtonGroup;
-class KListView;
+class TDEListView;
namespace Rosegarden
@@ -152,7 +152,7 @@ protected:
virtual void closeEvent(TQCloseEvent *);
//--------------- Data members ---------------------------------
- KListView *m_list;
+ TDEListView *m_list;
int m_filter;
static int m_lastSetFilter;