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/editors/parameters/RosegardenParameterArea.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/editors/parameters/RosegardenParameterArea.cpp')
-rw-r--r-- | src/gui/editors/parameters/RosegardenParameterArea.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
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 <ktabwidget.h> -#include <qfont.h> -#include <qframe.h> -#include <qpoint.h> -#include <qscrollview.h> -#include <qstring.h> -#include <qvbox.h> -#include <qlayout.h> -#include <qvgroupbox.h> -#include <qwidget.h> -#include <qwidgetstack.h> +#include <tqfont.h> +#include <tqframe.h> +#include <tqpoint.h> +#include <tqscrollview.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqlayout.h> +#include <tqvgroupbox.h> +#include <tqwidget.h> +#include <tqwidgetstack.h> #include <iostream> #include <set> @@ -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<RosegardenParameterBox *>::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()); } } |