summaryrefslogtreecommitdiff
authorzecke <zecke>2004-02-02 16:22:20 (UTC)
committer zecke <zecke>2004-02-02 16:22:20 (UTC)
commit9191120c28d3c125897b01680f57925c431c7104 (patch) (unidiff)
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
@@ -41,15 +41,15 @@
41 * Most of the time the c'tor will not be used instead using 41 * Most of the time the c'tor will not be used instead using
42 * the static member functions is prefered. 42 * the static member functions is prefered.
43 * 43 *
44 * <pre> 44 * <pre>
45 * QMap<QString, QStringList> mimeTypes; 45 * QMap<QString, QStringList> mimeTypes;
46 * QStringList types; 46 * QStringList types;
47 * types << "text[slash]* "; 47 * types << "text@slash* ";
48 * mimeTypes.insert( tr("Text"), types ); 48 * mimeTypes.insert( tr("Text"), types );
49 * mimeTypes.insert( tr("All"), " * / * " ); // remove the spaces in the 2nd comment 49 * mimeTypes.insert( tr("All"), " *@slash* " ); // remove the spaces in the 2nd comment
50 * QString fileName= OFileDialog::getOpenFileName( OFileSelector::EXTENDED_ALL, 50 * QString fileName= OFileDialog::getOpenFileName( OFileSelector::EXTENDED_ALL,
51 * "foo","bar", mimeTypes); 51 * "foo","bar", mimeTypes);
52 * </pre> 52 * </pre>
53 * 53 *
54 * @short A small QDialog swalloing a FileSelector 54 * @short A small QDialog swalloing a FileSelector
55 * @see QDialog 55 * @see QDialog
diff --git a/libopie/ofileselector.cpp b/libopie/ofileselector.cpp
index 9afe9c7..9ac2981 100644
--- a/libopie/ofileselector.cpp
+++ b/libopie/ofileselector.cpp
@@ -635,16 +635,16 @@ void OFileViewFileSystem::activate( const QString& str) {
635 * either be used to open a file, select a save name in a dir or 635 * either be used to open a file, select a save name in a dir or
636 * as a dropin for the FileSelector. 636 * as a dropin for the FileSelector.
637 * 637 *
638 * <pre> 638 * <pre>
639 * QMap<QString, QStringList> mimeTypes; 639 * QMap<QString, QStringList> mimeTypes;
640 * QStringList types; 640 * QStringList types;
641 * types << "text[slash]* "; 641 * types << "text@slash* ";
642 * types << "audio[slash]*"; 642 * types << "audio@slash*";
643 * mimeTypes.insert( tr("Audio and Text"), types ); 643 * mimeTypes.insert( tr("Audio and Text"), types );
644 * mimeTypes.insert( tr("All"), "*[slash]*); 644 * mimeTypes.insert( tr("All"), "*@slash*);
645 * 645 *
646 * now you could create your fileselector 646 * now you could create your fileselector
647 * </pre> 647 * </pre>
648 * 648 *
649 * 649 *
650 * @param parent the parent of this widget 650 * @param parent the parent of this widget