author | harlekin <harlekin> | 2003-03-22 18:08:59 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-03-22 18:08:59 (UTC) |
commit | cc2d8a80b388a219baa9d92c847ea081099879d1 (patch) (side-by-side diff) | |
tree | c148d151a6f15f40b1765fab8b844227aded0b16 /core/apps/helpbrowser/helpbrowser.cpp | |
parent | 44547fd13797c03192b4e416e5a1945e4d6b9e6b (diff) | |
download | opie-cc2d8a80b388a219baa9d92c847ea081099879d1.zip opie-cc2d8a80b388a219baa9d92c847ea081099879d1.tar.gz opie-cc2d8a80b388a219baa9d92c847ea081099879d1.tar.bz2 |
home icon from inline
Diffstat (limited to 'core/apps/helpbrowser/helpbrowser.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/helpbrowser/helpbrowser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/apps/helpbrowser/helpbrowser.cpp b/core/apps/helpbrowser/helpbrowser.cpp index e20d49b..48da7c6 100644 --- a/core/apps/helpbrowser/helpbrowser.cpp +++ b/core/apps/helpbrowser/helpbrowser.cpp @@ -89,25 +89,25 @@ void HelpBrowser::init( const QString& _home ) backAction->addTo( toolbar ); backAction->setEnabled( FALSE ); forwardAction = new QAction( tr( "Forward" ), Resource::loadIconSet( "forward" ), QString::null, 0, this, 0 ); connect( forwardAction, SIGNAL( activated() ), browser, SLOT( forward() ) ); connect( browser, SIGNAL( forwardAvailable( bool ) ), forwardAction, SLOT( setEnabled( bool ) ) ); //forwardAction->addTo( go ); forwardAction->addTo( toolbar ); forwardAction->setEnabled( FALSE ); QAction *a = new QAction( tr( "Home" ), Resource::loadPixmap( -"helpbrowser/home" ), QString::null, 0, this, 0 ); +"home" ), QString::null, 0, this, 0 ); connect( a, SIGNAL( activated() ), browser, SLOT( home() ) ); //a->addTo( go ); a->addTo( toolbar ); bookm = new QPopupMenu( this ); bookm->insertItem( tr( "Add Bookmark" ), this, SLOT( addBookmark() ) ); bookm->insertItem( tr( "Remove from Bookmarks" ), this, SLOT( removeBookmark() ) ); bookm->insertSeparator(); connect( bookm, SIGNAL( activated( int ) ), this, SLOT( bookmChosen( int ) ) ); readBookmarks(); @@ -127,25 +127,25 @@ void HelpBrowser::appMessage(const QCString& msg, const QByteArray& data) if ( msg == "showFile(QString)" ) { QDataStream ds(data,IO_ReadOnly); QString fn; ds >> fn; setDocument( fn ); } } void HelpBrowser::setDocument( const QString &doc ) { if ( !doc.isEmpty() ) browser->setSource( doc ); - raise(); + raise(); } void HelpBrowser::textChanged() { if ( browser->documentTitle().isNull() ) setCaption( tr("Help Browser") ); else setCaption( browser->documentTitle() ) ; selectedURL = caption(); } @@ -182,25 +182,25 @@ void HelpBrowser::readBookmarks() f.close(); } QStringList::Iterator it = bookmarks.begin(); for ( ; it != bookmarks.end(); ++it ) { Bookmark b; QString current = *it; int equal = current.find( "=" ); if ( equal < 1 || equal == (int)current.length() - 1 ) continue; b.name = current.left( equal ); b.file = current.mid( equal + 1 ); mBookmarks[ bookm->insertItem( b.name ) ] = b; - } + } } } void HelpBrowser::bookmChosen( int i ) { if ( mBookmarks.contains( i ) ) browser->setSource( mBookmarks[ i ].file ); } void HelpBrowser::addBookmark() { Bookmark b; |