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