summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/notation/NoteFontViewer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editors/notation/NoteFontViewer.cpp')
-rw-r--r--src/gui/editors/notation/NoteFontViewer.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/gui/editors/notation/NoteFontViewer.cpp b/src/gui/editors/notation/NoteFontViewer.cpp
index 81f07e9..d3dc2a3 100644
--- a/src/gui/editors/notation/NoteFontViewer.cpp
+++ b/src/gui/editors/notation/NoteFontViewer.cpp
@@ -30,11 +30,11 @@
#include <kcombobox.h>
#include <kdialogbase.h>
#include <ktoolbar.h>
-#include <qlabel.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qvbox.h>
-#include <qwidget.h>
+#include <tqlabel.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqvbox.h>
+#include <tqwidget.h>
namespace Rosegarden
@@ -50,7 +50,7 @@ NoteFontViewer::slotViewChanged(int i)
for (int r = 0; r < 256; ++r) {
if (m_frame->hasRow(r)) {
- m_rows->insertItem(QString("%1").arg(r));
+ m_rows->insertItem(TQString("%1").arg(r));
if (firstRow < 0)
firstRow = r;
}
@@ -66,7 +66,7 @@ NoteFontViewer::slotViewChanged(int i)
}
void
-NoteFontViewer::slotRowChanged(const QString &s)
+NoteFontViewer::slotRowChanged(const TQString &s)
{
bool ok;
int i = s.toInt(&ok);
@@ -75,48 +75,48 @@ NoteFontViewer::slotRowChanged(const QString &s)
}
void
-NoteFontViewer::slotFontChanged(const QString &s)
+NoteFontViewer::slotFontChanged(const TQString &s)
{
m_frame->setFont(s);
slotViewChanged(m_view->currentItem());
}
-NoteFontViewer::NoteFontViewer(QWidget *parent, QString noteFontName,
- QStringList fontNames, int pixelSize) :
+NoteFontViewer::NoteFontViewer(TQWidget *parent, TQString noteFontName,
+ TQStringList fontNames, int pixelSize) :
KDialogBase(parent, 0, true,
i18n("Note Font Viewer: %1").arg(noteFontName), Close)
{
- QVBox *box = makeVBoxMainWidget();
+ TQVBox *box = makeVBoxMainWidget();
KToolBar* controls = new KToolBar(box);
controls->setMargin(3);
- (void) new QLabel(i18n(" Component: "), controls);
+ (void) new TQLabel(i18n(" Component: "), controls);
m_font = new KComboBox(controls);
- for (QStringList::iterator i = fontNames.begin(); i != fontNames.end();
+ for (TQStringList::iterator i = fontNames.begin(); i != fontNames.end();
++i) {
m_font->insertItem(*i);
}
- (void) new QLabel(i18n(" View: "), controls);
+ (void) new TQLabel(i18n(" View: "), controls);
m_view = new KComboBox(controls);
m_view->insertItem(i18n("Glyphs"));
m_view->insertItem(i18n("Codes"));
- (void) new QLabel(i18n(" Page: "), controls);
+ (void) new TQLabel(i18n(" Page: "), controls);
m_rows = new KComboBox(controls);
m_frame = new FontViewFrame(pixelSize, box);
- connect(m_font, SIGNAL(activated(const QString &)),
- this, SLOT(slotFontChanged(const QString &)));
+ connect(m_font, TQT_SIGNAL(activated(const TQString &)),
+ this, TQT_SLOT(slotFontChanged(const TQString &)));
- connect(m_view, SIGNAL(activated(int)),
- this, SLOT(slotViewChanged(int)));
+ connect(m_view, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotViewChanged(int)));
- connect(m_rows, SIGNAL(activated(const QString &)),
- this, SLOT(slotRowChanged(const QString &)));
+ connect(m_rows, TQT_SIGNAL(activated(const TQString &)),
+ this, TQT_SLOT(slotRowChanged(const TQString &)));
slotFontChanged(m_font->currentText());
}