-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://svn.osgeo.org/qgis/trunk@12915 c8812cc2-4d05-0410-92ff-de0c093fc19c
- Loading branch information
rblazek
committed
Feb 10, 2010
1 parent
dcf060a
commit 59ad155
Showing
3 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include <stdlib.h> | ||
#include <stdio.h> | ||
#include <unistd.h> | ||
#include <QUrl> | ||
#include <QDesktopServices> | ||
|
||
// Open a URL by default browser | ||
int main(int argc, char **argv) | ||
{ | ||
if ( argc < 2 ) | ||
{ | ||
fprintf ( stderr, "URL argument missing\n" ); | ||
exit (1); | ||
} | ||
QDesktopServices::openUrl ( QUrl ( argv[1] ) ); | ||
sleep(1); // not nice but if it exits immediately the page sometimes does not open | ||
exit ( 0 ); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters