From 11f31c37e5fa4889d9989f10272f44845449cb7b Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 6 Sep 2010 20:59:29 +0000 Subject: Initial TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- .../editors/parameters/RosegardenParameterArea.cpp | 52 +++++++++++----------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'src/gui/editors/parameters/RosegardenParameterArea.cpp') diff --git a/src/gui/editors/parameters/RosegardenParameterArea.cpp b/src/gui/editors/parameters/RosegardenParameterArea.cpp index 968c737..8790122 100644 --- a/src/gui/editors/parameters/RosegardenParameterArea.cpp +++ b/src/gui/editors/parameters/RosegardenParameterArea.cpp @@ -29,16 +29,16 @@ #include "RosegardenParameterBox.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -46,20 +46,20 @@ namespace Rosegarden { -RosegardenParameterArea::RosegardenParameterArea(QWidget *parent, +RosegardenParameterArea::RosegardenParameterArea(TQWidget *parent, const char *name, WFlags f) - : QWidgetStack(parent, name, f), + : TQWidgetStack(parent, name, f), m_style(RosegardenParameterArea::CLASSIC_STYLE), - m_scrollView(new QScrollView(this, 0, Qt::WStaticContents)), - m_classic(new QVBox(m_scrollView->viewport())), + m_scrollView(new TQScrollView(this, 0, Qt::WStaticContents)), + m_classic(new TQVBox(m_scrollView->viewport())), m_tabBox(new KTabWidget(this)), m_active(0), m_spacing(0) { m_scrollView->addChild(m_classic); - m_scrollView->setHScrollBarMode(QScrollView::AlwaysOff); - m_scrollView->setVScrollBarMode(QScrollView::Auto); - m_scrollView->setResizePolicy(QScrollView::AutoOneFit); + m_scrollView->setHScrollBarMode(TQScrollView::AlwaysOff); + m_scrollView->setVScrollBarMode(TQScrollView::Auto); + m_scrollView->setResizePolicy(TQScrollView::AutoOneFit); // Install the classic-style VBox widget in the widget-stack. @@ -93,16 +93,16 @@ void RosegardenParameterArea::addRosegardenParameterBox( // and outline, in classic mode. Add this container to an array that // parallels the above array of parameter boxes. - QVGroupBox *box = new QVGroupBox(b->getLongLabel(), m_classic); + TQVGroupBox *box = new TQVGroupBox(b->getLongLabel(), m_classic); box->layout()->setMargin( 4 ); // about half the default value - QFont f; + TQFont f; f.setBold( true ); box->setFont( f ); m_groupBoxes.push_back(box); if (m_spacing) delete m_spacing; - m_spacing = new QFrame(m_classic); + m_spacing = new TQFrame(m_classic); m_classic->setStretchFactor(m_spacing, 100); // Add the parameter box to the current container of the displayed @@ -120,7 +120,7 @@ void RosegardenParameterArea::setArrangement(Arrangement style) { // Lookup the container of the specified style. - QWidget *container; + TQWidget *container; switch (style) { case CLASSIC_STYLE: container = m_classic; @@ -149,7 +149,7 @@ void RosegardenParameterArea::setArrangement(Arrangement style) unsorted.insert(m_parameterBoxes[i]); } - QString previous = ""; + TQString previous = ""; while (!unsorted.empty()) { std::set::iterator i = unsorted.begin(); @@ -191,8 +191,8 @@ void RosegardenParameterArea::setArrangement(Arrangement style) m_style = style; } -void RosegardenParameterArea::moveWidget(QWidget *old_container, - QWidget *new_container, +void RosegardenParameterArea::moveWidget(TQWidget *old_container, + TQWidget *new_container, RosegardenParameterBox *box) { // Remove any state that is associated with the parameter boxes, @@ -215,10 +215,10 @@ void RosegardenParameterArea::moveWidget(QWidget *old_container, ++index; } if (index < m_parameterBoxes.size()) { - box->reparent(m_groupBoxes[index], 0, QPoint(0, 0), FALSE); + box->reparent(m_groupBoxes[index], 0, TQPoint(0, 0), FALSE); } } else if (new_container == m_tabBox) { - box->reparent(new_container, 0, QPoint(0, 0), FALSE); + box->reparent(new_container, 0, TQPoint(0, 0), FALSE); m_tabBox->insertTab(box, box->getShortLabel()); } } -- cgit v1.2.1