summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-05-22 14:45:47 (UTC)
committer llornkcor <llornkcor>2002-05-22 14:45:47 (UTC)
commitd7c7e0a272996ef3ae386e939d25737d3060e427 (patch) (unidiff)
treee39e2b2591ff4dfdd3928a4171e0c5bf1cbf0c78
parent7535b4d2d300c32fd50218a652c32ab4bb5886ab (diff)
downloadopie-d7c7e0a272996ef3ae386e939d25737d3060e427.zip
opie-d7c7e0a272996ef3ae386e939d25737d3060e427.tar.gz
opie-d7c7e0a272996ef3ae386e939d25737d3060e427.tar.bz2
fixed rampant mt thing
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/fileBrowser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/apps/textedit/fileBrowser.cpp b/core/apps/textedit/fileBrowser.cpp
index 9ad0d69..3798f90 100644
--- a/core/apps/textedit/fileBrowser.cpp
+++ b/core/apps/textedit/fileBrowser.cpp
@@ -48,49 +48,49 @@ fileBrowser::fileBrowser( QWidget* parent, const char* name, bool modal, WFlags
48 : QDialog( parent, name, modal, fl ) 48 : QDialog( parent, name, modal, fl )
49{ 49{
50 if ( !name ) 50 if ( !name )
51 setName( "fileBrowser" ); 51 setName( "fileBrowser" );
52 setCaption(tr( name ) ); 52 setCaption(tr( name ) );
53 53
54// getMimeTypes(); 54// getMimeTypes();
55 55
56// mimeType = mimeFilter; 56// mimeType = mimeFilter;
57// MimeType mt( mimeType); 57// MimeType mt( mimeType);
58 58
59// if( mt.extension().isEmpty()) { 59// if( mt.extension().isEmpty()) {
60 60
61// QStringList filterList; 61// QStringList filterList;
62// filterList=QStringList::split(";",mimeFilter,FALSE); 62// filterList=QStringList::split(";",mimeFilter,FALSE);
63 63
64// for ( QStringList::Iterator it = filterList.begin(); it != filterList.end(); ++it ) { 64// for ( QStringList::Iterator it = filterList.begin(); it != filterList.end(); ++it ) {
65// printf( "%s \n", (*it).latin1() ); 65// printf( "%s \n", (*it).latin1() );
66// } 66// }
67 67
68// filterStr = mimeFilter.right(mimeFilter.length() - mimeFilter.find("/",0,TRUE) - 1);// "*"; 68// filterStr = mimeFilter.right(mimeFilter.length() - mimeFilter.find("/",0,TRUE) - 1);// "*";
69 69
70// qDebug(filterStr); 70// qDebug(filterStr);
71// } else { 71// } else {
72 filterStr = "*."+ mt.extension(); 72 filterStr = "*";//+ mt.extension();
73// qDebug("description "+mt.description()); 73// qDebug("description "+mt.description());
74// qDebug( "id "+mt.id()); 74// qDebug( "id "+mt.id());
75// qDebug("extension "+mt.extension()); 75// qDebug("extension "+mt.extension());
76// } 76// }
77// channel = new QCopChannel( "QPE/fileDialog", this ); 77// channel = new QCopChannel( "QPE/fileDialog", this );
78// connect( channel, SIGNAL(received(const QCString&, const QByteArray&)), 78// connect( channel, SIGNAL(received(const QCString&, const QByteArray&)),
79// this, SLOT(receive(const QCString&, const QByteArray&)) ); 79// this, SLOT(receive(const QCString&, const QByteArray&)) );
80 80
81 QGridLayout *layout = new QGridLayout( this ); 81 QGridLayout *layout = new QGridLayout( this );
82 layout->setSpacing( 4 ); 82 layout->setSpacing( 4 );
83 layout->setMargin( 4 ); 83 layout->setMargin( 4 );
84 84
85 dirPathCombo = new QComboBox( FALSE, this, "dirPathCombo" ); 85 dirPathCombo = new QComboBox( FALSE, this, "dirPathCombo" );
86 dirPathCombo->setEditable(TRUE); 86 dirPathCombo->setEditable(TRUE);
87 87
88 connect( dirPathCombo, SIGNAL( activated( const QString & ) ), 88 connect( dirPathCombo, SIGNAL( activated( const QString & ) ),
89 this, SLOT( dirPathComboActivated( const QString & ) ) ); 89 this, SLOT( dirPathComboActivated( const QString & ) ) );
90 90
91 connect( dirPathCombo->lineEdit(), SIGNAL( returnPressed( ) ), 91 connect( dirPathCombo->lineEdit(), SIGNAL( returnPressed( ) ),
92 this, SLOT( dirPathEditPressed( ) ) ); 92 this, SLOT( dirPathEditPressed( ) ) );
93 93
94 dirPathStringList << "/"; 94 dirPathStringList << "/";
95// we can get the storage here 95// we can get the storage here
96 96