100+ results for 'QDesktopServices::openUrl'

Not the results you expected?

qgshelp.cpp (https://github.com/ricardogsilva/Quantum-GIS.git) C++ · 178 lines

36 void QgsHelp::openHelp( const QString &key )

37 {

38 QDesktopServices::openUrl( QgsHelp::helpUrl( key ) );

39 }

40

useragentprovider.cpp (https://bitbucket.org/yogeshwarp/gnewsreader-nokia.git) C++ · 120 lines

55 const TInt KWmlBrowserUid = 0x10008D39; //10008d39

56 TPtrC myUrl (reinterpret_cast<const TText*>(url.constData()),url.length());

57 //QDesktopServices::openUrl(QUrl(url));

58 RApaLsSession lsSession;

59 // create a session with apparc server.

74 CleanupStack::PopAndDestroy(&lsSession);

75 #else

76 qDebug() << "Trying default Qt function : QDesktopServices::openUrl" << url;

77 QDesktopServices::openUrl(url);

tst_qdesktopservices.cpp (https://bitbucket.org/cvp2ri/qt5-tlsauth.git) C++ · 152 lines

77 }

78

79 void tst_qdesktopservices::openUrl()

80 {

81 // At the bare minimum check that they return false for invalid url's

82 QCOMPARE(QDesktopServices::openUrl(QUrl()), false);

83 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)

84 // this test is only valid on windows on other systems it might mean open a new document in the application handling .file

85 QCOMPARE(QDesktopServices::openUrl(QUrl("file://invalid.file")), false);

86 #endif

87 }

Towary.cpp (https://github.com/rafalrusin/qfaktury.git) C++ · 188 lines

94 */

95 void Towary::pkwiuGet() {

96 QDesktopServices::openUrl(QUrl(tr("http://www.klasyfikacje.pl/")));

97 }

98

associatedapplicationmanager.cpp (https://github.com/vasi/kdelibs.git) C++ · 157 lines

141 krun->setAutoDelete(true);

142 #else

143 QDesktopServices::openUrl(d->urlLists.value(applet).first());

144 #endif

145 }

MenuBar.cpp (https://gitlab.com/WoomyNightClub/dolphin) C++ · 225 lines

174 QAction* documentation = help_menu->addAction(tr("Online Documentation"));

175 connect(documentation, &QAction::triggered, this, [=]() {

176 QDesktopServices::openUrl(QUrl(QStringLiteral("https://dolphin-emu.org/docs/guides")));

177 });

178 help_menu->addAction(tr("About"), this, SIGNAL(ShowAboutDialog()));

qgsarcgisrestdataitemguiprovider.cpp (https://github.com/ricardogsilva/Quantum-GIS.git) C++ · 189 lines

60 connect( viewInfo, &QAction::triggered, this, [ = ]

61 {

62 QDesktopServices::openUrl( QUrl( connectionItem->url() ) );

63 } );

64 menu->addAction( viewInfo );

69 connect( viewInfo, &QAction::triggered, this, [ = ]

70 {

71 QDesktopServices::openUrl( QUrl( folderItem->path() ) );

72 } );

73 menu->addAction( viewInfo );

78 connect( viewInfo, &QAction::triggered, this, [ = ]

79 {

80 QDesktopServices::openUrl( QUrl( serviceItem->path() ) );

81 } );

82 menu->addAction( viewInfo );

PlaylistUIModule.cpp (https://github.com/baoping/Red-Bull-Media-Player.git) C++ · 189 lines

150 _ui->clearTitle();

151 else

152 QDesktopServices::openUrl( ConfigManager::instance()->getServusTvB2BUrl() );

153

154 if( e->functionTitle() == Constants::FUNCTION_SELECT_MEDIA_TITLE ) {

qgsnative.cpp (https://github.com/ricardogsilva/Quantum-GIS.git) C++ · 96 lines

46 const QFileInfo fi( path );

47 const QString folder = fi.path();

48 QDesktopServices::openUrl( QUrl::fromLocalFile( folder ) );

49 }

50

testqgsquickprint.cpp (https://github.com/ricardogsilva/Quantum-GIS.git) C++ · 178 lines

129 myQTextStream << mReport;

130 myFile.close();

131 QDesktopServices::openUrl( "file://" + myReportFile );

132 }

133 #endif

diveshareexportdialog.cpp (https://github.com/dirkhh/subsurface.git) C++ · 128 lines

30 void DiveShareExportDialog::UIDFromBrowser()

31 {

32 QDesktopServices::openUrl(QUrl(DIVESHARE_BASE_URI "/secret"));

33 }

34

textedit.cpp (https://github.com/sithereal/zNotes.git) C++ · 142 lines

71 {

72 const QUrl link(toPlainText().mid(position_start, position_end-position_start));

73 QDesktopServices::openUrl(link);

74 }

75 }

KontrahenciLista.cpp (https://github.com/rafalrusin/qfaktury.git) C++ · 217 lines

113 // Doesn't work. Why?

114 qDebug() << __FUNCTION__ << url;

115 QDesktopServices::openUrl(QUrl(url));

116 }

117

twitter.cpp (https://gitlab.com/f3822/qtnetworkauth) C++ · 94 lines

85 query.addQueryItem("screen_name", screenName);

86 url.setQuery(query);

87 QDesktopServices::openUrl(url);

88 });

89

testcontrastenhancements.cpp (https://github.com/linz/Quantum-GIS.git) C++ · 107 lines

60 myQTextStream << mReport;

61 myFile.close();

62 QDesktopServices::openUrl( "file://" + myReportFile );

63 }

64

tweeter.cpp (https://github.com/ricardogsilva/Quantum-GIS.git) C++ · 135 lines

98 void Tweeter::onOpenBrowser(const QUrl &url) {

99 qDebug() << "Opening browser with URL" << url.toString();

100 QDesktopServices::openUrl(url);

101 }

102

settingstabother.h (https://gitlab.com/vladius/photoqt) C Header · 105 lines

99 private slots:

100 void markAllNone(QString cat);

101 void openWebsite(QString web) { QDesktopServices::openUrl(QUrl(web)); }

102

103 };

ImagePreviewWidget.cpp (https://gitlab.com/alvinahmadov2/icq-desktop) C++ · 229 lines

86 if (clickedOnPicture && LeftButtonPressed_)

87 {

88 QDesktopServices::openUrl(Uri_);

89 }

90

fbdemo.cpp (https://github.com/ricardogsilva/Quantum-GIS.git) C++ · 119 lines

66

67 void FBDemo::onOpenBrowser(const QUrl &url) {

68 QDesktopServices::openUrl(url);

69 }

70

src_gui_util_qdesktopservices.cpp (https://bitbucket.org/kasimling/qt.git) C++ · 60 lines

57

58 //! [2]

59 QDesktopServices::openUrl(QUrl("file:///C:/Documents and Settings/All Users/Desktop", QUrl::TolerantMode));

60 //! [2]

61

tst_qdesktopservices.cpp (https://gitlab.com/f3822/qtbase) C++ · 107 lines

41 };

42

43 void tst_qdesktopservices::openUrl()

44 {

45 // At the bare minimum check that they return false for invalid url's

46 QCOMPARE(QDesktopServices::openUrl(QUrl()), false);

47 #if defined(Q_OS_WIN)

48 // this test is only valid on windows on other systems it might mean open a new document in the application handling .file

50 QVERIFY(messagePattern.isValid());

51 QTest::ignoreMessage(QtWarningMsg, messagePattern);

52 QCOMPARE(QDesktopServices::openUrl(QUrl("file://invalid.file")), false);

53 #endif

54 }

uhgprepletterbombwizardpage.cpp (https://bitbucket.org/danielrutz/yauhgd-yet-another-uhg-downloader.git) C++ · 77 lines

35 void UHGPrepLetterbombWizardPage::initializePage()

36 {

37 QDesktopServices::openUrl(QUrl("http://please.hackmii.com/"));

38 clickedToGameExploit = false;

39 }

searchbox.cpp (https://gitlab.com/Moon4u/QGInsert) C++ · 75 lines

72 completer->preventSuggest();

73 QString url = QString(GSEARCH_URL).arg(text());

74 //QDesktopServices::openUrl(QUrl(url));

75 }

76

DiskSpacePresenter.cpp (https://github.com/baoping/Red-Bull-Media-Player.git) C++ · 117 lines

112 path = path.prepend( "file:///" );

113 QUrl url( path, QUrl::TolerantMode );

114 QDesktopServices::openUrl( url );

115 hideView();

116 }

MantidDesktopServices.cpp (https://github.com/wdzhou/mantid.git) C++ · 97 lines

31 bool MantidDesktopServices::openUrl(const QUrl &url) {

32 #ifndef __linux__

33 return QDesktopServices::openUrl(url);

34 #else

35 // Remove LD_PRELOAD if present

39 unsetenv(LDPRELOAD_ENV);

40 }

41 auto status = QDesktopServices::openUrl(url);

42 if (!ldpreload.isEmpty()) {

43 setenv(LDPRELOAD_ENV, ldpreload.toLatin1().constData(), 1 /* overwrite*/);

MantidDesktopServices.cpp (https://github.com/mantidproject/mantid.git) C++ · 75 lines

35 bool MantidDesktopServices::openUrl(const QUrl &url) {

36 #ifndef __linux__

37 return QDesktopServices::openUrl(url);

38 #else

39 // Remove LD_PRELOAD if present

43 unsetenv(LDPRELOAD_ENV);

44 }

45 auto status = QDesktopServices::openUrl(url);

46 if (!ldpreload.isEmpty()) {

47 setenv(LDPRELOAD_ENV, qPrintable(ldpreload), 1 /* overwrite*/);

regression992.cpp (https://github.com/sourcepole/qgis.git) C++ · 117 lines

95 myQTextStream << mReport;

96 myFile.close();

97 QDesktopServices::openUrl("file://"+myReportFile);

98 }

99 }

updater.cpp (https://gitlab.com/gustawho/aircrackgui-m4) C++ · 123 lines

28 void updater::downloadUpdate()

29 {

30 QDesktopServices::openUrl(QUrl("http://code.google.com/p/aircrackgui-m4/downloads/list"));

31 }

32

testcontrastenhancements.cpp (https://github.com/ricardogsilva/Quantum-GIS.git) C++ · 107 lines

61 myQTextStream << mReport;

62 myFile.close();

63 //QDesktopServices::openUrl( "file:///" + myReportFile );

64 }

65

clipgrab-3.2.1.0-obey.patch (https://gitlab.com/rindeal/gentoo-cvs-history-archive) Patch · 85 lines

51 - if (!(command.at(1).contains("update") && this->settings.value("DisableUpdateNotifications", false) == true))

52 - {

53 - QDesktopServices::openUrl(QUrl(command.at(1)));

54 - }

55 - if (command.size() == 3)

titleidfinderdialog.cpp (https://bitbucket.org/SteffenAL/velocity.git) C++ · 72 lines

68 else if (selectedItem->text() == "View on Xbox.com")

69 {

70 QDesktopServices::openUrl(QUrl("http://marketplace.xbox.com/Product/66acd000-77fe-1000-9115-d802" + ui->treeWidget->selectedItems().at(0)->text(1).toLower()));

71 }

72 }

aboutwindow.cpp (https://github.com/khrykin/StrategrDesktop.git) C++ · 180 lines

77 return;

78

79 QDesktopServices::openUrl(QUrl(hyperlink));

80 }

81 };

qgsnominatimlocatorfilter.cpp (https://github.com/ricardogsilva/Quantum-GIS.git) C++ · 53 lines

45 connect( learnMoreButton, &QPushButton::clicked, learnMoreButton, [ = ]

46 {

47 QDesktopServices::openUrl( QStringLiteral( "https://nominatim.org/" ) );

48 } );

49 messageWidget->layout()->addWidget( learnMoreButton );

noticewidget.cpp (https://github.com/Rambler-ru/Contacts.git) C++ · 190 lines

187 void ChatNoticeWidget::onMessageLinkActivated(const QString &ALink)

188 {

189 QDesktopServices::openUrl(ALink);

190 }

191

extendedtablewidget.cpp (https://gitlab.com/xivo.solutions/xivo-client-qt) C++ · 97 lines

88 QString email = sender()->property("email").toString();

89 if (!email.isEmpty()) {

90 QDesktopServices::openUrl(QUrl("mailto:" + email));

91 }

92 }

profile_tree_view.cpp (https://gitlab.com/jvelando/wireshark) C++ · 118 lines

89 {

90 QString path = QDir::toNativeSeparators(index.data().toString());

91 QDesktopServices::openUrl(QUrl::fromLocalFile(path));

92 }

93 }

about.cpp (https://github.com/simon-r/-Archivio---LeScienze500.git) C++ · 89 lines

81 {

82 QUrl url( link ) ;

83 QDesktopServices::openUrl( url ) ;

84 }

85

86 void About::on_linkMessageClicked( const QUrl& url )

87 {

88 QDesktopServices::openUrl( url ) ;

89 }

90

about.cpp (https://github.com/simon-r/-Archivio---LeScienze500.git) C++ · 89 lines

81 {

82 QUrl url( link ) ;

83 QDesktopServices::openUrl ( url ) ;

84 }

85

86 void About::on_linkMessageClicked( const QUrl& url )

87 {

88 QDesktopServices::openUrl ( url ) ;

89 }

90

sbitmainwindow.cpp (https://bitbucket.org/dbezrukov/sbit.git) C++ · 120 lines

107 void SBitMainWindow::actionAccountConfig()

108 {

109 QDesktopServices::openUrl(QUrl("http://upbit.org"));

110 }

111

regression992.cpp (https://github.com/linz/Quantum-GIS.git) C++ · 117 lines

95 myQTextStream << mReport;

96 myFile.close();

97 QDesktopServices::openUrl( "file://" + myReportFile );

98 }

99 }

qgsaction.cpp (git://github.com/qgis/Quantum-GIS.git) C++ · 166 lines

71 QFileInfo finfo( expandedAction );

72 if ( finfo.exists() && finfo.isFile() )

73 QDesktopServices::openUrl( QUrl::fromLocalFile( expandedAction ) );

74 else

75 QDesktopServices::openUrl( QUrl( expandedAction, QUrl::TolerantMode ) );

dialogconversionstatus.cpp (git://pkgs.fedoraproject.org/converseen) C++ · 167 lines

156 {

157 QString value = action->data().toString();

158 QDesktopServices::openUrl(QUrl("file:///" + value, QUrl::TolerantMode));

159 }

160

162 {

163 for (int i = 0; i < outDirs.count(); i++) {

164 QDesktopServices::openUrl(QUrl("file:///" + outDirs.at(i), QUrl::TolerantMode));

165 }

166 }

openurlinstance.hpp (https://github.com/Jmgr/actionaz.git) C++ Header · 78 lines

63 url = QUrl(QStringLiteral("http://") + urlString, QUrl::TolerantMode);

64

65 if(!QDesktopServices::openUrl(url))

66 {

67 emit executionException(FailedToOpenURL, tr("Failed to open URL"));

DroneshareDialog.cc (https://gitlab.com/fsgdez/apm_planner) C++ · 79 lines

73 {

74 QLOG_DEBUG() << "Droneshare: signupClicked";

75 QDesktopServices::openUrl(QUrl("http://www.droneshare.com"));

76 }

77

PlanWidget.cpp (https://github.com/meganz/MEGAsync.git) C++ · 150 lines

65

66 Utilities::getPROurlWithParameters(url);

67 QtConcurrent::run(QDesktopServices::openUrl, QUrl(url));

68 }

69

patreondialog.cpp (git://github.com/bjorn/tiled.git) C++ · 97 lines

53 void PatreonDialog::openPatreonPage()

54 {

55 QDesktopServices::openUrl(QUrl(QLatin1String("https://www.patreon.com/bjorn")));

56 }

57

openstrategies.cpp (https://github.com/ABBAPOH/andromeda.git) C++ · 233 lines

56 #endif

57 // TODO: allow to open default editor instead

58 QDesktopServices::openUrl(url);

59 }

60 }

systemeditor.cpp (https://github.com/KDAB/KDAB-Creator.git) C++ · 75 lines

67 url.setPath(fileName);

68 url.setScheme(QLatin1String("file"));

69 if (!QDesktopServices::openUrl(url)) {

70 if (errorMessage)

71 *errorMessage = tr("Could not open url %1.").arg(url.toString());

filesystemtoolwidget.cpp (https://github.com/ABBAPOH/andromeda.git) C++ · 171 lines

119

120 if (!model->isDir(index)) {

121 QDesktopServices::openUrl(url);

122 return;

123 }

qgsappauthrequesthandler.cpp (https://github.com/ricardogsilva/Quantum-GIS.git) C++ · 102 lines

80 void QgsAppAuthRequestHandler::handleAuthRequestOpenBrowser( const QUrl &url )

81 {

82 QDesktopServices::openUrl( url );

83 }

84

qgis.g.browser.cpp (https://github.com/linz/Quantum-GIS.git) C++ · 41 lines

32 }

33 #endif

34 QDesktopServices::openUrl( url );

35 #ifdef Q_OS_WIN

36 Sleep( 1000 );

gsiDeclQDesktopServices.cc (https://github.com/KLayout/klayout.git) C++ · 142 lines

54

55

56 // static bool QDesktopServices::openUrl(const QUrl &url)

57

58

69 tl::Heap heap;

70 const QUrl &arg1 = gsi::arg_reader<const QUrl & >() (args, heap);

71 ret.write<bool > ((bool)QDesktopServices::openUrl (arg1));

72 }

73

126 gsi::Methods methods;

127 methods += new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QDesktopServices::QDesktopServices()\nThis method creates an object of class QDesktopServices.", &_init_ctor_QDesktopServices_0, &_call_ctor_QDesktopServices_0);

128 methods += new qt_gsi::GenericStaticMethod ("openUrl", "@brief Static method bool QDesktopServices::openUrl(const QUrl &url)\nThis method is static and can be called without an instance.", &_init_f_openUrl_1701, &_call_f_openUrl_1701);

129 methods += new qt_gsi::GenericStaticMethod ("setUrlHandler", "@brief Static method void QDesktopServices::setUrlHandler(const QString &scheme, QObject *receiver, const char *method)\nThis method is static and can be called without an instance.", &_init_f_setUrlHandler_4842, &_call_f_setUrlHandler_4842);

130 methods += new qt_gsi::GenericStaticMethod ("unsetUrlHandler", "@brief Static method void QDesktopServices::unsetUrlHandler(const QString &scheme)\nThis method is static and can be called without an instance.", &_init_f_unsetUrlHandler_2025, &_call_f_unsetUrlHandler_2025);

ContextView.cpp (https://github.com/KDE/amarok.git) C++ · 177 lines

140 }

141 else

142 QDesktopServices::openUrl( link );

143 }

144

obey.patch (https://github.com/1000timesdead/portage.git) Patch · 82 lines

61 - if (commands.at(i).split("|").at(0).trimmed() == "url")

62 - {

63 - QDesktopServices::openUrl(QUrl(commands.at(i).split("|").at(1)));

64 - }

65 - }

gdrivepropertiesplugin.cpp (https://github.com/KDE/kio-gdrive.git) C++ · 98 lines

75 const QString gdriveLink = entry.stringValue(GDriveUDSEntryExtras::Url);

76 connect(m_ui.urlOpenButton, &QPushButton::clicked, this, [gdriveLink]() {

77 QDesktopServices::openUrl(QUrl(gdriveLink));

78 });

79

owncloudwizardresultpage.cpp (https://github.com/nextcloud/desktop.git) C++ · 99 lines

87 {

88 const QString localFolder = wizard()->property("localFolder").toString();

89 QDesktopServices::openUrl(QUrl::fromLocalFile(localFolder));

90 }

91

94 Theme *theme = Theme::instance();

95 QUrl url = QUrl(field("OCUrl").toString() + theme->wizardUrlPostfix());

96 QDesktopServices::openUrl(url);

97 }

98

qtiplot-0.9.8.3-popup.patch (https://github.com/1000timesdead/portage.git) Patch · 47 lines

4 +++ b/qtiplot/src/core/ApplicationWindow.cpp

5 @@ -15912,6 +15912,7 @@ void ApplicationWindow::showBugTracker()

6 QDesktopServices::openUrl(QUrl("https://developer.berlios.de/bugs/?group_id=6626"));

7 }

8

searchbox.cpp (https://bitbucket.org/cvp2ri/qt5-tlsauth.git) C++ · 72 lines

67 completer->preventSuggest();

68 QString url = QString(GSEARCH_URL).arg(text());

69 QDesktopServices::openUrl(QUrl(url));

70 }

71 //! [2]

main.cpp (https://gitlab.com/f3822/qtwebengine) C++ · 100 lines

66 if (url.scheme() != "https")

67 return true;

68 QDesktopServices::openUrl(url);

69 return false;

70 }

communitywelcomepagewidget.cpp (https://github.com/CorvusCorax/my_OpenPilot_mods.git) C++ · 85 lines

79 void CommunityWelcomePageWidget::slotUrlClicked(const QString &data)

80 {

81 QDesktopServices::openUrl(QUrl(data));

82 }

83

previewpage.cpp (https://gitlab.com/f3822/qtwebengine) C++ · 64 lines

60 if (url.scheme() == QString("qrc"))

61 return true;

62 QDesktopServices::openUrl(url);

63 return false;

64 }

themewidget.cpp (https://github.com/pkexp-martin/pokemon-online.git) C++ · 86 lines

65 {

66 qDebug() << "Opening url" << downloadUrl;

67 QDesktopServices::openUrl(QUrl(downloadUrl));

68 }

69

71 {

72 QUrl url = "http://pokemon-online.eu/forums/showthread.php?" + forumId;

73 QDesktopServices::openUrl(url);

74 }

75

promolabel.cpp (https://github.com/KDAB/GammaRay.git) C++ · 71 lines

56 {

57 if (ev->button() == Qt::LeftButton && ev->modifiers() == Qt::NoModifier) {

58 QDesktopServices::openUrl(QUrl(QStringLiteral("https://www.kdab.com")));

59 ev->accept();

60 return;

configure_debug.cpp (https://github.com/yuzu-emu/yuzu.git) C++ · 72 lines

22 const auto path =

23 QString::fromStdString(Common::FS::GetUserPath(Common::FS::UserPath::LogDir));

24 QDesktopServices::openUrl(QUrl::fromLocalFile(path));

25 });

26 }

qiosservices.mm (https://gitlab.com/f3822/qtbase) Objective C++ · 107 lines

102 // so that we can warn the user if calling setUrlHandler without also setting

103 // up the matching keys in the Info.plist file (CFBundleURLTypes and friends).

104 return QDesktopServices::openUrl(url);

105 }

106

systemtrayicon.cpp (https://github.com/jiangzc/CuteTranslation.git) C++ · 152 lines

69

70 connect(&donate_action, &QAction::triggered, this, []{

71 QDesktopServices::openUrl(QUrl("https://github.com/jiangzc/CuteTranslation#%E6%8D%90%E8%B5%A0"));

72 MessageBox::information("提示", "已在浏览器中打开网页");

73 });

74

75 connect(&homepage_action, &QAction::triggered, this, []{

76 QDesktopServices::openUrl(QUrl("https://github.com/jiangzc/CuteTranslation"));

77 MessageBox::information("提示", "已在浏览器中打开网页");

78 });

JammrUpdateChecker.cpp (https://github.com/wahjam/wahjam.git) C++ · 151 lines

146 QMessageBox::Yes);

147 if (button == QMessageBox::Yes) {

148 QDesktopServices::openUrl(downloadUrl);

149 QCoreApplication::quit();

150 }

aboutwidget.cpp (http://instead-launcher.googlecode.com/svn/trunk/) C++ · 121 lines ✨ Summary

This C++ code creates a graphical user interface (GUI) for an “About” widget, likely part of a larger application. It displays information about the application, including its version, logo, and links to developer forums, project pages, and updates. The GUI also includes buttons to check for software updates and open these links in the default web browser.

105

106 void AboutWidget::linkActivated( const QString &link ) {

107 QDesktopServices::openUrl( link );

108 }

109

110 void AboutWidget::goToDevelopersForum() {

111 QDesktopServices::openUrl( QString( "http://instead.syscall.ru/forum" ) );

112 }

113

114 void AboutWidget::goToINSTEADPage() {

115 QDesktopServices::openUrl( QString( "http://instead.googlecode.com" ) );

116 }

117

licensedialog.cpp (https://github.com/canpool/qtcanpool.git) C++ · 118 lines

114 QString softname = QApplication::applicationName();

115 QString hostid = hostEdit->text();

116 QDesktopServices::openUrl(QUrl(tr("mailto:1074867723@qq.com?subject=%1 &body=soft name: %2; host id: %3")

117 .arg(softname).arg(softname).arg(hostid)));

118 }

flickr.h (git://github.com/sepych/QtFlickr.git) C Header · 184 lines

61 * QString frob = data.tags.value("frob").value;

62 * QUrl authUrl = qtFlickr->authorizationUrl(frob);

63 * QDesktopServices::openUrl(authUrl);

64 *

65 * QMessageBox msgBox;

khelpclient.cpp (https://github.com/KDE/krita.git) C++ · 81 lines

77

78 // launch khelpcenter, or a browser for URIs not handled by khelpcenter

79 QDesktopServices::openUrl(url);

80 }

81

appwidget.cpp (https://github.com/flaviotordini/minitube.git) C++ · 120 lines

101 void AppWidget::mouseReleaseEvent(QMouseEvent *e) {

102 if (e->button() == Qt::LeftButton) {

103 QDesktopServices::openUrl(webPage);

104 }

105 }

UIDesktopServices_x11.cpp (https://github.com/thalium/icebox.git) C++ · 72 lines

68 {

69 QFileInfo fi(strFile);

70 return QDesktopServices::openUrl(QUrl("file://" + QDir::toNativeSeparators(fi.absolutePath()), QUrl::TolerantMode));

71 }

72

mainwindow.cpp (https://github.com/solenskiner/qwebapp.git) C++ · 88 lines

41 if (site->host() != url.host()) {

42 view[VIEW_HIDDEN]->stop();

43 QDesktopServices::openUrl(url);

44 }

45 }

49 view[VIEW_MAIN]->load(url);

50 else

51 QDesktopServices::openUrl(url);

52 //

53 }

divepixmapitem.cpp (https://github.com/dirkhh/subsurface.git) C++ · 107 lines

104 {

105 if (event->button() == Qt::LeftButton)

106 QDesktopServices::openUrl(QUrl::fromLocalFile(localFilePath(fileUrl)));

107 }

108

about.cpp (https://github.com/dirkhh/subsurface.git) C++ · 41 lines

28 void SubsurfaceAbout::on_licenseButton_clicked()

29 {

30 QDesktopServices::openUrl(QUrl("http://www.gnu.org/licenses/gpl-2.0.txt"));

31 }

32

33 void SubsurfaceAbout::on_websiteButton_clicked()

34 {

35 QDesktopServices::openUrl(QUrl("http://subsurface-divelog.org"));

36 }

37

38 void SubsurfaceAbout::on_creditButton_clicked()

39 {

40 QDesktopServices::openUrl(QUrl("http://subsurface-divelog.org/misc/credits"));

41 }

42

sftpplugin-win.cpp (https://github.com/KDE/kdeconnect-kde.git) C++ · 78 lines

68 }

69

70 if (!QDesktopServices::openUrl(QUrl(url_string))) {

71 QMessageBox::critical(nullptr, i18n("KDE Connect"), i18n("Cannot handle SFTP protocol. Apologies for the inconvenience"),

72 QMessageBox::Abort,

abstractcontainer.cpp (https://github.com/raphaelamorim/audactile.git) C++ · 55 lines

52

53 void AbstractContainer::openLinksInExternalWindow(QUrl url) {

54 QDesktopServices::openUrl(url);

55 }

56

configurestyle.cpp (https://github.com/lbellonda/qxmledit.git) C++ · 141 lines

113 dir.mkpath(_data->getStylesDirApplication());

114 }

115 isOk = QDesktopServices::openUrl(QUrl::fromLocalFile(_data->getStylesDirApplication()));

116 } else if(ui->pgmThisDirectory->isChecked()) {

117 if(ui->aDirectory->text().isEmpty()) {

119 return ;

120 }

121 isOk = QDesktopServices::openUrl(QUrl::fromLocalFile(ui->aDirectory->text()));

122 } else {

123 QDir dir(_data->getStylesDirStandard());

125 dir.mkpath(_data->getStylesDirStandard());

126 }

127 isOk = QDesktopServices::openUrl(QUrl::fromLocalFile(_data->getStylesDirStandard()));

128 }

129 if(!isOk) {

cupdaterdialog.cpp (https://github.com/setvisible/DownZemAll.git) C++ · 102 lines

59

60 if (msg.exec() == QMessageBox::Yes)

61 QDesktopServices::openUrl(QUrl(_latestUpdateUrl));

62 #endif

63 }

CDoxygen.cpp (https://github.com/dimitar-asenov/Envision.git) C++ · 63 lines

56 aProcess.waitForFinished();

57

58 QDesktopServices::openUrl(QUrl{QDir::currentPath() + "/doxygen/html/index.html"});

59

60 return new Interaction::CommandResult{};

exitpreferences.cpp (https://github.com/robert7/nixnote2.git) C++ · 249 lines

120

121 void ExitPreferences::showInfo() {

122 QDesktopServices::openUrl(QUrl(NN_GITHUB_WIKI_URL "/Scripting-(Exits)"));

123 }

124

external.cpp (https://gitlab.com/vladius/photoqt) C++ · 27 lines

5

6 void GetAndDoStuffExternal::openLink(QString url) {

7 QDesktopServices::openUrl(url);

8 }

9

24

25 void GetAndDoStuffExternal::openInDefaultFileManager(QString file) {

26 QDesktopServices::openUrl(QUrl("file://" + QFileInfo(file).absolutePath()));

27 }

28

MessageWidget.cpp (https://github.com/keepassxreboot/keepassxc.git) C++ · 106 lines

102 {

103 if (link.startsWith("http://") || link.startsWith("https://")) {

104 QDesktopServices::openUrl(QUrl(link));

105 }

106 }

DesktopWebPage.cpp (https://github.com/nlhartman/rstudio.git) C++ · 87 lines

76 else

77 {

78 QDesktopServices::openUrl(url);

79

80 if (!navigated_)

searchwidget.cpp (https://github.com/epibobby/Bol.os.git) C++ · 82 lines

73 void SearchWidget::on_PlayTrailer_clicked()

74 {

75 QDesktopServices::openUrl(QUrl(this->trailer));

76 }

77

filename-window.cpp (https://github.com/Bionus/imgbrd-grabber.git) C++ · 154 lines

101 void FilenameWindow::on_buttonHelpClassic_clicked()

102 {

103 QDesktopServices::openUrl(QUrl(QString(PROJECT_WEBSITE_URL) + "/docs/filename.html"));

104 }

105 void FilenameWindow::on_buttonHelpJavascript_clicked()

106 {

107 QDesktopServices::openUrl(QUrl(QString(PROJECT_WEBSITE_URL) + "/docs/filename.html#javascript"));

108 }

109

startpdf.cpp (https://github.com/simon-r/-Archivio---LeScienze500.git) C++ · 54 lines

35 url.setScheme( "file" );

36 url.setPath( pdf_path );

37 process_strated = QDesktopServices::openUrl( url ) ;

38 }

39 }

HelpTextBrowser.cpp (git://pkgs.fedoraproject.org/vidalia) C++ · 99 lines

83 return;

84

85 bool ok = QDesktopServices::openUrl(url);

86 if (!ok) {

87 VMessageBox::information(this,

standardactions.cpp (https://github.com/ManuelSchneid3r/albert.git) C++ · 125 lines

62 void Core::UrlAction::activate()

63 {

64 QDesktopServices::openUrl(url_);

65 }

66

promolabel.cpp (https://github.com/syntheticpp/GammaRay.git) C++ · 79 lines

51 {

52 if (ev->button() == Qt::LeftButton && ev->modifiers() == Qt::NoModifier) {

53 QDesktopServices::openUrl(QUrl("http://www.kdab.com"));

54 ev->accept();

55 return;

aboutDialog.cpp (https://github.com/introlab/manyears.git) C++ · 156 lines

147 {

148

149 QDesktopServices::openUrl(QUrl(_url));

150

151 }

LH_WeatherBrowserOpener.cpp (https://code.google.com/p/lcdhost/) C++ · 85 lines

79 weatherData weather_data(setup_json_weather_->value(), ok);

80 if( weather_data.url !="" )

81 QDesktopServices::openUrl( QUrl::fromUserInput(weather_data.url) );

82 }

83

searchbox.cpp (https://gitlab.com/f3822/qtbase) C++ · 82 lines

77 completer->preventSuggest();

78 QString url = gsearchUrl.arg(text());

79 QDesktopServices::openUrl(url);

80 }

81 //! [2]

web_event_delegate.cpp (https://github.com/linuxdeepin/deepin-appstore.git) C++ · 127 lines

121 bool WebEventDelegate::onBeforePopup(const QUrl& url,

122 QCefWindowOpenDisposition disposition) {

123 QDesktopServices::openUrl(url);

124 return QCefBrowserEventDelegate::onBeforePopup(url, disposition);

125 }

image-context-menu.cpp (https://github.com/Bionus/imgbrd-grabber.git) C++ · 53 lines

36 void ImageContextMenu::openInBrowser()

37 {

38 QDesktopServices::openUrl(m_image->pageUrl());

39 }

40

WizCommonUI.cpp (https://github.com/altairwei/WizNotePlus.git) C++ · 181 lines

145 void WizCommonUI::OpenUrl(const QString &url)

146 {

147 QDesktopServices::openUrl(QUrl(url));

148 }

149

xml_editor.cpp (https://github.com/HawkLane/UniSim.git) C++ · 46 lines

39 QUrl url("C:\\data\\Universal Simulator\\models\\test.xml");

40 QMessageBox::information(0,"URL",url.path());

41 QDesktopServices::openUrl(url);

42 //process->start("C:/data/QDev/unisim/doc/test editor.bat", QStringList());

43 }

about_dialog.cpp (https://gitlab.com/mattbas/Knotter) C++ · 131 lines

128 void About_Dialog::click_open()

129 {

130 QDesktopServices::openUrl(QUrl("file:///"+clicked_entry));

131 }

132

RicHelpFeatures.cpp (https://bitbucket.org/terraai/resinsight.git) C++ · 179 lines

162 QString usersGuideUrl = "http://resinsight.org/docs/home";

163

164 if (!QDesktopServices::openUrl(usersGuideUrl))

165 {

166 QErrorMessage* errorHandler = QErrorMessage::qtHandler();

urleditor.cpp (https://github.com/robert7/nixnote2.git) C++ · 131 lines

125 !url.toLower().startsWith("file://"))

126 url = "http://"+url;

127 QDesktopServices::openUrl(QUrl(url));

128 }

129 } else

helpviewer.cpp (git://pkgs.fedoraproject.org/qbrew) C++ · 132 lines

126 browser_->setSource(link);

127 } else {

128 QDesktopServices::openUrl(link);

129 browser_->setSource(browser_->source());

130 }

downloadprogresscell.cpp (https://github.com/davy7125/polyphone.git) C++ · 109 lines

84 else

85 {

86 if (!QDesktopServices::openUrl(QUrl(_filename, QUrl::TolerantMode)))

87 {

88 // Warning message

xmlerrormanagerdialog.cpp (https://github.com/lbellonda/qxmledit.git) C++ · 166 lines

155 void XMLErrorManagerDialog::on_showContainingFolder_clicked()

156 {

157 QDesktopServices::openUrl(QUrl::fromLocalFile(_dirPath));

158 }

159

about.cpp (https://bitbucket.org/SteffenAL/velocity.git) C++ · 58 lines

45 void About::on_label_3_linkActivated(const QString &link)

46 {

47 QDesktopServices::openUrl(QUrl(link));

48 }

49

50 void About::on_pushButton_2_clicked()

51 {

52 QDesktopServices::openUrl(QUrl("https://github.com/hetelek/Velocity"));

53 }

54

55 void About::on_pushButton_clicked()

56 {

57 QDesktopServices::openUrl(QUrl("http://free60.org/Main_Page"));

58 }

59

ActionWidget.cpp (https://github.com/aws/lumberyard.git) C++ · 171 lines

163 void ActionWidget::OnLinkActivated(const QString& link)

164 {

165 QDesktopServices::openUrl(link);

166 }

167

runtimepage.cpp (https://github.com/jondo/paperpile.git) C++ · 65 lines

44 // Webpage wants to open a new window, we delegate to the system browser

45 if (frame == 0){

46 QDesktopServices::openUrl(QUrl(request.url()));

47 return 0;

48 // Call parent function for all other requests

help.cpp (git://pkgs.fedoraproject.org/muse) C++ · 113 lines

100 void MusE::launchBrowser(QString &whereTo)

101 {

102 if (! QDesktopServices::openUrl(QUrl(whereTo)))

103 {

104 QMessageBox::information(this, tr("Unable to launch help"),

syncnativebrowser.cpp (https://github.com/sieren/QSyncthingTray.git) C++ · 93 lines

82 void SyncNativeBrowser::show()

83 {

84 QDesktopServices::openUrl(QUrl(mSyncThingUrl));

85 }

86

ArticleView.cpp (https://github.com/aws/lumberyard.git) C++ · 157 lines

97 void ArticleView::linkActivatedSlot(const QString& link)

98 {

99 QDesktopServices::openUrl(QUrl(link));

100 Q_EMIT linkActivatedSignal(link);

101 }

contactcontroller.cpp (https://bitbucket.org/adrianogil/qdominoes.git) C++ · 42 lines

34 void ContactController::openTwitter()

35 {

36 QDesktopServices::openUrl(QUrl(tr("http://mobile.twitter.com/projetoTukanos")));

37 }

38

39 void ContactController::openFacebook()

40 {

41 QDesktopServices::openUrl(QUrl(tr("http://m.facebook.com/projetotukanos")));

42 }

43

quetzalnotify.cpp (git://pkgs.fedoraproject.org/qutim) C++ · 149 lines

121 void *quetzal_notify_uri(const char *uri)

122 {

123 QDesktopServices::openUrl(QUrl::fromUserInput(uri));

124 return NULL;

125 }

urllauncher.cpp (https://github.com/pvanek/scribus-cuba-1.5.0.git) C++ · 85 lines

60 if (extBrowser.isEmpty())

61 {

62 if (!QDesktopServices::openUrl(link))

63 {

64 extBrowser = QFileDialog::getOpenFileName(p, tr("Locate your web browser"), QString::null, QString::null);

77 QMessageBox::StandardButton sb=QMessageBox::critical(p, tr("External Web Browser Failed to Start"), tr("Scribus was not able to start the external web browser application %1. Please check the setting in Preferences.\nWould you like to start the system's default browser instead?").arg(PrefsManager::instance()->extBrowserExecutable()), QMessageBox::Ok|QMessageBox::Cancel, QMessageBox::Ok);

78 if (sb==QMessageBox::Ok)

79 QDesktopServices::openUrl(link);

80 }

81 }

82 }

83 else

84 QDesktopServices::openUrl(link);

85 }

86

FilePathLabel.h (https://github.com/aws/lumberyard.git) C Header · 179 lines

107 {

108 // GetIEditor()->GetFileUtil()->ShowInExplorer doesn't handle full paths. Using openUrl instead.

109 QDesktopServices::openUrl(QUrl::fromLocalFile(text()));

110 }

111

116 text()

117 };

118 QDesktopServices::openUrl(QUrl::fromLocalFile(fileInfo.absolutePath()));

119 }

120

SearchFromGitHubDialog.cpp (https://github.com/soramimi/Guitar.git) C++ · 167 lines

162 {

163 QString url = ui->label_hyperlink->text();

164 QDesktopServices::openUrl(QUrl(url));

165 }

166

webview.cpp (https://github.com/kiwix/kiwix-desktop.git) C++ · 145 lines

86 connect(openLinkInWebBrowserAction, &QAction::triggered, this, [=](bool checked) {

87 Q_UNUSED(checked);

88 QDesktopServices::openUrl(m_linkHovered);

89 });

90 } else {

110 && (me->modifiers() == Qt::ControlModifier || me->button() == Qt::MiddleButton))

111 {

112 QDesktopServices::openUrl(m_linkHovered);

113 return true;

114 }

sociallinks.cpp (https://github.com/NeblioTeam/neblio.git) C++ · 68 lines

30 void SocialLinks::openURL(const QString& url)

31 {

32 if (!QDesktopServices::openUrl(QUrl(url))) {

33 QMessageBox::StandardButton res =

34 QMessageBox::warning(this, "Could not find browser",

PasteNotationDialog.cpp (git://pkgs.fedoraproject.org/rosegarden4) C++ · 132 lines

126 // free to create one.

127 QString helpURL = tr("http://rosegardenmusic.com/wiki/doc:pasteNotationDialog-en");

128 QDesktopServices::openUrl(QUrl(helpURL));

129 }

130 }

scraper_scroll_label.cpp (https://github.com/YACReader/yacreader.git) C++ · 52 lines

49 void ScraperScrollLabel::openLink(const QString &link)

50 {

51 QDesktopServices::openUrl(QUrl("http://www.comicvine.com" + link));

52 }

53

ReceiptCreator.cpp (https://bitbucket.org/fbreiten/point-of-sale-system.git) C++ · 62 lines

30 addFooter();

31 m_pPixmap->save("receipt.jpg");

32 QDesktopServices::openUrl(QUrl("receipt.jpg"));

33 qDebug() << "Printed receipt";

34 }

HandleUploadResultOperation.cpp (https://github.com/ksnip/ksnip.git) C++ · 139 lines

92 void HandleUploadResultOperation::OpenUrl(const QString &url) const

93 {

94 QDesktopServices::openUrl(url);

95 }

96

helpbutton.cpp (https://github.com/Jmgr/actionaz.git) C++ · 47 lines

43 return;

44

45 QDesktopServices::openUrl(QUrl(QStringLiteral("http://wiki.actiona.tools/doku.php?id=%1").arg(mTopic)));

46 }

47 }

CreateResourceDialog.cpp (https://github.com/aws/lumberyard.git) C++ · 180 lines

136 void CreateResourceDialog::OnResourceHelpActivated(const QString& linkString)

137 {

138 QDesktopServices::openUrl(QUrl { linkString });

139 }

140

noteview.cpp (https://github.com/sadhen/marketo.git) C++ · 180 lines

163 openUrl(url);

164 } else {

165 QDesktopServices::openUrl(url);

166 }

167 }

help.cpp (https://gitlab.com/biometricscurious/openbr) C++ · 44 lines

29 void br::Help::showDocumentation()

30 {

31 QDesktopServices::openUrl(QUrl(QString("file:///%1/doc/html/index.html").arg(br_sdk_path())));

32 }

33

update-dialog.cpp (https://github.com/Bionus/imgbrd-grabber.git) C++ · 104 lines

69 downloadUpdate();

70 #else

71 QDesktopServices::openUrl(m_updater.latestUrl());

72 close();

73 #endif

KeepInTouchView.cpp (https://github.com/aws/lumberyard.git) C++ · 87 lines

81 Q_EMIT linkActivatedSignal(link);

82

83 return QDesktopServices::openUrl(QUrl(link));

84 }

85 }

bttabhtmldialog.cpp (https://bibletime.svn.sourceforge.net/svnroot/bibletime) C++ · 141 lines

77 void BtTabHtmlDialog::linkClicked(const QUrl url)

78 {

79 QDesktopServices::openUrl(url);

80 }

81

dialogabout.cpp (https://github.com/ErnieAllen/XView.git) C++ · 41 lines

38 void DialogAbout::on_textBrowser_anchorClicked(QUrl licenseUrl)

39 {

40 QDesktopServices::openUrl(licenseUrl);

41 }

42

AboutDialog.cpp (https://github.com/aws/lumberyard.git) C++ · 90 lines

80 void CAboutDialog::OnCustomerAgreement()

81 {

82 QDesktopServices::openUrl(QUrl(QStringLiteral("http://aws.amazon.com/agreement/")));

83 }

84

85 void CAboutDialog::OnPrivacyNotice()

86 {

87 QDesktopServices::openUrl(QUrl(QStringLiteral("http://aws.amazon.com/privacy/")));

88 }

89

projectselectionwidget.cpp (https://github.com/stitchEm/stitchEm.git) C++ · 95 lines

48

49 void ProjectSelectionWidget::onSampleSelected(const QModelIndex &index) {

50 QDesktopServices::openUrl(index.data(FULL_PATH).toString());

51 }

52

mainwindow.cpp (git://pkgs.fedoraproject.org/qt-mobility) C++ · 73 lines

69 {

70 if (ui->centralWidget->rect().contains(event->pos()))

71 QDesktopServices::openUrl(QUrl(ui->m_url->text()));

72 }

73

frmopensubtitlesconfig.cpp (https://github.com/QNapi/qnapi.git) C++ · 55 lines

51

52 if (maybeRegistrationUrl) {

53 QDesktopServices::openUrl(maybeRegistrationUrl.value());

54 }

55 }

UpdateChecker.cpp (https://github.com/Qv2ray/Qv2ray.git) C++ · 103 lines

87 if (result == QMessageBox::Yes)

88 {

89 QDesktopServices::openUrl(link);

90 }

91 else if (result == QMessageBox::Ignore)

meshlab-2020.12-disable-updates.patch (https://gitlab.com/redcore/portage) Patch · 38 lines

18 checkForUpdates(false);

19 +#endif

20 QDesktopServices::openUrl(QUrl("http://www.meshlab.net/#support"));

21 }

22

settingmenucontroller.cpp (https://github.com/yiminyangguang520/qt.git) C++ · 71 lines

45 void SettingMenuController::checkUpdate()

46 {

47 QDesktopServices::openUrl(QUrl("https://github.com/dragondjf/QCFramer"));

48 }

49

50 void SettingMenuController::onlineHelp()

51 {

52 QDesktopServices::openUrl(QUrl("https://github.com/dragondjf/QCFramer"));

53 }

54

55 void SettingMenuController::visitOfficialSite()

56 {

57 QDesktopServices::openUrl(QUrl("https://github.com/dragondjf/QCFramer"));

58 }

59

TulipFontIconDialog.cpp (https://github.com/Tulip-Dev/tulip.git) C++ · 127 lines

124

125 void TulipFontIconDialog::openUrlInBrowser(const QString &url) {

126 QDesktopServices::openUrl(QUrl(url));

127 }

128

openfilehelper.h (https://github.com/variar/klogg.git) C Header · 92 lines

78 QProcess::execute( QLatin1String( "/usr/bin/osascript" ), scriptArgs );

79 #else

80 QDesktopServices::openUrl( QUrl::fromLocalFile( fileInfo.canonicalPath() ) );

81 #endif

82 }

87

88 const QFileInfo fileInfo( filePath );

89 QDesktopServices::openUrl( QUrl::fromLocalFile( fileInfo.canonicalFilePath() ) );

90 }

91

exportconvertdialog.cpp (http://filesearch.googlecode.com/svn/trunk/) C++ · 145 lines

119 {

120 this->close();

121 QDesktopServices::openUrl(QUrl("file:///" + m_exportDir));

122 return;

123 }

opsindi.cpp (https://github.com/KDE/kstars.git) C++ · 135 lines

118 QUrl path = QUrl::fromLocalFile(QDir::homePath() + "/.indi/logs");

119

120 QDesktopServices::openUrl(path);

121 }

122

TextLabel.cpp (https://github.com/mujx/nheko.git) C++ · 118 lines

103 {

104 auto parts = url.toString().split('/');

105 auto defaultHandler = [](const QUrl &url) { QDesktopServices::openUrl(url); };

106

107 if (url.host() != "matrix.to" || parts.isEmpty())

CaptureConfigPage.cpp (https://gitlab.com/mba811/QtAV.git) C++ · 147 lines

144 {

145 qDebug("browse capture dir");

146 QDesktopServices::openUrl(QUrl("file:///" + mpDir->text()));

147 }

148

OverQuotaDialog.cpp (https://github.com/meganz/MEGAsync.git) C++ · 131 lines

113 auto url{QString::fromUtf8("mega://#pro")};

114 Utilities::getPROurlWithParameters(url);

115 QtConcurrent::run(QDesktopServices::openUrl, QUrl(url));

116 QDialog::accept();

117 }

guiutility.cpp (https://github.com/nextcloud/client.git) C++ · 106 lines

40 }

41

42 if (!QDesktopServices::openUrl(url)) {

43 if (errorWidgetParent) {

44 QMessageBox::warning(

50 .arg(url.toString()));

51 }

52 qCWarning(lcUtility) << "QDesktopServices::openUrl failed for" << url;

53 return false;

54 }

64 url.setQuery(query);

65

66 if (!QDesktopServices::openUrl(url)) {

67 if (errorWidgetParent) {

68 QMessageBox::warning(

guiutility.cpp (https://github.com/nextcloud/desktop.git) C++ · 68 lines

28 bool Utility::openBrowser(const QUrl &url, QWidget *errorWidgetParent)

29 {

30 if (!QDesktopServices::openUrl(url)) {

31 if (errorWidgetParent) {

32 QMessageBox::warning(

38 .arg(url.toString()));

39 }

40 qCWarning(lcUtility) << "QDesktopServices::openUrl failed for" << url;

41 return false;

42 }

52 url.setQuery(query);

53

54 if (!QDesktopServices::openUrl(url)) {

55 if (errorWidgetParent) {

56 QMessageBox::warning(

WorkflowIcons.cpp (git://pkgs.fedoraproject.org/fwbuilder) C++ · 97 lines

92

93 // if we want to open the page with video tutorials in the standard browser

94 QDesktopServices::openUrl(QUrl("http://www.fwbuilder.org/4.0/videos.html",

95 QUrl::StrictMode));

96 }

mediaplayerinterface.cpp (https://github.com/jackuess/pirateplayer.git) C++ · 76 lines

52 playUsingCmd("open -a \"QuickTime Player\" \"%0\"");

53 #else

54 QDesktopServices::openUrl(QUrl(_url));

55 #endif

56 }

biblioteq_documentationwindow.cc (https://github.com/textbrowser/biblioteq.git) C++ · 165 lines

112 m_ui.text->setSource(url);

113 else if(m_openExternalLinks)

114 QDesktopServices::openUrl(url);

115 }

116

BugReporting.cpp (https://github.com/radareorg/cutter.git) C++ · 45 lines

42 "**Additional context**\nAdd any other context about the problem here.";

43

44 QDesktopServices::openUrl(QUrl(url, QUrl::TolerantMode));

45 }

46

editortabs.cpp (https://github.com/as0ler/Android-Tools.git) C++ · 310 lines

228 else

229 {

230 QDesktopServices::openUrl(QUrl(p));

231 return;

232 }

nag_screen.cpp (https://github.com/c3d/tao-3D.git) C++ · 81 lines

75 {

76 QUrl url(tr("http://www.taodyne.com/taopresentations/buynow"));

77 QDesktopServices::openUrl(url);

78 }

79 }

TrayIcon.cpp (https://github.com/ksnip/ksnip.git) C++ · 135 lines

131 {

132 if(!mToastContentUrl.isEmpty() && !mToastContentUrl.isNull()) {

133 QDesktopServices::openUrl(mToastContentUrl);

134 }

135 }

WelcomeScreen.cpp (https://github.com/fronin/lmms.git) C++ · 187 lines

172 // the URL to be opened is encoded in status tip (no other

173 // possibility to store such information in Qt Designer)

174 QDesktopServices::openUrl( _item->statusTip() );

175 }

176

smartproposal.cpp (https://github.com/SmartCash/Core-Smart.git) C++ · 142 lines

114

115 void SmartProposalWidget::viewProposal(){

116 QDesktopServices::openUrl(QUrl("https://vote.smartcash.cc/Proposal/Details/" + proposal.getUrl()));

117 }

118

bridgeserver.cpp (http://flashdevelop.googlecode.com/svn/trunk/FD4/) C++ · 111 lines

70 QFile file(localPath);

71 if (file.exists())

72 QDesktopServices::openUrl(QUrl::fromLocalFile(localPath));

73 else qDebug() << "File not found:" << path;

74 }

LH_WeatherBrowserOpener.cpp (https://code.google.com/p/lcdhost/) C++ · 82 lines ✨ Summary

This C++ code defines a plugin for a weather application, specifically an “Open in browser” feature. It creates a Qt input state to capture user input and connects it to a slot function openBrowser that opens the URL associated with the weather data in the default web browser when the input is triggered.

76 Q_UNUSED(value);

77 if( weather_data.url !="" )

78 QDesktopServices::openUrl( QUrl::fromUserInput(weather_data.url) );

79 }

80

optionswindow.cpp (https://github.com/yznpku/LabCompass.git) C++ · 79 lines

53 {

54 global()->setProperty("optionsWindowOpen", false);

55 QDesktopServices::openUrl(QUrl(url));

56 }

57

ResourcesDialog.h (https://github.com/TeXworks/texworks.git) C Header · 53 lines

41

42 private slots:

43 void openURL(const QString& url) const { QDesktopServices::openUrl(QUrl(url)); }

44

45 private:

WbDesktopServices.cpp (https://github.com/cyberbotics/webots.git) C++ · 48 lines

39 qunsetenv("TEMP");

40 #endif

41 bool result = QDesktopServices::openUrl(QUrl(url));

42 #ifdef _WIN32

43 qputenv("TEMP", TEMP);

urledit.cpp (https://github.com/torrent-file-editor/torrent-file-editor.git) C++ · 84 lines

70 QUrl url(text());

71 if (url.isValid())

72 QDesktopServices::openUrl(url);

73 }

74

proofofimage.cpp (https://github.com/carsenk/denarius.git) C++ · 151 lines

131 //open url

132 QString link = QString::fromStdString(bexp + addr);

133 QDesktopServices::openUrl(QUrl(link));

134 }

135

140 //open url

141 QString link = QString::fromStdString(bexp + ui->txLineEdit->text().toStdString());

142 QDesktopServices::openUrl(QUrl(link));

143 }

144

tag-context-menu.cpp (https://github.com/Bionus/imgbrd-grabber.git) C++ · 128 lines

111 void TagContextMenu::openInBrowser()

112 {

113 QDesktopServices::openUrl(m_browserUrl);

114 }

115 void TagContextMenu::copyTagToClipboard()

ComboEditor.cpp (https://github.com/xmichelo/Beeftext.git) C++ · 146 lines

107 menu->addSeparator();

108 action = new QAction(tr("&About Variables"), this);

109 connect(action, &QAction::triggered, []() { QDesktopServices::openUrl(constants::kBeeftextWikiVariablesUrl); });

110 menu->addAction(action);

111 return menu;

log-tab.cpp (https://github.com/Bionus/imgbrd-grabber.git) C++ · 110 lines

89 void LogTab::open()

90 {

91 QDesktopServices::openUrl("file:///" + Logger::getInstance().logFile());

92 }

93

successdialog.cpp (https://gitlab.com/lavvy/osmc) C++ · 35 lines

27 void SuccessDialog::on_facebookButton_clicked()

28 {

29 QDesktopServices::openUrl(QUrl("http://facebook.com/osmcproject"));

30 }

31

32 void SuccessDialog::on_twitterButton_clicked()

33 {

34 QDesktopServices::openUrl(QUrl("http://twitter.com/try_osmc"));

35 }

36

donationdialog.cpp (git://github.com/bjorn/tiled.git) C++ · 87 lines

64 void DonationDialog::openDonationPage()

65 {

66 QDesktopServices::openUrl(QUrl(QLatin1String("https://www.mapeditor.org/donate")));

67 }

68

qiosservices.mm (https://code.google.com/p/phantomjs/) Objective C++ · 89 lines

80 // so that we can warn the user if calling setUrlHandler without also setting

81 // up the matching keys in the Info.plist file (CFBundleURLTypes and friends).

82 bool couldHandle = QDesktopServices::openUrl(url);

83

84 m_handlingUrl = previouslyHandling;

exporter.cpp (https://github.com/albar965/littlenavmap.git) C++ · 118 lines

91

92 qDebug() << "HtmlExporter opening" << url;

93 if(!QDesktopServices::openUrl(url))

94 {

95 qWarning() << "openUrl failed for" << url;

ReCaptcha.cpp (https://github.com/mujx/nheko.git) C++ · 64 lines

54 .arg(session);

55

56 QDesktopServices::openUrl(url);

57 });

58

notify.cpp (https://github.com/kevinlq/LQFramKit.git) C++ · 159 lines

132 if(event->button() == Qt::LeftButton) {

133 if(!url.isEmpty()){

134 QDesktopServices::openUrl(url);

135 }

136 hideGriant();

loadconfig.h (http://fop-miniscribus.googlecode.com/svn/trunk/) C Header · 122 lines

95 fullFileName.prepend("file:///");

96 }

97 bool wr = QDesktopServices::openUrl(QUrl(fullFileName));

98 if (!wr) {

99 QMessageBox::warning(0, qApp->tr("Error"),qApp->tr("Window Unable to open action file or dir %1").arg(loc.toString()));

104 /* linux */

105

106 bool r = QDesktopServices::openUrl(loc);

107 if (!r) {

108 QMessageBox::warning(0, qApp->tr("Error"),qApp->tr("Linux Unable to open action file or dir %1").arg(loc.toString()));