Diffstat (limited to 'noncore/multimedia/showimg/showimg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/showimg/showimg.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/noncore/multimedia/showimg/showimg.cpp b/noncore/multimedia/showimg/showimg.cpp index 02a1d91..82eac33 100644 --- a/noncore/multimedia/showimg/showimg.cpp +++ b/noncore/multimedia/showimg/showimg.cpp | |||
@@ -11,66 +11,53 @@ | |||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | // | 21 | // |
22 | // Full-screen and rotation options contributed by Robert Wittams <robert@wittams.com> | 22 | // Full-screen and rotation options contributed by Robert Wittams <robert@wittams.com> |
23 | // | 23 | // |
24 | 24 | ||
25 | #include "showimg.h" | 25 | #include "showimg.h" |
26 | #include "ImageFileSelector.h" | 26 | #include "ImageFileSelector.h" |
27 | #include "settingsdialog.h" | 27 | #include "settingsdialog.h" |
28 | 28 | ||
29 | 29 | ||
30 | #include <opie/ofiledialog.h> | 30 | #include <opie/ofiledialog.h> |
31 | 31 | ||
32 | #include <qpe/qpeapplication.h> | 32 | #include <qpe/qpeapplication.h> |
33 | #include <qpe/config.h> | 33 | #include <qpe/config.h> |
34 | #include <qpe/resource.h> | 34 | #include <qpe/resource.h> |
35 | #include <qpe/fileselector.h> | ||
36 | #include <qpe/applnk.h> | ||
37 | #include <qfileinfo.h> | ||
38 | #include <math.h> | 35 | #include <math.h> |
39 | #include <qmenubar.h> | 36 | #include <qmenubar.h> |
40 | #include <qwidgetstack.h> | ||
41 | #include <qpe/qpetoolbar.h> | 37 | #include <qpe/qpetoolbar.h> |
42 | #include <qaction.h> | 38 | #include <qaction.h> |
43 | #include <qfiledialog.h> | 39 | #include <qfiledialog.h> |
44 | #include <qmessagebox.h> | ||
45 | #include <qpopupmenu.h> | ||
46 | #include <qscrollview.h> | ||
47 | #include <qlabel.h> | ||
48 | #include <qpainter.h> | ||
49 | #include <qkeycode.h> | ||
50 | #include <qapplication.h> | ||
51 | #include <qclipboard.h> | ||
52 | #include <qtimer.h> | ||
53 | #include <qspinbox.h> | 40 | #include <qspinbox.h> |
54 | 41 | ||
55 | 42 | ||
56 | 43 | ||
57 | ControlsDialog::ControlsDialog(const QString &caption,QImage image,int *brightness,QWidget *parent) | 44 | ControlsDialog::ControlsDialog(const QString &caption,QImage image,int *brightness,QWidget *parent) |
58 | : QDialog(parent,0,true) | 45 | : QDialog(parent,0,true) |
59 | { | 46 | { |
60 | setCaption(caption); | 47 | setCaption(caption); |
61 | 48 | ||
62 | if ( parent ) { | 49 | if ( parent ) { |
63 | setPalette(parent->palette()); | 50 | setPalette(parent->palette()); |
64 | } | 51 | } |
65 | 52 | ||
66 | b=brightness; | 53 | b=brightness; |
67 | img=image; | 54 | img=image; |
68 | 55 | ||
69 | setMinimumSize(140,80); | 56 | setMinimumSize(140,80); |
70 | 57 | ||
71 | QGridLayout *gl= new QGridLayout(this,2,2,4,4); | 58 | QGridLayout *gl= new QGridLayout(this,2,2,4,4); |
72 | 59 | ||
73 | pixmap =new ImageWidget(this);; | 60 | pixmap =new ImageWidget(this);; |
74 | QPixmap pm; | 61 | QPixmap pm; |
75 | pm.convertFromImage(img); | 62 | pm.convertFromImage(img); |
76 | pixmap->setPixmap(pm); | 63 | pixmap->setPixmap(pm); |