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