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/configuration/HeadersConfigurationPage.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/configuration/HeadersConfigurationPage.cpp')
-rw-r--r-- | src/gui/configuration/HeadersConfigurationPage.cpp | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/src/gui/configuration/HeadersConfigurationPage.cpp b/src/gui/configuration/HeadersConfigurationPage.cpp index 0571fb5..54ec010 100644 --- a/src/gui/configuration/HeadersConfigurationPage.cpp +++ b/src/gui/configuration/HeadersConfigurationPage.cpp @@ -35,35 +35,35 @@ #include <kconfig.h> #include <klistview.h> #include <klocale.h> -#include <qgroupbox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qlineedit.h> -#include <qpushbutton.h> -#include <qstring.h> -#include <qtabwidget.h> -#include <qtooltip.h> -#include <qvbox.h> -#include <qwidget.h> -#include <qfont.h> +#include <tqgroupbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqlineedit.h> +#include <tqpushbutton.h> +#include <tqstring.h> +#include <tqtabwidget.h> +#include <tqtooltip.h> +#include <tqvbox.h> +#include <tqwidget.h> +#include <tqfont.h> namespace Rosegarden { -HeadersConfigurationPage::HeadersConfigurationPage(QWidget *parent, +HeadersConfigurationPage::HeadersConfigurationPage(TQWidget *parent, RosegardenGUIDoc *doc) : - QVBox(parent), + TQVBox(parent), m_doc(doc) { // // LilyPond export: Printable headers // - QGroupBox *headersBox = new QGroupBox + TQGroupBox *headersBox = new QGroupBox (1, Horizontal, i18n("Printable headers"), this); - QFrame *frameHeaders = new QFrame(headersBox); - QGridLayout *layoutHeaders = new QGridLayout(frameHeaders, 10, 6, 10, 5); + TQFrame *frameHeaders = new TQFrame(headersBox); + TQGridLayout *layoutHeaders = new TQGridLayout(frameHeaders, 10, 6, 10, 5); // grab user headers from metadata Configuration metadata = (&m_doc->getComposition())->getMetadata(); @@ -84,8 +84,8 @@ HeadersConfigurationPage::HeadersConfigurationPage(QWidget *parent, } unsigned int row = 0, col = 0, width = 1; - QLineEdit *editHeader = new QLineEdit(strtoqstr( header ), frameHeaders); - QString trName; + TQLineEdit *editHeader = new TQLineEdit(strtoqstr( header ), frameHeaders); + TQString trName; if (key == headerDedication) { m_editDedication = editHeader; row = 0; col = 2; width = 2; @@ -148,11 +148,11 @@ HeadersConfigurationPage::HeadersConfigurationPage(QWidget *parent, // // ToolTips // - QToolTip::add( editHeader, trName ); + TQToolTip::add( editHeader, trName ); shown.insert(key); } - QLabel *separator = new QLabel(i18n("The composition comes here."), frameHeaders); + TQLabel *separator = new TQLabel(i18n("The composition comes here."), frameHeaders); separator->setAlignment( Qt::AlignCenter ); layoutHeaders->addMultiCellWidget(separator, 7, 7, 1, 4 ); @@ -162,7 +162,7 @@ HeadersConfigurationPage::HeadersConfigurationPage(QWidget *parent, // set default expansion to false for this group -- what a faff KConfig *config = kapp->config(); - QString groupTemp = config->group(); + TQString groupTemp = config->group(); config->setGroup("CollapsingFrame"); bool expanded = config->readBoolEntry("nonprintableheaders", false); config->writeEntry("nonprintableheaders", expanded); @@ -170,14 +170,14 @@ HeadersConfigurationPage::HeadersConfigurationPage(QWidget *parent, CollapsingFrame *otherHeadersBox = new CollapsingFrame (i18n("Non-printable headers"), this, "nonprintableheaders"); - QFrame *frameOtherHeaders = new QFrame(otherHeadersBox); + TQFrame *frameOtherHeaders = new TQFrame(otherHeadersBox); otherHeadersBox->setWidgetFill(true); - QFont font(otherHeadersBox->font()); + TQFont font(otherHeadersBox->font()); font.setBold(false); otherHeadersBox->setFont(font); otherHeadersBox->setWidget(frameOtherHeaders); - QGridLayout *layoutOtherHeaders = new QGridLayout(frameOtherHeaders, 2, 2, 10, 5); + TQGridLayout *layoutOtherHeaders = new TQGridLayout(frameOtherHeaders, 2, 2, 10, 5); m_metadata = new KListView(frameOtherHeaders); m_metadata->addColumn(i18n("Name")); @@ -187,7 +187,7 @@ HeadersConfigurationPage::HeadersConfigurationPage(QWidget *parent, m_metadata->setRenameable(0); m_metadata->setRenameable(1); m_metadata->setItemMargin(5); - m_metadata->setDefaultRenameAction(QListView::Accept); + m_metadata->setDefaultRenameAction(TQListView::Accept); m_metadata->setShowSortIndicator(true); std::vector<std::string> names(metadata.getPropertyNames()); @@ -197,7 +197,7 @@ HeadersConfigurationPage::HeadersConfigurationPage(QWidget *parent, if (shown.find(names[i]) != shown.end()) continue; - QString name(strtoqstr(names[i])); + TQString name(strtoqstr(names[i])); // property names stored in lower case name = name.left(1).upper() + name.right(name.length() - 1); @@ -210,25 +210,25 @@ HeadersConfigurationPage::HeadersConfigurationPage(QWidget *parent, layoutOtherHeaders->addMultiCellWidget(m_metadata, 0, 0, 0, 1); - QPushButton* addPropButton = new QPushButton(i18n("Add New Property"), + TQPushButton* addPropButton = new TQPushButton(i18n("Add New Property"), frameOtherHeaders); layoutOtherHeaders->addWidget(addPropButton, 1, 0, Qt::AlignHCenter); - QPushButton* deletePropButton = new QPushButton(i18n("Delete Property"), + TQPushButton* deletePropButton = new TQPushButton(i18n("Delete Property"), frameOtherHeaders); layoutOtherHeaders->addWidget(deletePropButton, 1, 1, Qt::AlignHCenter); - connect(addPropButton, SIGNAL(clicked()), - this, SLOT(slotAddNewProperty())); + connect(addPropButton, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotAddNewProperty())); - connect(deletePropButton, SIGNAL(clicked()), - this, SLOT(slotDeleteProperty())); + connect(deletePropButton, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotDeleteProperty())); } void HeadersConfigurationPage::slotAddNewProperty() { - QString propertyName; + TQString propertyName; int i = 0; while (1) { @@ -280,7 +280,7 @@ void HeadersConfigurationPage::apply() metadata.set<String>(CompositionMetadataKeys::Copyright, qstrtostr(m_editCopyright->text())); metadata.set<String>(CompositionMetadataKeys::Tagline, qstrtostr(m_editTagline->text())); - for (QListViewItem *item = m_metadata->firstChild(); + for (TQListViewItem *item = m_metadata->firstChild(); item != 0; item = item->nextSibling()) { metadata.set<String>(qstrtostr(item->text(0).lower()), |