-rw-r--r-- | noncore/graphics/opie-eye/TODO | 2 | ||||
-rw-r--r-- | noncore/graphics/opie-eye/gui/imageinfoui.cpp | 10 |
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 | |||
@@ -2,7 +2,7 @@ Todo for Opie-Eye | |||
2 | 2 | ||
3 | 1.) Extend BigScreen classes to have something like a combined OSplitter and OWidgetStack. | 3 | 1.) 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 | ||
7 | 2.) Write a Image Info Widget which uses the cache to get the thumb and the slave to get | 7 | 2.) 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 |
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 | |||
@@ -29,9 +29,9 @@ imageinfo::imageinfo(const QString&_path, QWidget* parent, const char* name, WF | |||
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 | ||
@@ -47,7 +47,7 @@ imageinfo::imageinfo(const QString&_path, QWidget* parent, const char* name, WF | |||
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 ); |
@@ -56,7 +56,7 @@ imageinfo::imageinfo(const QString&_path, QWidget* parent, const char* name, WF | |||
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&)) ); |
@@ -71,7 +71,7 @@ void imageinfo::slotChangeName(const QString&_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" ))); |