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 // Create main window
_splitter = new TQSplitter( Qt::Vertical, this ); _splitter = new TQSplitter( TQt::Vertical, this );
setCentralWidget( _splitter ); setCentralWidget( _splitter );
_treeView = new KDirTreeView( _splitter ); _treeView = new KDirTreeView( _splitter );

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

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

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

Loading…
Cancel
Save