myPath->setPathFilter( f );
}
+/*!
+ \brief Get currently used path widget options.
+ \return file or directory path options
+ \sa setPathOptions()
+*/
+QFileDialog::Options QtxPagePrefPathItem::pathOptions() const
+{
+ return myPath->pathOptions();
+}
+
+/*!
+ \brief Set path widget options.
+ \param f new file or directory path options
+ \sa pathOptions()
+*/
+void QtxPagePrefPathItem::setPathOptions( const QFileDialog::Options options )
+{
+ myPath->setPathOptions( options );
+}
+
+
/*!
\brief Store preference item to the resource manager.
\sa retrieve()
return pathType();
else if ( name == "path_filter" )
return pathFilter();
+ else if ( name == "path_options" )
+ return QVariant::fromValue(pathOptions());
else
return QtxPageNamedPrefItem::optionValue( name );
}
if ( val.canConvert( QVariant::String ) )
setPathFilter( val.toString() );
}
+ else if ( name == "path_options" )
+ {
+ if ( val.canConvert( QVariant::Int ) )
+ setPathOptions( (QFileDialog::Options)val.toInt() );
+ }
else
QtxPageNamedPrefItem::setOptionValue( name, val );
}