summaryrefslogtreecommitdiff
path: root/core/apps/textedit/fileBrowser.cpp
Unidiff
Diffstat (limited to 'core/apps/textedit/fileBrowser.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/fileBrowser.cpp23
1 files changed, 22 insertions, 1 deletions
diff --git a/core/apps/textedit/fileBrowser.cpp b/core/apps/textedit/fileBrowser.cpp
index ebb78d1..f3e4e1e 100644
--- a/core/apps/textedit/fileBrowser.cpp
+++ b/core/apps/textedit/fileBrowser.cpp
@@ -3,25 +3,25 @@
3** Created: Fri Dec 14 08:16:46 2001 3** Created: Fri Dec 14 08:16:46 2001
4** 4**
5** This file may be distributed and/or modified under the terms of the 5** This file may be distributed and/or modified under the terms of the
6** GNU General Public License version 2 as published by the Free Software 6** GNU General Public License version 2 as published by the Free Software
7** Foundation and appearing in the file LICENSE.GPL included in the 7** Foundation and appearing in the file LICENSE.GPL included in the
8** packaging of this file. 8** packaging of this file.
9** 9**
10** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 10** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
11** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 11** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
12** 12**
13****************************************************************************/ 13****************************************************************************/
14#include "fileBrowser.h" 14#include "fileBrowser.h"
15#include "inputDialog.h" 15//#include "inputDialog.h"
16 16
17#include <qpe/config.h> 17#include <qpe/config.h>
18#include <qpe/resource.h> 18#include <qpe/resource.h>
19#include <qpe/fileselector.h> 19#include <qpe/fileselector.h>
20#include <qpe/qpeapplication.h> 20#include <qpe/qpeapplication.h>
21#include <qpe/menubutton.h> 21#include <qpe/menubutton.h>
22#include <qpe/mimetype.h> 22#include <qpe/mimetype.h>
23 23
24#include <qdict.h> 24#include <qdict.h>
25#include <qwidgetstack.h> 25#include <qwidgetstack.h>
26#include <qlistview.h> 26#include <qlistview.h>
27#include <qcombo.h> 27#include <qcombo.h>
@@ -544,12 +544,33 @@ void fileBrowser::dirPathEditPressed() {
544} 544}
545 545
546void fileBrowser::fillCombo(const QString &currentPath) { 546void fileBrowser::fillCombo(const QString &currentPath) {
547 547
548 dirPathCombo->lineEdit()->setText(currentPath); 548 dirPathCombo->lineEdit()->setText(currentPath);
549 549
550 if( dirPathStringList.grep(currentPath,TRUE).isEmpty() ) { 550 if( dirPathStringList.grep(currentPath,TRUE).isEmpty() ) {
551 dirPathCombo->clear(); 551 dirPathCombo->clear();
552 dirPathStringList.prepend(currentPath ); 552 dirPathStringList.prepend(currentPath );
553 dirPathCombo->insertStringList( dirPathStringList,-1); 553 dirPathCombo->insertStringList( dirPathStringList,-1);
554 } 554 }
555} 555}
556
557
558InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
559 : QDialog( parent, name, modal, fl )
560{
561 if ( !name )
562 setName( "InputDialog" );
563 resize( 234, 50 );
564 setMaximumSize( QSize( 240, 50 ) );
565 setCaption( tr(name ) );
566
567 LineEdit1 = new QLineEdit( this, "LineEdit1" );
568 LineEdit1->setGeometry( QRect( 10, 10, 216, 22 ) );
569}
570
571InputDialog::~InputDialog()
572{
573 inputText= LineEdit1->text();
574
575}
576