diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 20:16:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 20:16:47 +0000 |
commit | 495d08bc2db58ee7fc4ea55a7158f2f61b82fc56 (patch) | |
tree | daabcb652c07b9a17cad88ca50b63a2d91ead4a3 /kicker/libkicker/panner.cpp | |
parent | 50001f1757f97510e80cb1990e2f2d5b00144c2a (diff) | |
download | tdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.tar.gz tdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.zip |
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1211357 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker/libkicker/panner.cpp')
-rw-r--r-- | kicker/libkicker/panner.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kicker/libkicker/panner.cpp b/kicker/libkicker/panner.cpp index 7d11a429e..ccd40da67 100644 --- a/kicker/libkicker/panner.cpp +++ b/kicker/libkicker/panner.cpp @@ -54,9 +54,9 @@ Panner::Panner( TQWidget* parent, const char* name ) _viewport = new TQWidget(_clipper); _viewport->setBackgroundOrigin(AncestorOrigin); - // layout - _layout = new TQBoxLayout(this, TQBoxLayout::LeftToRight); - _layout->addWidget(_clipper, 1); + // tqlayout + _tqlayout = new TQBoxLayout(this, TQBoxLayout::LeftToRight); + _tqlayout->addWidget(_clipper, 1); setOrientation(Horizontal); } @@ -77,7 +77,7 @@ void Panner::createScrollButtons() //_luSB->setAutoRepeat(true); _luSB->setMinimumSize(12, 12); _luSB->hide(); - _layout->addWidget(_luSB); + _tqlayout->addWidget(_luSB); connect(_luSB, TQT_SIGNAL(pressed()), TQT_SLOT(startScrollLeftUp())); connect(_luSB, TQT_SIGNAL(released()), TQT_SLOT(stopScroll())); @@ -87,7 +87,7 @@ void Panner::createScrollButtons() //_rdSB->setAutoRepeat(true); _rdSB->setMinimumSize(12, 12); _rdSB->hide(); - _layout->addWidget(_rdSB); + _tqlayout->addWidget(_rdSB); connect(_rdSB, TQT_SIGNAL(pressed()), TQT_SLOT(startScrollRightDown())); connect(_rdSB, TQT_SIGNAL(released()), TQT_SLOT(stopScroll())); @@ -103,13 +103,13 @@ void Panner::setupButtons() { _luSB->setArrowType(Qt::LeftArrow); _rdSB->setArrowType(Qt::RightArrow); - _luSB->setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Expanding)); - _rdSB->setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Expanding)); + _luSB->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Expanding)); + _rdSB->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Expanding)); TQToolTip::add(_luSB, i18n("Scroll left")); TQToolTip::add(_rdSB, i18n("Scroll right")); setMinimumSize(24, 0); } - _layout->setDirection(TQBoxLayout::LeftToRight); + _tqlayout->setDirection(TQBoxLayout::LeftToRight); } else { @@ -117,20 +117,20 @@ void Panner::setupButtons() { _luSB->setArrowType(Qt::UpArrow); _rdSB->setArrowType(Qt::DownArrow); - _luSB->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Minimum)); - _rdSB->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Minimum)); + _luSB->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Minimum)); + _rdSB->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Minimum)); TQToolTip::add(_luSB, i18n("Scroll up")); TQToolTip::add(_rdSB, i18n("Scroll down")); setMinimumSize(0, 24); } - _layout->setDirection(TQBoxLayout::TopToBottom); + _tqlayout->setDirection(TQBoxLayout::TopToBottom); } if (isVisible()) { - // we need to manually redo the layout if we are visible + // we need to manually redo the tqlayout if we are visible // otherwise let the toolkit decide when to do this - _layout->activate(); + _tqlayout->activate(); } } |