summaryrefslogtreecommitdiff
path: root/noncore
Unidiff
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/TODO2
-rw-r--r--noncore/graphics/opie-eye/gui/imageinfoui.cpp10
2 files changed, 6 insertions, 6 deletions
diff --git a/noncore/graphics/opie-eye/TODO b/noncore/graphics/opie-eye/TODO
index e31cb73..8dbf35e 100644
--- a/noncore/graphics/opie-eye/TODO
+++ b/noncore/graphics/opie-eye/TODO
@@ -1,9 +1,9 @@
1Todo for Opie-Eye 1Todo for Opie-Eye
2 2
31.) Extend BigScreen classes to have something like a combined OSplitter and OWidgetStack. 31.) Extend BigScreen classes to have something like a combined OSplitter and OWidgetStack.
4 On small screens one could toggle this Widget into the View but on BigScreen it would 4 On small screens one could toggle this Widget into the View but on BigScreen it would
5 be a full widget OToggleSplitter 5 be a full widget -> OToggleSplitter
6 6
72.) Write a Image Info Widget which uses the cache to get the thumb and the slave to get 72.) Write a Image Info Widget which uses the cache to get the thumb and the slave to get
8 the info and display it. Make use of OKeyConfigManager to manager keys for up and down 8 the info and display it. Make use of OKeyConfigManager to manager keys for up and down
9 and left and right to switch between views and go from one image to the next. it would 9 and left and right to switch between views and go from one image to the next. it would
diff --git a/noncore/graphics/opie-eye/gui/imageinfoui.cpp b/noncore/graphics/opie-eye/gui/imageinfoui.cpp
index 2580215..3463ba6 100644
--- a/noncore/graphics/opie-eye/gui/imageinfoui.cpp
+++ b/noncore/graphics/opie-eye/gui/imageinfoui.cpp
@@ -28,11 +28,11 @@ imageinfo::imageinfo(const QString&_path, QWidget* parent, const char* name, WF
28 QCopEnvelope( "QPE/Application/opie-eye_slave", "refUp()" ); 28 QCopEnvelope( "QPE/Application/opie-eye_slave", "refUp()" );
29 } 29 }
30 if ( !name ) 30 if ( !name )
31 setName( "imageinfo" ); 31 setName( "imageinfo" );
32 resize( 289, 335 ); 32 resize( 289, 335 );
33 setCaption( tr( "Image info" ) ); 33 setCaption( tr( "Image info" ) );
34 imageinfoLayout = new QVBoxLayout( this ); 34 imageinfoLayout = new QVBoxLayout( this );
35 imageinfoLayout->setSpacing(2); 35 imageinfoLayout->setSpacing(2);
36 imageinfoLayout->setMargin(4); 36 imageinfoLayout->setMargin(4);
37 37
38 PixmapLabel1 = new QLabel( this, "PixmapLabel1" ); 38 PixmapLabel1 = new QLabel( this, "PixmapLabel1" );
@@ -46,18 +46,18 @@ imageinfo::imageinfo(const QString&_path, QWidget* parent, const char* name, WF
46 imageinfoLayout->addWidget( Line1 ); 46 imageinfoLayout->addWidget( Line1 );
47 47
48 fnameLabel = new QLabel( this, "FnameLabel" ); 48 fnameLabel = new QLabel( this, "FnameLabel" );
49 imageinfoLayout->addWidget( fnameLabel); 49 imageinfoLayout->addWidget( fnameLabel);
50 50
51 TextView1 = new QTextView( this, "TextView1" ); 51 TextView1 = new QTextView( this, "TextView1" );
52 TextView1->setFrameShadow( QTextView::Sunken ); 52 TextView1->setFrameShadow( QTextView::Sunken );
53 TextView1->setResizePolicy( QTextView::AutoOneFit ); 53 TextView1->setResizePolicy( QTextView::AutoOneFit );
54 TextView1->setBackgroundOrigin( QTextView::ParentOrigin ); 54 TextView1->setBackgroundOrigin( QTextView::ParentOrigin );
55 TextView1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)3, TextView1->sizePolicy().hasHeightForWidth() ) ); 55 TextView1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)3, TextView1->sizePolicy().hasHeightForWidth() ) );
56// TextView1->setVScrollBarMode(QScrollView::AlwaysOn); 56// TextView1->setVScrollBarMode(QScrollView::AlwaysOn);
57 QWhatsThis::add( TextView1, tr("Displays info of selected image") ); 57 QWhatsThis::add( TextView1, tr("Displays info of selected image") );
58 imageinfoLayout->addWidget( TextView1 ); 58 imageinfoLayout->addWidget( TextView1 );
59 59
60 SlaveMaster* master = SlaveMaster::self(); 60 SlaveMaster* master = SlaveMaster::self();
61 connect( master, SIGNAL(sig_fullInfo(const QString&, const QString&)), 61 connect( master, SIGNAL(sig_fullInfo(const QString&, const QString&)),
62 this, SLOT(slot_fullInfo(const QString&, const QString&)) ); 62 this, SLOT(slot_fullInfo(const QString&, const QString&)) );
63 connect(master, SIGNAL( sig_thumbNail(const QString&, const QPixmap&)), 63 connect(master, SIGNAL( sig_thumbNail(const QString&, const QPixmap&)),
@@ -70,9 +70,9 @@ void imageinfo::slotChangeName(const QString&_path)
70 currentFile=_path; 70 currentFile=_path;
71 QFileInfo fi(_path); 71 QFileInfo fi(_path);
72 fnameLabel->setText("<qt><center><b>"+fi.fileName()+"</b></center></qt>"); 72 fnameLabel->setText("<qt><center><b>"+fi.fileName()+"</b></center></qt>");
73 SlaveMaster::self()->imageInfo( currentFile ); 73 SlaveMaster::self()->imageInfo( currentFile );
74 74
75 QPixmap*m_pix = PPixmapCache::self()->cachedImage( _path, THUMBSIZE,THUMBSIZE ); 75 QPixmap*m_pix = PPixmapCache::self()->cachedImage( _path, THUMBSIZE,THUMBSIZE );
76 if (!m_pix) { 76 if (!m_pix) {
77 PixmapLabel1->setPixmap(QPixmap( Resource::loadPixmap( "UnknownDocument" ))); 77 PixmapLabel1->setPixmap(QPixmap( Resource::loadPixmap( "UnknownDocument" )));
78 SlaveMaster::self()->thumbNail(currentFile,THUMBSIZE,THUMBSIZE); 78 SlaveMaster::self()->thumbNail(currentFile,THUMBSIZE,THUMBSIZE);