summaryrefslogtreecommitdiff
authoralwin <alwin>2004-02-27 01:17:31 (UTC)
committer alwin <alwin>2004-02-27 01:17:31 (UTC)
commitad932d21d169250e11b709327b5e9485599b8404 (patch) (unidiff)
treeb56e0bf610b695941fcdbe798310c663c2aaae72
parent8de117d74a9a0672ae6ec809a1a17fdb29226290 (diff)
downloadopie-ad932d21d169250e11b709327b5e9485599b8404.zip
opie-ad932d21d169250e11b709327b5e9485599b8404.tar.gz
opie-ad932d21d169250e11b709327b5e9485599b8404.tar.bz2
included the wrong ofiledialog.h
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/screenshotapplet/inputDialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/applets/screenshotapplet/inputDialog.cpp b/core/applets/screenshotapplet/inputDialog.cpp
index da8e276..f506dfd 100644
--- a/core/applets/screenshotapplet/inputDialog.cpp
+++ b/core/applets/screenshotapplet/inputDialog.cpp
@@ -1,67 +1,67 @@
1/**************************************************************************** 1/****************************************************************************
2** Form implementation generated from reading ui file 'inputDialog.ui' 2** Form implementation generated from reading ui file 'inputDialog.ui'
3** 3**
4** Created: Sat Mar 2 07:55:03 2002 4** Created: Sat Mar 2 07:55:03 2002
5** by: The User Interface Compiler (uic) 5** by: The User Interface Compiler (uic)
6** 6**
7** WARNING! All changes made in this file will be lost! 7** WARNING! All changes made in this file will be lost!
8****************************************************************************/ 8****************************************************************************/
9#include "inputDialog.h" 9#include "inputDialog.h"
10 10
11#include <qpe/resource.h> 11#include <qpe/resource.h>
12 12
13#include <opie/ofiledialog.h> 13#include <opie2/ofiledialog.h>
14 14
15#include <qlineedit.h> 15#include <qlineedit.h>
16#include <qlayout.h> 16#include <qlayout.h>
17#include <qvariant.h> 17#include <qvariant.h>
18#include <qpushbutton.h> 18#include <qpushbutton.h>
19#include <qwhatsthis.h> 19#include <qwhatsthis.h>
20 20
21InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) 21InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
22 : QDialog( parent, name, modal, fl ) 22 : QDialog( parent, name, modal, fl )
23{ 23{
24 if ( !name ) 24 if ( !name )
25 setName( "InputDialog" ); 25 setName( "InputDialog" );
26 resize( 234, 115); 26 resize( 234, 115);
27 setMaximumSize( QSize( 240, 40)); 27 setMaximumSize( QSize( 240, 40));
28 setCaption( tr(name ) ); 28 setCaption( tr(name ) );
29 29
30 QPushButton *browserButton; 30 QPushButton *browserButton;
31 browserButton = new QPushButton( Resource::loadIconSet("fileopen"),"",this,"BrowseButton"); 31 browserButton = new QPushButton( Resource::loadIconSet("fileopen"),"",this,"BrowseButton");
32 browserButton->setGeometry( QRect( 205, 10, 22, 22)); 32 browserButton->setGeometry( QRect( 205, 10, 22, 22));
33 connect( browserButton, SIGNAL(released()),this,SLOT(browse())); 33 connect( browserButton, SIGNAL(released()),this,SLOT(browse()));
34 LineEdit1 = new QLineEdit( this, "LineEdit1" ); 34 LineEdit1 = new QLineEdit( this, "LineEdit1" );
35 LineEdit1->setGeometry( QRect( 4, 10, 190, 22 ) ); 35 LineEdit1->setGeometry( QRect( 4, 10, 190, 22 ) );
36} 36}
37 37
38/* 38/*
39 * Destroys the object and frees any allocated resources 39 * Destroys the object and frees any allocated resources
40 */ 40 */
41InputDialog::~InputDialog() 41InputDialog::~InputDialog()
42{ 42{
43 inputText= LineEdit1->text(); 43 inputText= LineEdit1->text();
44 44
45} 45}
46 46
47void InputDialog::browse() { 47void InputDialog::browse() {
48 48
49 MimeTypes types; 49 MimeTypes types;
50 QStringList audio, video, all; 50 QStringList audio, video, all;
51 audio << "audio/*"; 51 audio << "audio/*";
52 audio << "playlist/plain"; 52 audio << "playlist/plain";
53 audio << "audio/x-mpegurl"; 53 audio << "audio/x-mpegurl";
54 54
55 video << "video/*"; 55 video << "video/*";
56 video << "playlist/plain"; 56 video << "playlist/plain";
57 57
58 all += audio; 58 all += audio;
59 all += video; 59 all += video;
60 types.insert("All Media Files", all ); 60 types.insert("All Media Files", all );
61 types.insert("Audio", audio ); 61 types.insert("Audio", audio );
62 types.insert("Video", video ); 62 types.insert("Video", video );
63 63
64 QString str = OFileDialog::getOpenFileName( 1,"/","", types, 0 ); 64 QString str = Opie::OFileDialog::getOpenFileName( 1,"/","", types, 0 );
65 LineEdit1->setText(str); 65 LineEdit1->setText(str);
66} 66}
67 67