summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opierec/helpwindow.cpp
Unidiff
Diffstat (limited to 'noncore/multimedia/opierec/helpwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opierec/helpwindow.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/noncore/multimedia/opierec/helpwindow.cpp b/noncore/multimedia/opierec/helpwindow.cpp
index 7f984c3..b0a8ac3 100644
--- a/noncore/multimedia/opierec/helpwindow.cpp
+++ b/noncore/multimedia/opierec/helpwindow.cpp
@@ -3,25 +3,25 @@
3** 3**
4** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. 4** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
5** 5**
6** This file is part of an example program for Qt. This example 6** This file is part of an example program for Qt. This example
7** program may be used, distributed and modified without limitation. 7** program may be used, distributed and modified without limitation.
8** 8**
9*****************************************************************************/ 9*****************************************************************************/
10 10
11#include "helpwindow.h" 11#include "helpwindow.h"
12 12
13/* OPIE */ 13/* OPIE */
14#include <opie2/odebug.h> 14#include <opie2/odebug.h>
15#include <qpe/resource.h> 15#include <opie2/oresource.h>
16using namespace Opie::Core; 16using namespace Opie::Core;
17 17
18/* QT */ 18/* QT */
19#include <qlayout.h> 19#include <qlayout.h>
20#include <qtoolbar.h> 20#include <qtoolbar.h>
21#include <qaction.h> 21#include <qaction.h>
22#include <qmenubar.h> 22#include <qmenubar.h>
23 23
24/* STD */ 24/* STD */
25#include <ctype.h> 25#include <ctype.h>
26 26
27HelpWindow::HelpWindow( const QString& home_, const QString& _path, QWidget* parent, const char *name ) 27HelpWindow::HelpWindow( const QString& home_, const QString& _path, QWidget* parent, const char *name )
@@ -34,29 +34,31 @@ HelpWindow::HelpWindow( const QString& home_, const QString& _path, QWidget* par
34 browser = new QTextBrowser( this ); 34 browser = new QTextBrowser( this );
35 QStringList Strlist; 35 QStringList Strlist;
36 Strlist.append( home_); 36 Strlist.append( home_);
37 browser->mimeSourceFactory()->setFilePath( Strlist ); 37 browser->mimeSourceFactory()->setFilePath( Strlist );
38 browser->setFrameStyle( QFrame::Panel | QFrame::Sunken ); 38 browser->setFrameStyle( QFrame::Panel | QFrame::Sunken );
39 39
40 connect( browser, SIGNAL( textChanged() ), this, SLOT( textChanged() ) ); 40 connect( browser, SIGNAL( textChanged() ), this, SLOT( textChanged() ) );
41 41
42 if ( !home_.isEmpty() ) 42 if ( !home_.isEmpty() )
43 browser->setSource( home_ ); 43 browser->setSource( home_ );
44 QToolBar *toolbar = new QToolBar( this ); 44 QToolBar *toolbar = new QToolBar( this );
45 45
46 QAction *a = new QAction( tr( "Backward" ), Resource::loadPixmap( "back" ), QString::null, 0, this, 0 ); 46 QAction *a = new QAction( tr( "Backward" ), Opie::Core::OResource::loadPixmap( "back", Opie::Core::OResource::SmallIcon ),
47 QString::null, 0, this, 0 );
47 connect( a, SIGNAL( activated() ), browser, SLOT( backward() ) ); 48 connect( a, SIGNAL( activated() ), browser, SLOT( backward() ) );
48 a->addTo( toolbar ); 49 a->addTo( toolbar );
49 50
50 a = new QAction( tr( "Forward" ), Resource::loadPixmap( "forward" ), QString::null, 0, this, 0 ); 51 a = new QAction( tr( "Forward" ), Opie::Core::OResource::loadPixmap( "forward", Opie::Core::OResource::SmallIcon ),
52 QString::null, 0, this, 0 );
51 connect( a, SIGNAL( activated() ), browser, SLOT( forward() ) ); 53 connect( a, SIGNAL( activated() ), browser, SLOT( forward() ) );
52 a->addTo( toolbar ); 54 a->addTo( toolbar );
53 55
54 56
55 layout->addMultiCellWidget( toolbar, 0, 0, 0, 0); 57 layout->addMultiCellWidget( toolbar, 0, 0, 0, 0);
56 58
57 layout->addMultiCellWidget( browser, 1, 2, 0, 2); 59 layout->addMultiCellWidget( browser, 1, 2, 0, 2);
58 60
59 browser->setFocus(); 61 browser->setFocus();
60} 62}
61 63
62 64