summaryrefslogtreecommitdiffstats
path: root/src/gui/configuration/ColourConfigurationPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/configuration/ColourConfigurationPage.cpp')
-rw-r--r--src/gui/configuration/ColourConfigurationPage.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/gui/configuration/ColourConfigurationPage.cpp b/src/gui/configuration/ColourConfigurationPage.cpp
index f87cf20..975e00d 100644
--- a/src/gui/configuration/ColourConfigurationPage.cpp
+++ b/src/gui/configuration/ColourConfigurationPage.cpp
@@ -39,25 +39,25 @@
#include <kcolordialog.h>
#include <kconfig.h>
#include <kinputdialog.h>
-#include <qcolor.h>
-#include <qframe.h>
-#include <qpushbutton.h>
-#include <qstring.h>
-#include <qtabwidget.h>
-#include <qwidget.h>
-#include <qlayout.h>
+#include <tqcolor.h>
+#include <tqframe.h>
+#include <tqpushbutton.h>
+#include <tqstring.h>
+#include <tqtabwidget.h>
+#include <tqwidget.h>
+#include <tqlayout.h>
namespace Rosegarden
{
ColourConfigurationPage::ColourConfigurationPage(RosegardenGUIDoc *doc,
- QWidget *parent,
+ TQWidget *parent,
const char *name)
: TabbedConfigurationPage(doc, parent, name)
{
- QFrame *frame = new QFrame(m_tabWidget);
- QGridLayout *layout = new QGridLayout(frame, 2, 2,
+ TQFrame *frame = new TQFrame(m_tabWidget);
+ TQGridLayout *layout = new TQGridLayout(frame, 2, 2,
10, 5);
m_map = m_doc->getComposition().getSegmentColourMap();
@@ -67,42 +67,42 @@ ColourConfigurationPage::ColourConfigurationPage(RosegardenGUIDoc *doc,
layout->addMultiCellWidget(m_colourtable, 0, 0, 0, 1);
- QPushButton* addColourButton = new QPushButton(i18n("Add New Color"),
+ TQPushButton* addColourButton = new TQPushButton(i18n("Add New Color"),
frame);
layout->addWidget(addColourButton, 1, 0, Qt::AlignHCenter);
- QPushButton* deleteColourButton = new QPushButton(i18n("Delete Color"),
+ TQPushButton* deleteColourButton = new TQPushButton(i18n("Delete Color"),
frame);
layout->addWidget(deleteColourButton, 1, 1, Qt::AlignHCenter);
- connect(addColourButton, SIGNAL(clicked()),
- this, SLOT(slotAddNew()));
+ connect(addColourButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotAddNew()));
- connect(deleteColourButton, SIGNAL(clicked()),
- this, SLOT(slotDelete()));
+ connect(deleteColourButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotDelete()));
- connect(this, SIGNAL(docColoursChanged()),
- m_doc, SLOT(slotDocColoursChanged()));
+ connect(this, TQT_SIGNAL(docColoursChanged()),
+ m_doc, TQT_SLOT(slotDocColoursChanged()));
- connect(m_colourtable, SIGNAL(entryTextChanged(unsigned int, QString)),
- this, SLOT(slotTextChanged(unsigned int, QString)));
+ connect(m_colourtable, TQT_SIGNAL(entryTextChanged(unsigned int, TQString)),
+ this, TQT_SLOT(slotTextChanged(unsigned int, TQString)));
- connect(m_colourtable, SIGNAL(entryColourChanged(unsigned int, QColor)),
- this, SLOT(slotColourChanged(unsigned int, QColor)));
+ connect(m_colourtable, TQT_SIGNAL(entryColourChanged(unsigned int, TQColor)),
+ this, TQT_SLOT(slotColourChanged(unsigned int, TQColor)));
addTab(frame, i18n("Color Map"));
}
void
-ColourConfigurationPage::slotTextChanged(unsigned int index, QString string)
+ColourConfigurationPage::slotTextChanged(unsigned int index, TQString string)
{
m_map.modifyNameByIndex(m_listmap[index], string.ascii());
m_colourtable->populate_table(m_map, m_listmap);
}
void
-ColourConfigurationPage::slotColourChanged(unsigned int index, QColor color)
+ColourConfigurationPage::slotColourChanged(unsigned int index, TQColor color)
{
m_map.modifyColourByIndex(m_listmap[index], GUIPalette::convertColour(color));
m_colourtable->populate_table(m_map, m_listmap);
@@ -121,11 +121,11 @@ ColourConfigurationPage::apply()
void
ColourConfigurationPage::slotAddNew()
{
- QColor temp;
+ TQColor temp;
bool ok = false;
- QString newName = KInputDialog::getText(i18n("New Color Name"),
+ TQString newName = KInputDialog::getText(i18n("New Color Name"),
i18n("Enter new name"),
i18n("New"),
&ok);
@@ -149,7 +149,7 @@ ColourConfigurationPage::slotAddNew()
void
ColourConfigurationPage::slotDelete()
{
- QTableSelection temp = m_colourtable->selection(0);
+ TQTableSelection temp = m_colourtable->selection(0);
if ((!temp.isActive()) || (temp.topRow() == 0))
return ;