[Qt-interest] reg setsidebarUrls

Sahana Bhaskar Sahana_Bhaskar at infosys.com
Mon Aug 8 16:49:19 CEST 2011


Hi,

I am implementing a solution where I save the URL's in the sidebar of a file dialog as a string into a text document when the application closes. Now on the application start up I read this text file and set my sidebar with the URL's read from the text file.

The catch is a few URL's must be present at the startup even if they were removed during the last session. So if I add them explicitly to the URL List in addition to the one's read from the text file.

Eg. If I have should have MY Computer as the default side bar URL every time the application starts and the same URL was saved in the last close session(say was not removed by the user so it gets saved).  Now if I read the URL list from text file it has path for MY Computer and I too explicitly set it in my code.

Does the sidebar have any feature through which I can stop it from getting added twice? Or display it only once?

Your suggestions are most appreciated.

Thanks,
Sahana

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110808/177fc288/attachment.html 


More information about the Qt-interest-old mailing list