Rename old tq methods that no longer need a unique name

pull/1/head
Timothy Pearson 13 years ago
parent a327682a10
commit 56e137ce23

@ -348,7 +348,7 @@ void KDirStatApp::readMainWinConfig()
KConfig * config = kapp->config(); KConfig * config = kapp->config();
config->setGroup( "General Options" ); config->setGroup( "General Options" );
// tqStatus settings of the various bars and views // Status settings of the various bars and views
_showToolBar->setChecked( config->readBoolEntry( "Show Toolbar", true ) ); _showToolBar->setChecked( config->readBoolEntry( "Show Toolbar", true ) );
toggleToolBar(); toggleToolBar();

@ -79,7 +79,7 @@ KSettingsDialog::KSettingsDialog( KDirStatApp *mainWin )
_generalSettingsPageIndex = pageIndex( page ); _generalSettingsPageIndex = pageIndex( page );
new KGeneralSettingsPage( this, page, _mainWin ); new KGeneralSettingsPage( this, page, _mainWin );
// resize( tqsizeHint() ); // resize( sizeHint() );
} }
@ -370,7 +370,7 @@ KCleanupPage::setup()
// (Re-) Initialize list box. // (Re-) Initialize list box.
// _listBox->resize( _listBox->tqsizeHint() ); // _listBox->resize( _listBox->sizeHint() );
_listBox->setSelected( 0, true ); _listBox->setSelected( 0, true );
} }
@ -437,13 +437,13 @@ KCleanupListBox::KCleanupListBox( TQWidget *parent )
TQSize TQSize
KCleanupListBox::tqsizeHint() const KCleanupListBox::sizeHint() const
{ {
// FIXME: Is this still needed with TQt 2.x? // FIXME: Is this still needed with TQt 2.x?
if ( count() < 1 ) if ( count() < 1 )
{ {
// As long as the list is empty, tqsizeHint() would default to // As long as the list is empty, sizeHint() would default to
// (0,0) which is ALWAYS just a pain in the ass. We'd rather // (0,0) which is ALWAYS just a pain in the ass. We'd rather
// have an absolutely random value than this. // have an absolutely random value than this.
return TQSize( 100, 100 ); return TQSize( 100, 100 );
@ -646,7 +646,7 @@ KCleanupPropertiesPage::KCleanupPropertiesPage( TQWidget * parent,
outerBox->activate(); outerBox->activate();
setMinimumSize( tqsizeHint() ); setMinimumSize( sizeHint() );
} }
@ -815,7 +815,7 @@ KTreemapPage::KTreemapPage( KSettingsDialog * dialog,
TQVGroupBox * gbox = new TQVGroupBox( i18n( "Cushion Parameters" ), vbox ); TQVGroupBox * gbox = new TQVGroupBox( i18n( "Cushion Parameters" ), vbox );
_cushionParams = gbox; _cushionParams = gbox;
gbox->addSpace( 7 ); gbox->addSpace( 7 );
gbox->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) ); gbox->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) );
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 );
@ -823,7 +823,7 @@ KTreemapPage::KTreemapPage( KSettingsDialog * dialog,
DefaultAmbientLight,Qt::Horizontal, hbox ); DefaultAmbientLight,Qt::Horizontal, hbox );
_ambientLightSB = new TQSpinBox( MinAmbientLight, MaxAmbientLight, 1, // min, max, step _ambientLightSB = new TQSpinBox( MinAmbientLight, MaxAmbientLight, 1, // min, max, step
hbox ); hbox );
_ambientLightSB->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) ); _ambientLightSB->setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) );
label->setBuddy( _ambientLightSB ); label->setBuddy( _ambientLightSB );
gbox->addSpace( 7 ); gbox->addSpace( 7 );
@ -833,7 +833,7 @@ KTreemapPage::KTreemapPage( KSettingsDialog * dialog,
DefaultHeightScalePercent,Qt::Horizontal, hbox ); DefaultHeightScalePercent,Qt::Horizontal, hbox );
_heightScalePercentSB = new TQSpinBox( MinHeightScalePercent, MaxHeightScalePercent, 1, // min, max, step _heightScalePercentSB = new TQSpinBox( MinHeightScalePercent, MaxHeightScalePercent, 1, // min, max, step
hbox ); hbox );
_heightScalePercentSB->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) ); _heightScalePercentSB->setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) );
label->setBuddy( _heightScalePercentSB ); label->setBuddy( _heightScalePercentSB );
gbox->addSpace( 10 ); gbox->addSpace( 10 );
@ -847,7 +847,7 @@ KTreemapPage::KTreemapPage( KSettingsDialog * dialog,
_cushionGridColorL = new TQLabel( " " + i18n( "Gr&id Color: " ), hbox ); _cushionGridColorL = new TQLabel( " " + i18n( "Gr&id Color: " ), hbox );
_cushionGridColor = new KColorButton( hbox ); _cushionGridColor = new KColorButton( hbox );
_cushionGridColorL->setBuddy( _cushionGridColor ); _cushionGridColorL->setBuddy( _cushionGridColor );
_cushionGridColorL->tqsetAlignment( AlignRight | AlignVCenter ); _cushionGridColorL->setAlignment( AlignRight | AlignVCenter );
// addVStretch( vbox ); // addVStretch( vbox );
@ -860,17 +860,17 @@ KTreemapPage::KTreemapPage( KSettingsDialog * dialog,
label = new TQLabel( i18n( "&Files: " ), _plainTileParams ); label = new TQLabel( i18n( "&Files: " ), _plainTileParams );
_fileFillColor = new KColorButton( _plainTileParams ); _fileFillColor = new KColorButton( _plainTileParams );
label->setBuddy( _fileFillColor ); label->setBuddy( _fileFillColor );
label->tqsetAlignment( AlignRight | AlignVCenter ); label->setAlignment( AlignRight | AlignVCenter );
label = new TQLabel( " " + i18n( "&Directories: " ), _plainTileParams ); label = new TQLabel( " " + i18n( "&Directories: " ), _plainTileParams );
_dirFillColor = new KColorButton( _plainTileParams ); _dirFillColor = new KColorButton( _plainTileParams );
label->setBuddy( _dirFillColor ); label->setBuddy( _dirFillColor );
label->tqsetAlignment( AlignRight | AlignVCenter ); label->setAlignment( AlignRight | AlignVCenter );
label = new TQLabel( i18n( "Gr&id: " ), _plainTileParams ); label = new TQLabel( i18n( "Gr&id: " ), _plainTileParams );
_outlineColor = new KColorButton( _plainTileParams ); _outlineColor = new KColorButton( _plainTileParams );
label->setBuddy( _outlineColor ); label->setBuddy( _outlineColor );
label->tqsetAlignment( AlignRight | AlignVCenter ); label->setAlignment( AlignRight | AlignVCenter );
// Misc // Misc
@ -1035,7 +1035,7 @@ void
addHStretch( TQWidget * parent ) addHStretch( TQWidget * parent )
{ {
TQWidget * stretch = new TQWidget( parent ); TQWidget * stretch = new TQWidget( parent );
stretch->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, // hor stretch->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, // hor
TQSizePolicy::Minimum, // vert TQSizePolicy::Minimum, // vert
1, // hstretch 1, // hstretch
0 ) ); // vstretch 0 ) ); // vstretch
@ -1046,7 +1046,7 @@ void
addVStretch( TQWidget * parent ) addVStretch( TQWidget * parent )
{ {
TQWidget * stretch = new TQWidget( parent ); TQWidget * stretch = new TQWidget( parent );
stretch->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, // hor stretch->setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, // hor
TQSizePolicy::Expanding, // vert TQSizePolicy::Expanding, // vert
0, // hstretch 0, // hstretch
1 ) ); // vstretch 1 ) ); // vstretch

@ -426,7 +426,7 @@ namespace KDirStat
* without scrolling. In fact, we never want to see a scroll bar with * without scrolling. In fact, we never want to see a scroll bar with
* this kind of list box. * this kind of list box.
**/ **/
virtual TQSize tqsizeHint() const; virtual TQSize sizeHint() const;
/** /**
* Insert an entry for a cleanup action into the list box. Uses the * Insert an entry for a cleanup action into the list box. Uses the

@ -51,7 +51,7 @@ namespace KDirStat
/** /**
* tqStatus of a directory read job. * Status of a directory read job.
**/ **/
typedef enum typedef enum
{ {

@ -719,14 +719,14 @@ KDirTreeView::setTreeBackground( const TQColor &color )
void void
KDirTreeView::ensureContrast() KDirTreeView::ensureContrast()
{ {
if ( tqcolorGroup().base() == white || if ( colorGroup().base() == white ||
tqcolorGroup().base() == black ) colorGroup().base() == black )
{ {
setTreeBackground( tqcolorGroup().midlight() ); setTreeBackground( colorGroup().midlight() );
} }
else else
{ {
setTreeBackground( tqcolorGroup().base() ); setTreeBackground( colorGroup().base() );
} }
} }
@ -1593,7 +1593,7 @@ KDirTreeViewItem::compare( TQListViewItem * otherListViewItem,
void void
KDirTreeViewItem::paintCell( TQPainter * painter, KDirTreeViewItem::paintCell( TQPainter * painter,
const TQColorGroup & tqcolorGroup, const TQColorGroup & colorGroup,
int column, int column,
int width, int width,
int tqalignment ) int tqalignment )
@ -1602,7 +1602,7 @@ KDirTreeViewItem::paintCell( TQPainter * painter,
if ( column == _view->percentBarCol() ) if ( column == _view->percentBarCol() )
{ {
painter->setBackgroundColor( tqcolorGroup.base() ); painter->setBackgroundColor( colorGroup.base() );
if ( _percent > 0.0 ) if ( _percent > 0.0 )
{ {
@ -1634,7 +1634,7 @@ KDirTreeViewItem::paintCell( TQPainter * painter,
&& ! _pacMan ) && ! _pacMan )
{ {
TQListViewItem::paintCell( painter, TQListViewItem::paintCell( painter,
tqcolorGroup, colorGroup,
column, column,
width, width,
tqalignment ); tqalignment );
@ -1654,7 +1654,7 @@ KDirTreeViewItem::paintCell( TQPainter * painter,
* alignments etc. * alignments etc.
*/ */
TQListViewItem::paintCell( painter, TQListViewItem::paintCell( painter,
tqcolorGroup, colorGroup,
column, column,
width, width,
tqalignment ); tqalignment );

@ -352,7 +352,7 @@ namespace KDirStat
* Returns the minimum recommended size for this widget. * Returns the minimum recommended size for this widget.
* Reimplemented from TQWidget. * Reimplemented from TQWidget.
**/ **/
virtual TQSize tqminimumSizeHint() const { return TQSize( 0, 0 ); } virtual TQSize minimumSizeHint() const { return TQSize( 0, 0 ); }
protected slots: protected slots:
@ -745,7 +745,7 @@ namespace KDirStat
* Reimplemented from @ref TQListViewItem. * Reimplemented from @ref TQListViewItem.
**/ **/
virtual void paintCell ( TQPainter * painter, virtual void paintCell ( TQPainter * painter,
const TQColorGroup & tqcolorGroup, const TQColorGroup & colorGroup,
int column, int column,
int width, int width,
int tqalignment ); int tqalignment );

@ -112,16 +112,16 @@ KFeedbackForm::KFeedbackForm( const TQString & feedbackMailAddress,
label = new TQLabel( i18n( "Questions marked with " ), hbox ); label = new TQLabel( i18n( "Questions marked with " ), hbox );
CHECK_PTR( label ); CHECK_PTR( label );
label->tqsetSizePolicy( pol ); label->setSizePolicy( pol );
label = new TQLabel( hbox ); label = new TQLabel( hbox );
CHECK_PTR( label ); CHECK_PTR( label );
label->setPixmap( KGlobal::iconLoader()->loadIcon( "edit", KIcon::Small ) ); label->setPixmap( KGlobal::iconLoader()->loadIcon( "edit", KIcon::Small ) );
label->tqsetSizePolicy( pol ); label->setSizePolicy( pol );
label = new TQLabel( i18n( " must be answered before a mail can be sent.") , hbox ); label = new TQLabel( i18n( " must be answered before a mail can be sent.") , hbox );
CHECK_PTR( label ); CHECK_PTR( label );
label->tqsetSizePolicy( pol ); label->setSizePolicy( pol );
new TQWidget( hbox ); // Fill any leftover space to the right. new TQWidget( hbox ); // Fill any leftover space to the right.

@ -163,7 +163,7 @@ KPacManAnimation::animate( TQPainter * painter,
// Transfer pixmap into widget // Transfer pixmap into widget
#if 0 #if 0
TQPoint offset = painter->tqworldMatrix().map( _pacManRect.topLeft() ); TQPoint offset = painter->worldMatrix().map( _pacManRect.topLeft() );
// kdDebug() << "bitBlt() to " << offset.x() << ", " << offset.y() << endl; // kdDebug() << "bitBlt() to " << offset.x() << ", " << offset.y() << endl;
bitBlt( _widget, offset, &pixmap ); bitBlt( _widget, offset, &pixmap );
#endif #endif
@ -300,7 +300,7 @@ KPacMan::mouseReleaseEvent ( TQMouseEvent *ev )
TQSize TQSize
KPacMan::tqsizeHint() const KPacMan::sizeHint() const
{ {
return TQSize( 16 * _pacManSize, // width - admittedly somewhat random return TQSize( 16 * _pacManSize, // width - admittedly somewhat random
_pacManSize + 2 * _margin ); // height _pacManSize + 2 * _margin ); // height

@ -211,7 +211,7 @@ public:
* *
* Reimplemented from @ref TQWidget. * Reimplemented from @ref TQWidget.
**/ **/
virtual TQSize tqsizeHint() const; virtual TQSize sizeHint() const;
public slots: public slots:

@ -184,12 +184,12 @@ KTreemapTile::createSquarifiedChildren( const TQRect & rect )
#endif #endif
KFileInfoSortedBySizeIterator it( _orig, minSize, KDotEntryAsSubDir ); KFileInfoSortedBySizeIterator it( _orig, minSize, KDotEntryAsSubDir );
TQRect tqchildrenRect = rect; TQRect childrenRect = rect;
while ( *it ) while ( *it )
{ {
KFileInfoList row = squarify( tqchildrenRect, scale, it ); KFileInfoList row = squarify( childrenRect, scale, it );
tqchildrenRect = layoutRow( tqchildrenRect, scale, row ); childrenRect = layoutRow( childrenRect, scale, row );
} }
} }

@ -69,7 +69,7 @@ namespace KDirStat
* Returns the minimum recommended size for this widget. * Returns the minimum recommended size for this widget.
* Reimplemented from TQWidget. * Reimplemented from TQWidget.
**/ **/
virtual TQSize tqminimumSizeHint() const { return TQSize( 0, 0 ); } virtual TQSize minimumSizeHint() const { return TQSize( 0, 0 ); }
/** /**
* Returns this treemap view's currently selected treemap tile or 0 if * Returns this treemap view's currently selected treemap tile or 0 if

Loading…
Cancel
Save