File: qtdoc

package info (click to toggle)
kde-dev-scripts 4%3A18.08.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,496 kB
  • sloc: perl: 15,466; lisp: 5,627; sh: 4,157; python: 3,892; ruby: 2,158; makefile: 16; sed: 9
file content (15 lines) | stat: -rwxr-xr-x 475 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# Run from command line, to open a qt help page in kfm/konqueror
# No argument => main page
# Classname (case insensitive) => page for this class

if [ $# = 1 ]; then
  fname=`echo $1 | tr '[A-Z]' '[a-z]'`
  if [ -f $QTDIR/doc/html/$fname.html ]; then
    kdeinit4_wrapper kfmclient openProfile webbrowsing file:$QTDIR/doc/html/$fname.html
  else
    echo "No such file $fname.html"
  fi
else
  kdeinit4_wrapper kfmclient openURL file:$QTDIR/doc/html/index.html
fi