summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/EventEditDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/dialogs/EventEditDialog.cpp')
-rw-r--r--src/gui/dialogs/EventEditDialog.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/gui/dialogs/EventEditDialog.cpp b/src/gui/dialogs/EventEditDialog.cpp
index 6446246..fc73f51 100644
--- a/src/gui/dialogs/EventEditDialog.cpp
+++ b/src/gui/dialogs/EventEditDialog.cpp
@@ -57,10 +57,10 @@
namespace Rosegarden
{
-EventEditDialog::EventEditDialog(TQWidget *parent,
+EventEditDialog::EventEditDialog(TQWidget *tqparent,
const Event &event,
bool editable) :
- KDialogBase(parent, 0, true, i18n(editable ? "Advanced Event Edit" : "Advanced Event Viewer"),
+ KDialogBase(tqparent, 0, true, i18n(editable ? "Advanced Event Edit" : "Advanced Event Viewer"),
(editable ? (Ok | Cancel) : Ok)),
m_durationDisplay(0),
m_durationDisplayAux(0),
@@ -77,10 +77,10 @@ EventEditDialog::EventEditDialog(TQWidget *parent,
{
TQVBox *vbox = makeVBoxMainWidget();
- TQGroupBox *intrinsicBox = new QGroupBox
- (1, Horizontal, i18n("Intrinsics"), vbox);
+ TQGroupBox *intrinsicBox = new TQGroupBox
+ (1, Qt::Horizontal, i18n("Intrinsics"), vbox);
- TQGrid *intrinsicGrid = new TQGrid(4, TQGrid::Horizontal, intrinsicBox);
+ TQGrid *intrinsicGrid = new TQGrid(4, Qt::Horizontal, intrinsicBox);
new TQLabel(i18n("Event type: "), intrinsicGrid);
new TQLabel("", intrinsicGrid);
@@ -91,7 +91,7 @@ EventEditDialog::EventEditDialog(TQWidget *parent,
new TQLabel(i18n("Absolute time: "), intrinsicGrid);
new TQLabel("", intrinsicGrid);
new TQLabel("", intrinsicGrid);
- TQSpinBox *absoluteTime = new QSpinBox
+ TQSpinBox *absoluteTime = new TQSpinBox
(INT_MIN, INT_MAX, Note(Note::Shortest).getDuration(), intrinsicGrid);
absoluteTime->setValue(event.getAbsoluteTime());
TQObject::connect(absoluteTime, TQT_SIGNAL(valueChanged(int)),
@@ -104,7 +104,7 @@ EventEditDialog::EventEditDialog(TQWidget *parent,
m_durationDisplayAux = new TQLabel("(note)", intrinsicGrid);
m_durationDisplayAux->setMinimumWidth(20);
- TQSpinBox *duration = new QSpinBox
+ TQSpinBox *duration = new TQSpinBox
(0, INT_MAX, Note(Note::Shortest).getDuration(), intrinsicGrid);
duration->setValue(event.getDuration());
TQObject::connect(duration, TQT_SIGNAL(valueChanged(int)),
@@ -121,9 +121,9 @@ EventEditDialog::EventEditDialog(TQWidget *parent,
this, TQT_SLOT(slotSubOrderingChanged(int)));
slotSubOrderingChanged(event.getSubOrdering());
- TQGroupBox *persistentBox = new QGroupBox
- (1, Horizontal, i18n("Persistent properties"), vbox);
- m_persistentGrid = new TQGrid(4, TQGrid::Horizontal, persistentBox);
+ TQGroupBox *persistentBox = new TQGroupBox
+ (1, Qt::Horizontal, i18n("Persistent properties"), vbox);
+ m_persistentGrid = new TQGrid(4, Qt::Horizontal, persistentBox);
TQLabel *label = new TQLabel(i18n("Name"), m_persistentGrid);
TQFont font(label->font());
@@ -151,8 +151,8 @@ EventEditDialog::EventEditDialog(TQWidget *parent,
m_nonPersistentGrid = 0;
} else {
- TQGroupBox *nonPersistentBox = new QGroupBox
- (1, Horizontal, i18n("Non-persistent properties"), vbox);
+ TQGroupBox *nonPersistentBox = new TQGroupBox
+ (1, Qt::Horizontal, i18n("Non-persistent properties"), vbox);
new TQLabel(i18n("These are cached values, lost if the event is modified."),
nonPersistentBox);
@@ -160,8 +160,8 @@ EventEditDialog::EventEditDialog(TQWidget *parent,
//m_nonPersistentView->setHScrollBarMode(TQScrollView::AlwaysOff);
m_nonPersistentView->setResizePolicy(TQScrollView::AutoOneFit);
- m_nonPersistentGrid = new QGrid
- (4, TQGrid::Horizontal, m_nonPersistentView->viewport());
+ m_nonPersistentGrid = new TQGrid
+ (4, Qt::Horizontal, m_nonPersistentView->viewport());
m_nonPersistentView->addChild(m_nonPersistentGrid);
m_nonPersistentGrid->setSpacing(4);
@@ -212,7 +212,7 @@ EventEditDialog::addPersistentProperty(const PropertyName &name)
min = 0;
max = 127;
}
- TQSpinBox *spinBox = new QSpinBox
+ TQSpinBox *spinBox = new TQSpinBox
(min, max, 1, m_persistentGrid, strtoqstr(name));
spinBox->setValue(m_originalEvent.get<Int>(name));
TQObject::connect(spinBox, TQT_SIGNAL(valueChanged(int)),
@@ -227,7 +227,7 @@ case UInt: {
min = 0;
max = 65535;
}
- TQSpinBox *spinBox = new QSpinBox
+ TQSpinBox *spinBox = new TQSpinBox
(min, max, 1, m_persistentGrid, strtoqstr(name));
spinBox->setValue(m_originalEvent.get<UInt>(name));
TQObject::connect(spinBox, TQT_SIGNAL(valueChanged(int)),
@@ -242,7 +242,7 @@ case UInt: {
// seconds
//
- TQSpinBox *spinBox = new QSpinBox
+ TQSpinBox *spinBox = new TQSpinBox
(INT_MIN, INT_MAX, 1,
hbox, strtoqstr(name) + "%sec");
spinBox->setValue(realTime.sec);
@@ -252,7 +252,7 @@ case UInt: {
// nseconds
//
- spinBox = new QSpinBox
+ spinBox = new TQSpinBox
(INT_MIN, INT_MAX, 1,
hbox, strtoqstr(name) + "%nsec");
spinBox->setValue(realTime.nsec);
@@ -264,7 +264,7 @@ case UInt: {
}
case Bool: {
- TQCheckBox *checkBox = new QCheckBox
+ TQCheckBox *checkBox = new TQCheckBox
("", m_persistentGrid, strtoqstr(name));
checkBox->setChecked(m_originalEvent.get<Bool>(name));
TQObject::connect(checkBox, TQT_SIGNAL(activated()),
@@ -274,7 +274,7 @@ case UInt: {
}
case String: {
- TQLineEdit *lineEdit = new QLineEdit
+ TQLineEdit *lineEdit = new TQLineEdit
(strtoqstr(m_originalEvent.get<String>(name)),
m_persistentGrid,
strtoqstr(name));
@@ -325,7 +325,7 @@ EventEditDialog::slotDurationChanged(int value)
{
timeT error = 0;
m_durationDisplay->setPixmap
- (NotePixmapFactory::toQPixmap(m_notePixmapFactory.makeNoteMenuPixmap(timeT(value), error)));
+ (NotePixmapFactory::toTQPixmap(m_notePixmapFactory.makeNoteMenuPixmap(timeT(value), error)));
if (error >= value / 2) {
m_durationDisplayAux->setText("++ ");
@@ -356,7 +356,7 @@ EventEditDialog::slotSubOrderingChanged(int value)
void
EventEditDialog::slotIntPropertyChanged(int value)
{
- const TQObject *s = sender();
+ const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender()));
const TQSpinBox *spinBox = dynamic_cast<const TQSpinBox *>(s);
if (!spinBox)
return ;
@@ -369,7 +369,7 @@ EventEditDialog::slotIntPropertyChanged(int value)
void
EventEditDialog::slotRealTimePropertyChanged(int value)
{
- const TQObject *s = sender();
+ const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender()));
const TQSpinBox *spinBox = dynamic_cast<const TQSpinBox *>(s);
if (!spinBox)
return ;
@@ -393,7 +393,7 @@ EventEditDialog::slotRealTimePropertyChanged(int value)
void
EventEditDialog::slotBoolPropertyChanged()
{
- const TQObject *s = sender();
+ const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender()));
const TQCheckBox *checkBox = dynamic_cast<const TQCheckBox *>(s);
if (!checkBox)
return ;
@@ -408,7 +408,7 @@ EventEditDialog::slotBoolPropertyChanged()
void
EventEditDialog::slotStringPropertyChanged(const TQString &value)
{
- const TQObject *s = sender();
+ const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender()));
const TQLineEdit *lineEdit = dynamic_cast<const TQLineEdit *>(s);
if (!lineEdit)
return ;
@@ -421,7 +421,7 @@ EventEditDialog::slotStringPropertyChanged(const TQString &value)
void
EventEditDialog::slotPropertyDeleted()
{
- const TQObject *s = sender();
+ const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender()));
const TQPushButton *pushButton = dynamic_cast<const TQPushButton *>(s);
if (!pushButton)
return ;
@@ -453,7 +453,7 @@ EventEditDialog::slotPropertyDeleted()
void
EventEditDialog::slotPropertyMadePersistent()
{
- const TQObject *s = sender();
+ const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender()));
const TQPushButton *pushButton = dynamic_cast<const TQPushButton *>(s);
if (!pushButton)
return ;