summaryrefslogtreecommitdiffstats
path: root/src/gui/studio/NameSetEditor.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/studio/NameSetEditor.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/studio/NameSetEditor.cpp')
-rw-r--r--src/gui/studio/NameSetEditor.cpp94
1 files changed, 47 insertions, 47 deletions
diff --git a/src/gui/studio/NameSetEditor.cpp b/src/gui/studio/NameSetEditor.cpp
index 8dadd0c..6fa9bbe 100644
--- a/src/gui/studio/NameSetEditor.cpp
+++ b/src/gui/studio/NameSetEditor.cpp
@@ -29,87 +29,87 @@
#include <kglobalsettings.h>
#include <klineedit.h>
#include <klocale.h>
-#include <qframe.h>
-#include <qgroupbox.h>
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qstring.h>
-#include <qtabwidget.h>
-#include <qtooltip.h>
-#include <qvbox.h>
-#include <qvgroupbox.h>
-#include <qwidget.h>
+#include <tqframe.h>
+#include <tqgroupbox.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqstring.h>
+#include <tqtabwidget.h>
+#include <tqtooltip.h>
+#include <tqvbox.h>
+#include <tqvgroupbox.h>
+#include <tqwidget.h>
#include <iostream>
namespace Rosegarden
{
NameSetEditor::NameSetEditor(BankEditorDialog* bankEditor,
- QString title,
- QWidget* parent,
+ TQString title,
+ TQWidget* parent,
const char* name,
- QString headingPrefix,
+ TQString headingPrefix,
bool showEntryButtons)
- : QVGroupBox(title, parent, name),
+ : TQVGroupBox(title, parent, name),
m_bankEditor(bankEditor),
- m_mainFrame(new QFrame(this))
+ m_mainFrame(new TQFrame(this))
{
- m_mainLayout = new QGridLayout(m_mainFrame,
+ m_mainLayout = new TQGridLayout(m_mainFrame,
4, // rows
6, // cols
2); // margin
// Librarian
//
- QGroupBox *groupBox = new QGroupBox(2,
+ TQGroupBox *groupBox = new TQGroupBox(2,
Qt::Horizontal,
i18n("Librarian"),
m_mainFrame);
m_mainLayout->addMultiCellWidget(groupBox, 0, 2, 3, 5);
- new QLabel(i18n("Name"), groupBox);
- m_librarian = new QLabel(groupBox);
+ new TQLabel(i18n("Name"), groupBox);
+ m_librarian = new TQLabel(groupBox);
- new QLabel(i18n("Email"), groupBox);
- m_librarianEmail = new QLabel(groupBox);
+ new TQLabel(i18n("Email"), groupBox);
+ m_librarianEmail = new TQLabel(groupBox);
- QToolTip::add
+ TQToolTip::add
(groupBox,
i18n("The librarian maintains the Rosegarden device data for this device.\nIf you've made modifications to suit your own device, it might be worth\nliaising with the librarian in order to publish your information for the benefit\nof others."));
- QTabWidget* tabw = new QTabWidget(this);
+ TQTabWidget* tabw = new TQTabWidget(this);
tabw->setMargin(10);
- QHBox *h;
- QVBox *v;
- QHBox *numBox;
+ TQHBox *h;
+ TQVBox *v;
+ TQHBox *numBox;
unsigned int tabs = 4;
unsigned int cols = 2;
unsigned int labelId = 0;
for (unsigned int tab = 0; tab < tabs; ++tab) {
- h = new QHBox(tabw);
+ h = new TQHBox(tabw);
for (unsigned int col = 0; col < cols; ++col) {
- v = new QVBox(h);
+ v = new TQVBox(h);
for (unsigned int row = 0; row < 128 / (tabs*cols); ++row) {
- numBox = new QHBox(v);
- QString numberText = QString("%1").arg(labelId + 1);
+ numBox = new TQHBox(v);
+ TQString numberText = TQString("%1").arg(labelId + 1);
if (tab == 0 && col == 0 && row == 0) {
// Initial label; button to adjust whether labels start at 0 or 1
- m_initialLabel = new QPushButton(numberText, numBox);
+ m_initialLabel = new TQPushButton(numberText, numBox);
connect(m_initialLabel,
- SIGNAL(clicked()),
+ TQT_SIGNAL(clicked()),
this,
- SLOT(slotToggleInitialLabel()));
+ TQT_SLOT(slotToggleInitialLabel()));
} else {
- QLabel *label = new QLabel(numberText, numBox);
+ TQLabel *label = new TQLabel(numberText, numBox);
label->setFixedWidth(40);
label->setAlignment(AlignCenter);
m_labels.push_back(label);
@@ -118,12 +118,12 @@ NameSetEditor::NameSetEditor(BankEditorDialog* bankEditor,
if (showEntryButtons) {
- QPushButton *button = new QPushButton("", numBox, numberText);
+ TQPushButton *button = new TQPushButton("", numBox, numberText);
button->setMaximumWidth(40);
button->setMaximumHeight(20);
button->setFlat(true);
- connect(button, SIGNAL(clicked()),
- this, SLOT(slotEntryButtonPressed()));
+ connect(button, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotEntryButtonPressed()));
m_entryButtons.push_back(button);
}
@@ -134,17 +134,17 @@ NameSetEditor::NameSetEditor(BankEditorDialog* bankEditor,
m_names.push_back(lineEdit);
connect(m_names[labelId],
- SIGNAL(textChanged(const QString&)),
+ TQT_SIGNAL(textChanged(const TQString&)),
this,
- SLOT(slotNameChanged(const QString&)));
+ TQT_SLOT(slotNameChanged(const TQString&)));
++labelId;
}
}
tabw->addTab(h,
- (tab == 0 ? headingPrefix + QString(" %1 - %2") :
- QString("%1 - %2")).
+ (tab == 0 ? headingPrefix + TQString(" %1 - %2") :
+ TQString("%1 - %2")).
arg(tab * (128 / tabs) + 1).
arg((tab + 1) * (128 / tabs)));
}
@@ -155,7 +155,7 @@ NameSetEditor::NameSetEditor(BankEditorDialog* bankEditor,
void
NameSetEditor::slotToggleInitialLabel()
{
- QString initial = m_initialLabel->text();
+ TQString initial = m_initialLabel->text();
// strip some unrequested nice-ification.. urg!
if (initial.startsWith("&")) {
@@ -178,11 +178,11 @@ NameSetEditor::slotToggleInitialLabel()
else
index = 0;
- m_initialLabel->setText(QString("%1").arg(index++));
- for (std::vector<QLabel*>::iterator it( m_labels.begin() );
+ m_initialLabel->setText(TQString("%1").arg(index++));
+ for (std::vector<TQLabel*>::iterator it( m_labels.begin() );
it != m_labels.end();
++it) {
- (*it)->setText(QString("%1").arg(index++));
+ (*it)->setText(TQString("%1").arg(index++));
}
}