summaryrefslogtreecommitdiff
path: root/core/applets/screenshotapplet/inputDialog.cpp
Unidiff
Diffstat (limited to 'core/applets/screenshotapplet/inputDialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/applets/screenshotapplet/inputDialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/applets/screenshotapplet/inputDialog.cpp b/core/applets/screenshotapplet/inputDialog.cpp
index 73ec773..ce03ec0 100644
--- a/core/applets/screenshotapplet/inputDialog.cpp
+++ b/core/applets/screenshotapplet/inputDialog.cpp
@@ -6,24 +6,25 @@
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 <opie2/ofiledialog.h> 13#include <opie2/ofiledialog.h>
14 14
15#include <qlineedit.h> 15#include <qlineedit.h>
16#include <qpushbutton.h> 16#include <qpushbutton.h>
17 17
18using namespace Opie::Ui;
18InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) 19InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
19 : QDialog( parent, name, modal, fl ) 20 : QDialog( parent, name, modal, fl )
20{ 21{
21 if ( !name ) 22 if ( !name )
22 setName( "InputDialog" ); 23 setName( "InputDialog" );
23 resize( 234, 115); 24 resize( 234, 115);
24 setMaximumSize( QSize( 240, 40)); 25 setMaximumSize( QSize( 240, 40));
25 setCaption( tr(name ) ); 26 setCaption( tr(name ) );
26 27
27 QPushButton *browserButton; 28 QPushButton *browserButton;
28 browserButton = new QPushButton( Resource::loadIconSet("fileopen"),"",this,"BrowseButton"); 29 browserButton = new QPushButton( Resource::loadIconSet("fileopen"),"",this,"BrowseButton");
29 browserButton->setGeometry( QRect( 205, 10, 22, 22)); 30 browserButton->setGeometry( QRect( 205, 10, 22, 22));
@@ -49,16 +50,16 @@ void InputDialog::browse() {
49 audio << "playlist/plain"; 50 audio << "playlist/plain";
50 audio << "audio/x-mpegurl"; 51 audio << "audio/x-mpegurl";
51 52
52 video << "video/*"; 53 video << "video/*";
53 video << "playlist/plain"; 54 video << "playlist/plain";
54 55
55 all += audio; 56 all += audio;
56 all += video; 57 all += video;
57 types.insert("All Media Files", all ); 58 types.insert("All Media Files", all );
58 types.insert("Audio", audio ); 59 types.insert("Audio", audio );
59 types.insert("Video", video ); 60 types.insert("Video", video );
60 61
61 QString str = Opie::OFileDialog::getOpenFileName( 1,"/","", types, 0 ); 62 QString str = Opie::Ui::OFileDialog::getOpenFileName( 1,"/","", types, 0 );
62 LineEdit1->setText(str); 63 LineEdit1->setText(str);
63} 64}
64 65