Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/6/head
Michele Calgaro 1 year ago
parent 554f141790
commit 104416a801
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -82,7 +82,7 @@ KDirStatApp::KDirStatApp( TQWidget* , const char* name )
// Create main window
_splitter = new TQSplitter( Qt::Vertical, this );
_splitter = new TQSplitter( TQt::Vertical, this );
setCentralWidget( _splitter );
_treeView = new KDirTreeView( _splitter );

@ -207,7 +207,7 @@ KTreeColorsPage::KTreeColorsPage( KSettingsDialog * dialog,
_maxButtons, // maxValue
1, // pageStep
1, // value
Qt::Vertical,
TQt::Vertical,
this );
outerBox->addWidget( _slider, 0 );
outerBox->activate();
@ -820,7 +820,7 @@ KTreemapPage::KTreemapPage( KSettingsDialog * dialog,
TQLabel * label = new TQLabel( i18n( "Ambient &Light" ), gbox );
TQHBox * hbox = new TQHBox( gbox );
_ambientLight = new TQSlider ( MinAmbientLight, MaxAmbientLight, 10, // min, max, pageStep
DefaultAmbientLight,Qt::Horizontal, hbox );
DefaultAmbientLight,TQt::Horizontal, hbox );
_ambientLightSB = new TQSpinBox( MinAmbientLight, MaxAmbientLight, 1, // min, max, step
hbox );
_ambientLightSB->setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) );
@ -830,7 +830,7 @@ KTreemapPage::KTreemapPage( KSettingsDialog * dialog,
label = new TQLabel( i18n( "&Height Scale" ), gbox );
hbox = new TQHBox( gbox );
_heightScalePercent = new TQSlider( MinHeightScalePercent, MaxHeightScalePercent, 10, // min, max, pageStep
DefaultHeightScalePercent,Qt::Horizontal, hbox );
DefaultHeightScalePercent,TQt::Horizontal, hbox );
_heightScalePercentSB = new TQSpinBox( MinHeightScalePercent, MaxHeightScalePercent, 1, // min, max, step
hbox );
_heightScalePercentSB->setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) );

@ -85,7 +85,7 @@ KTreemapTile::init()
setZ( _parentTile ? ( _parentTile->z() + 1.0 ) : 0.0 );
setBrush( TQColor( 0x60, 0x60, 0x60 ) );
setPen( Qt::NoPen );
setPen( TQt::NoPen );
show(); // TQCanvasItems are invisible by default!

@ -181,12 +181,12 @@ KTreemapView::contentsMousePressEvent( TQMouseEvent * event )
switch ( event->button() )
{
case Qt::LeftButton:
case TQt::LeftButton:
selectTile( tile );
emit userActivity( 1 );
break;
case Qt::MidButton:
case TQt::MidButton:
// Select clicked tile's parent, if available
if ( _selectedTile &&
@ -208,7 +208,7 @@ KTreemapView::contentsMousePressEvent( TQMouseEvent * event )
emit userActivity( 1 );
break;
case Qt::RightButton:
case TQt::RightButton:
if ( tile )
{
@ -247,7 +247,7 @@ KTreemapView::contentsMouseDoubleClickEvent( TQMouseEvent * event )
switch ( event->button() )
{
case Qt::LeftButton:
case TQt::LeftButton:
if ( tile )
{
selectTile( tile );
@ -256,12 +256,12 @@ KTreemapView::contentsMouseDoubleClickEvent( TQMouseEvent * event )
}
break;
case Qt::MidButton:
case TQt::MidButton:
zoomOut();
emit userActivity( 5 );
break;
case Qt::RightButton:
case TQt::RightButton:
// Double-clicking the right mouse button is pretty useless - the
// first click opens the context menu: Single clicks are always
// delivered first. Even if that would be caught by using timers,

Loading…
Cancel
Save