summaryrefslogtreecommitdiffstats
path: root/arts/gui/kde/kpopupbox_impl.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /arts/gui/kde/kpopupbox_impl.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz
tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'arts/gui/kde/kpopupbox_impl.cpp')
-rw-r--r--arts/gui/kde/kpopupbox_impl.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/arts/gui/kde/kpopupbox_impl.cpp b/arts/gui/kde/kpopupbox_impl.cpp
index 2c56c73e..23de74fc 100644
--- a/arts/gui/kde/kpopupbox_impl.cpp
+++ b/arts/gui/kde/kpopupbox_impl.cpp
@@ -22,7 +22,7 @@
#include "kpopupbox_impl.h"
#include "kpopupbox_private.h"
-#include <qlayout.h>
+#include <tqlayout.h>
using namespace Arts;
@@ -54,25 +54,25 @@ void KPopupBox_impl::name( const std::string& n ) { _name = ""; _name = n; _widg
// Following the private class:
-KPopupBox_widget::KPopupBox_widget( QWidget *parent, const char* name ) : QFrame( parent,name )
+KPopupBox_widget::KPopupBox_widget( TQWidget *parent, const char* name ) : TQFrame( parent,name )
{
- this->setFrameShape( QFrame::Box );
+ this->setFrameShape( TQFrame::Box );
this->setMargin( 1 ); this->setLineWidth( 1 );
- _titlebar = new QFrame( this );
- _titlebarlayout = new QBoxLayout( _titlebar, QBoxLayout::BottomToTop );
+ _titlebar = new TQFrame( this );
+ _titlebarlayout = new TQBoxLayout( _titlebar, TQBoxLayout::BottomToTop );
_titlebarlayout->setAutoAdd( true );
_showbutton = new ShowButton( _titlebar );
- connect( _showbutton, SIGNAL( toggled( bool ) ), this, SLOT( hide( bool ) ) );
+ connect( _showbutton, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( hide( bool ) ) );
_drag = new HandleDrag( _titlebar );
- connect( _drag, SIGNAL( clicked() ), _showbutton, SLOT( toggle() ) );
+ connect( _drag, TQT_SIGNAL( clicked() ), _showbutton, TQT_SLOT( toggle() ) );
_ownbutton = new OwnButton( _titlebar );
- connect( _ownbutton, SIGNAL( toggled( bool ) ), this, SLOT( own( bool ) ) );
+ connect( _ownbutton, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( own( bool ) ) );
_artswidget = new OwnWidget( _showbutton, this );
- _layout = new QBoxLayout( this, QBoxLayout::LeftToRight );
+ _layout = new TQBoxLayout( this, TQBoxLayout::LeftToRight );
_layout->addWidget( _titlebar , -1 );
_layout->addWidget( _artswidget, 20 );
_layout->addStretch( 0 );
@@ -85,18 +85,18 @@ Arts::Direction KPopupBox_widget::direction() {
}
void KPopupBox_widget::direction( Arts::Direction n ) {
- _layout->setDirection( QBoxLayout::Direction( n ) );
- _showbutton->direction( QBoxLayout::Direction( n ) );
+ _layout->setDirection( TQBoxLayout::Direction( n ) );
+ _showbutton->direction( TQBoxLayout::Direction( n ) );
switch( n ) {
case LeftToRight:
case RightToLeft:
- _titlebarlayout->setDirection( QBoxLayout::BottomToTop );
+ _titlebarlayout->setDirection( TQBoxLayout::BottomToTop );
_drag->setMinimumHeight( 30 );
_drag->setMinimumWidth( 0 );
break;
case TopToBottom:
case BottomToTop:
- _titlebarlayout->setDirection( QBoxLayout::RightToLeft );
+ _titlebarlayout->setDirection( TQBoxLayout::RightToLeft );
_drag->setMinimumHeight( 0 );
_drag->setMinimumWidth( 30 );
}
@@ -117,7 +117,7 @@ void KPopupBox_widget::own( bool n ) {
_artswidget->reparent( 0, _artswidget->mapToGlobal( _artswidget->pos() ), !( _artswidget->isHidden() ) );
else
{
- _artswidget->reparent( this, QPoint( 0,0 ), !( _artswidget->isHidden() ) );
+ _artswidget->reparent( this, TQPoint( 0,0 ), !( _artswidget->isHidden() ) );
_layout->insertWidget( 1, _artswidget, 20 );
}
}