summaryrefslogtreecommitdiff
authorzecke <zecke>2004-02-02 16:22:20 (UTC)
committer zecke <zecke>2004-02-02 16:22:20 (UTC)
commit9191120c28d3c125897b01680f57925c431c7104 (patch) (side-by-side diff)
tree29f9183396b639d9f4618d60845e74048703d789
parent44e49951c71b277bd05ecc9857ec39d73a61b35e (diff)
downloadopie-9191120c28d3c125897b01680f57925c431c7104.zip
opie-9191120c28d3c125897b01680f57925c431c7104.tar.gz
opie-9191120c28d3c125897b01680f57925c431c7104.tar.bz2
Use @slash to avoid problems with warning due /* in a comment
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/ofiledialog.h4
-rw-r--r--libopie/ofileselector.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/libopie/ofiledialog.h b/libopie/ofiledialog.h
index 91e0586..3b905c0 100644
--- a/libopie/ofiledialog.h
+++ b/libopie/ofiledialog.h
@@ -39,19 +39,19 @@
* It provides static method for letting a user chose
* a file for either opening or saving.
* Most of the time the c'tor will not be used instead using
* the static member functions is prefered.
*
* <pre>
* QMap<QString, QStringList> mimeTypes;
* QStringList types;
- * types << "text[slash]* ";
+ * types << "text@slash* ";
* mimeTypes.insert( tr("Text"), types );
- * mimeTypes.insert( tr("All"), " * / * " ); // remove the spaces in the 2nd comment
+ * mimeTypes.insert( tr("All"), " *@slash* " ); // remove the spaces in the 2nd comment
* QString fileName= OFileDialog::getOpenFileName( OFileSelector::EXTENDED_ALL,
* "foo","bar", mimeTypes);
* </pre>
*
* @short A small QDialog swalloing a FileSelector
* @see QDialog
* @see OFileSelector
* @version 0.1-unfinished
diff --git a/libopie/ofileselector.cpp b/libopie/ofileselector.cpp
index 9afe9c7..9ac2981 100644
--- a/libopie/ofileselector.cpp
+++ b/libopie/ofileselector.cpp
@@ -633,20 +633,20 @@ void OFileViewFileSystem::activate( const QString& str) {
*
* Create a OFileSelector to let the user select a file. It can
* either be used to open a file, select a save name in a dir or
* as a dropin for the FileSelector.
*
* <pre>
* QMap<QString, QStringList> mimeTypes;
* QStringList types;
- * types << "text[slash]* ";
- * types << "audio[slash]*";
+ * types << "text@slash* ";
+ * types << "audio@slash*";
* mimeTypes.insert( tr("Audio and Text"), types );
- * mimeTypes.insert( tr("All"), "*[slash]*);
+ * mimeTypes.insert( tr("All"), "*@slash*);
*
* now you could create your fileselector
* </pre>
*
*
* @param parent the parent of this widget
* @param mode The mode from the enum Mode (Open,Save,FILESELECTOR)
* @param sel The selector to be used