|
|
|
@ -927,7 +927,7 @@ public:
|
|
|
|
|
|
|
|
|
|
TQStringList history;
|
|
|
|
|
|
|
|
|
|
bool tqgeometryDirty;
|
|
|
|
|
bool geometryDirty;
|
|
|
|
|
TQComboBox * paths;
|
|
|
|
|
TQComboBox * types;
|
|
|
|
|
TQLabel * pathL;
|
|
|
|
@ -2593,7 +2593,7 @@ void TQFileDialog::init()
|
|
|
|
|
( (TQLineEdit*)ol->first() )->installEventFilter( this );
|
|
|
|
|
delete ol;
|
|
|
|
|
|
|
|
|
|
d->tqgeometryDirty = TRUE;
|
|
|
|
|
d->geometryDirty = TRUE;
|
|
|
|
|
d->types = new TQComboBox( TRUE, this, "file types" );
|
|
|
|
|
d->types->setDuplicatesEnabled( FALSE );
|
|
|
|
|
d->types->setEditable( FALSE );
|
|
|
|
@ -3882,10 +3882,10 @@ bool TQFileDialog::trySetSelection( bool isDir, const TQUrlOperator &u, bool upd
|
|
|
|
|
|
|
|
|
|
void TQFileDialog::updateGeometries()
|
|
|
|
|
{
|
|
|
|
|
if ( !d || !d->tqgeometryDirty )
|
|
|
|
|
if ( !d || !d->geometryDirty )
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
d->tqgeometryDirty = FALSE;
|
|
|
|
|
d->geometryDirty = FALSE;
|
|
|
|
|
|
|
|
|
|
TQSize r, t;
|
|
|
|
|
|
|
|
|
@ -4809,7 +4809,7 @@ void TQFileDialog::addWidgets( TQLabel * l, TQWidget * w, TQPushButton * b )
|
|
|
|
|
if ( !l && !w && !b )
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
d->tqgeometryDirty = TRUE;
|
|
|
|
|
d->geometryDirty = TRUE;
|
|
|
|
|
|
|
|
|
|
TQHBoxLayout *lay = new TQHBoxLayout();
|
|
|
|
|
d->extraWidgetsLayouts.append( lay );
|
|
|
|
@ -4852,7 +4852,7 @@ void TQFileDialog::addToolButton( TQButton *b, bool separator )
|
|
|
|
|
if ( !b || !d->buttonLayout )
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
d->tqgeometryDirty = TRUE;
|
|
|
|
|
d->geometryDirty = TRUE;
|
|
|
|
|
|
|
|
|
|
d->toolButtons.append( b );
|
|
|
|
|
if ( separator )
|
|
|
|
@ -4872,7 +4872,7 @@ void TQFileDialog::addLeftWidget( TQWidget *w )
|
|
|
|
|
{
|
|
|
|
|
if ( !w )
|
|
|
|
|
return;
|
|
|
|
|
d->tqgeometryDirty = TRUE;
|
|
|
|
|
d->geometryDirty = TRUE;
|
|
|
|
|
|
|
|
|
|
d->leftLayout->addWidget( w );
|
|
|
|
|
d->leftLayout->addSpacing( 5 );
|
|
|
|
@ -4890,7 +4890,7 @@ void TQFileDialog::addRightWidget( TQWidget *w )
|
|
|
|
|
{
|
|
|
|
|
if ( !w )
|
|
|
|
|
return;
|
|
|
|
|
d->tqgeometryDirty = TRUE;
|
|
|
|
|
d->geometryDirty = TRUE;
|
|
|
|
|
|
|
|
|
|
d->rightLayout->addSpacing( 5 );
|
|
|
|
|
d->rightLayout->addWidget( w );
|
|
|
|
@ -6096,7 +6096,7 @@ void TQFileDialog::setInfoPreviewEnabled( bool info )
|
|
|
|
|
{
|
|
|
|
|
if ( info == d->infoPreview )
|
|
|
|
|
return;
|
|
|
|
|
d->tqgeometryDirty = TRUE;
|
|
|
|
|
d->geometryDirty = TRUE;
|
|
|
|
|
d->infoPreview = info;
|
|
|
|
|
updateGeometries();
|
|
|
|
|
}
|
|
|
|
@ -6124,7 +6124,7 @@ void TQFileDialog::setContentsPreviewEnabled( bool contents )
|
|
|
|
|
{
|
|
|
|
|
if ( contents == d->contentsPreview )
|
|
|
|
|
return;
|
|
|
|
|
d->tqgeometryDirty = TRUE;
|
|
|
|
|
d->geometryDirty = TRUE;
|
|
|
|
|
d->contentsPreview = contents;
|
|
|
|
|
updateGeometries();
|
|
|
|
|
}
|
|
|
|
|