diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
commit | 11f31c37e5fa4889d9989f10272f44845449cb7b (patch) | |
tree | 4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/widgets/ColourTable.cpp | |
parent | 832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff) | |
download | rosegarden-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/widgets/ColourTable.cpp')
-rw-r--r-- | src/gui/widgets/ColourTable.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/gui/widgets/ColourTable.cpp b/src/gui/widgets/ColourTable.cpp index c5fcfc6..2cceca4 100644 --- a/src/gui/widgets/ColourTable.cpp +++ b/src/gui/widgets/ColourTable.cpp @@ -32,27 +32,27 @@ #include "gui/general/GUIPalette.h" #include <kcolordialog.h> #include <klineeditdlg.h> -#include <qcolor.h> -#include <qpoint.h> -#include <qstring.h> -#include <qtable.h> -#include <qwidget.h> +#include <tqcolor.h> +#include <tqpoint.h> +#include <tqstring.h> +#include <tqtable.h> +#include <tqwidget.h> namespace Rosegarden { ColourTable::ColourTable -(QWidget *parent, ColourMap &input, ColourList &list) - : QTable(1, 2, parent, "RColourTable") +(TQWidget *parent, ColourMap &input, ColourList &list) + : TQTable(1, 2, parent, "RColourTable") { setSorting(FALSE); - setSelectionMode(QTable::SingleRow); + setSelectionMode(TQTable::SingleRow); horizontalHeader()->setLabel(0, i18n("Name")); horizontalHeader()->setLabel(1, i18n("Color")); populate_table(input, list); - connect(this, SIGNAL(doubleClicked(int, int, int, const QPoint&)), - SLOT(slotEditEntry(int, int))); + connect(this, TQT_SIGNAL(doubleClicked(int, int, int, const TQPoint&)), + TQT_SLOT(slotEditEntry(int, int))); } @@ -65,7 +65,7 @@ ColourTable::slotEditEntry(int row, int col) if (row == 0) return ; bool ok = false; - QString newName = KLineEditDlg::getText(i18n("Modify Color Name"), i18n("Enter new name"), + TQString newName = KLineEditDlg::getText(i18n("Modify Color Name"), i18n("Enter new name"), item(row, col)->text(), &ok); if ((ok == true) && (!newName.isEmpty())) { @@ -75,7 +75,7 @@ ColourTable::slotEditEntry(int row, int col) } break; case 1: { - QColor temp = m_colours[row]; + TQColor temp = m_colours[row]; KColorDialog box(this, "", true); int result = box.getColor(temp); @@ -98,7 +98,7 @@ ColourTable::populate_table(ColourMap &input, ColourList &list) m_colours.reserve(input.size()); setNumRows(input.size()); - QString name; + TQString name; unsigned int i = 0; @@ -108,9 +108,9 @@ ColourTable::populate_table(ColourMap &input, ColourList &list) else name = strtoqstr(it->second.second); - QTableItem *text = new QTableItem( - dynamic_cast<QTable*>(this), - QTableItem::Never, name); + TQTableItem *text = new TQTableItem( + dynamic_cast<TQTable*>(this), + TQTableItem::Never, name); setItem(i, 0, text); @@ -120,7 +120,7 @@ ColourTable::populate_table(ColourMap &input, ColourList &list) ColourTableItem *temp = new ColourTableItem(this, m_colours[i]); setItem(i, 1, temp); - verticalHeader()->setLabel(i, QString::number(it->first)); + verticalHeader()->setLabel(i, TQString::number(it->first)); ++i; } |