100+ results for 'QDesktopServices::openUrl'
Not the results you expected?
qgshelp.cpp (https://github.com/ricardogsilva/Quantum-GIS.git) C++ · 178 lines
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 }
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
associatedapplicationmanager.cpp (https://github.com/vasi/kdelibs.git) C++ · 157 lines
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
qgsnative.cpp (https://github.com/ricardogsilva/Quantum-GIS.git) C++ · 96 lines
testqgsquickprint.cpp (https://github.com/ricardogsilva/Quantum-GIS.git) C++ · 178 lines
diveshareexportdialog.cpp (https://github.com/dirkhh/subsurface.git) C++ · 128 lines
textedit.cpp (https://github.com/sithereal/zNotes.git) C++ · 142 lines
KontrahenciLista.cpp (https://github.com/rafalrusin/qfaktury.git) C++ · 217 lines
twitter.cpp (https://gitlab.com/f3822/qtnetworkauth) C++ · 94 lines
testcontrastenhancements.cpp (https://github.com/linz/Quantum-GIS.git) C++ · 107 lines
tweeter.cpp (https://github.com/ricardogsilva/Quantum-GIS.git) C++ · 135 lines
settingstabother.h (https://gitlab.com/vladius/photoqt) C Header · 105 lines
ImagePreviewWidget.cpp (https://gitlab.com/alvinahmadov2/icq-desktop) C++ · 229 lines
fbdemo.cpp (https://github.com/ricardogsilva/Quantum-GIS.git) C++ · 119 lines
src_gui_util_qdesktopservices.cpp (https://bitbucket.org/kasimling/qt.git) C++ · 60 lines
tst_qdesktopservices.cpp (https://gitlab.com/f3822/qtbase) C++ · 107 lines
41 };
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
searchbox.cpp (https://gitlab.com/Moon4u/QGInsert) C++ · 75 lines
DiskSpacePresenter.cpp (https://github.com/baoping/Red-Bull-Media-Player.git) C++ · 117 lines
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
updater.cpp (https://gitlab.com/gustawho/aircrackgui-m4) C++ · 123 lines
testcontrastenhancements.cpp (https://github.com/ricardogsilva/Quantum-GIS.git) C++ · 107 lines
clipgrab-3.2.1.0-obey.patch (https://gitlab.com/rindeal/gentoo-cvs-history-archive) Patch · 85 lines
titleidfinderdialog.cpp (https://bitbucket.org/SteffenAL/velocity.git) C++ · 72 lines
aboutwindow.cpp (https://github.com/khrykin/StrategrDesktop.git) C++ · 180 lines
noticewidget.cpp (https://github.com/Rambler-ru/Contacts.git) C++ · 190 lines
extendedtablewidget.cpp (https://gitlab.com/xivo.solutions/xivo-client-qt) C++ · 97 lines
profile_tree_view.cpp (https://gitlab.com/jvelando/wireshark) C++ · 118 lines
about.cpp (https://github.com/simon-r/-Archivio---LeScienze500.git) C++ · 89 lines
about.cpp (https://github.com/simon-r/-Archivio---LeScienze500.git) C++ · 89 lines
sbitmainwindow.cpp (https://bitbucket.org/dbezrukov/sbit.git) C++ · 120 lines
regression992.cpp (https://github.com/linz/Quantum-GIS.git) C++ · 117 lines
qgsaction.cpp (git://github.com/qgis/Quantum-GIS.git) C++ · 166 lines
dialogconversionstatus.cpp (git://pkgs.fedoraproject.org/converseen) C++ · 167 lines
openurlinstance.hpp (https://github.com/Jmgr/actionaz.git) C++ Header · 78 lines
DroneshareDialog.cc (https://gitlab.com/fsgdez/apm_planner) C++ · 79 lines
PlanWidget.cpp (https://github.com/meganz/MEGAsync.git) C++ · 150 lines
patreondialog.cpp (git://github.com/bjorn/tiled.git) C++ · 97 lines
openstrategies.cpp (https://github.com/ABBAPOH/andromeda.git) C++ · 233 lines
systemeditor.cpp (https://github.com/KDAB/KDAB-Creator.git) C++ · 75 lines
filesystemtoolwidget.cpp (https://github.com/ABBAPOH/andromeda.git) C++ · 171 lines
qgsappauthrequesthandler.cpp (https://github.com/ricardogsilva/Quantum-GIS.git) C++ · 102 lines
qgis.g.browser.cpp (https://github.com/linz/Quantum-GIS.git) C++ · 41 lines
gsiDeclQDesktopServices.cc (https://github.com/KLayout/klayout.git) C++ · 142 lines
56 // static bool QDesktopServices::openUrl(const QUrl &url)
69 tl::Heap heap;
70 const QUrl &arg1 = gsi::arg_reader<const QUrl & >() (args, heap);
71 ret.write<bool > ((bool)QDesktopServices::openUrl (arg1));
72 }
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
obey.patch (https://github.com/1000timesdead/portage.git) Patch · 82 lines
gdrivepropertiesplugin.cpp (https://github.com/KDE/kio-gdrive.git) C++ · 98 lines
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 }
94 Theme *theme = Theme::instance();
95 QUrl url = QUrl(field("OCUrl").toString() + theme->wizardUrlPostfix());
96 QDesktopServices::openUrl(url);
97 }
qtiplot-0.9.8.3-popup.patch (https://github.com/1000timesdead/portage.git) Patch · 47 lines
searchbox.cpp (https://bitbucket.org/cvp2ri/qt5-tlsauth.git) C++ · 72 lines
main.cpp (https://gitlab.com/f3822/qtwebengine) C++ · 100 lines
communitywelcomepagewidget.cpp (https://github.com/CorvusCorax/my_OpenPilot_mods.git) C++ · 85 lines
previewpage.cpp (https://gitlab.com/f3822/qtwebengine) C++ · 64 lines
themewidget.cpp (https://github.com/pkexp-martin/pokemon-online.git) C++ · 86 lines
promolabel.cpp (https://github.com/KDAB/GammaRay.git) C++ · 71 lines
configure_debug.cpp (https://github.com/yuzu-emu/yuzu.git) C++ · 72 lines
qiosservices.mm (https://gitlab.com/f3822/qtbase) Objective C++ · 107 lines
systemtrayicon.cpp (https://github.com/jiangzc/CuteTranslation.git) C++ · 152 lines
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 });
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
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.
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.
106 void AboutWidget::linkActivated( const QString &link ) {
107 QDesktopServices::openUrl( link );
108 }
110 void AboutWidget::goToDevelopersForum() {
111 QDesktopServices::openUrl( QString( "http://instead.syscall.ru/forum" ) );
112 }
114 void AboutWidget::goToINSTEADPage() {
115 QDesktopServices::openUrl( QString( "http://instead.googlecode.com" ) );
116 }
licensedialog.cpp (https://github.com/canpool/qtcanpool.git) C++ · 118 lines
flickr.h (git://github.com/sepych/QtFlickr.git) C Header · 184 lines
khelpclient.cpp (https://github.com/KDE/krita.git) C++ · 81 lines
appwidget.cpp (https://github.com/flaviotordini/minitube.git) C++ · 120 lines
UIDesktopServices_x11.cpp (https://github.com/thalium/icebox.git) C++ · 72 lines
mainwindow.cpp (https://github.com/solenskiner/qwebapp.git) C++ · 88 lines
divepixmapitem.cpp (https://github.com/dirkhh/subsurface.git) C++ · 107 lines
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 }
33 void SubsurfaceAbout::on_websiteButton_clicked()
34 {
35 QDesktopServices::openUrl(QUrl("http://subsurface-divelog.org"));
36 }
38 void SubsurfaceAbout::on_creditButton_clicked()
39 {
40 QDesktopServices::openUrl(QUrl("http://subsurface-divelog.org/misc/credits"));
41 }
sftpplugin-win.cpp (https://github.com/KDE/kdeconnect-kde.git) C++ · 78 lines
abstractcontainer.cpp (https://github.com/raphaelamorim/audactile.git) C++ · 55 lines
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
CDoxygen.cpp (https://github.com/dimitar-asenov/Envision.git) C++ · 63 lines
exitpreferences.cpp (https://github.com/robert7/nixnote2.git) C++ · 249 lines
external.cpp (https://gitlab.com/vladius/photoqt) C++ · 27 lines
MessageWidget.cpp (https://github.com/keepassxreboot/keepassxc.git) C++ · 106 lines
DesktopWebPage.cpp (https://github.com/nlhartman/rstudio.git) C++ · 87 lines
searchwidget.cpp (https://github.com/epibobby/Bol.os.git) C++ · 82 lines
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 }
startpdf.cpp (https://github.com/simon-r/-Archivio---LeScienze500.git) C++ · 54 lines
HelpTextBrowser.cpp (git://pkgs.fedoraproject.org/vidalia) C++ · 99 lines
standardactions.cpp (https://github.com/ManuelSchneid3r/albert.git) C++ · 125 lines
promolabel.cpp (https://github.com/syntheticpp/GammaRay.git) C++ · 79 lines
aboutDialog.cpp (https://github.com/introlab/manyears.git) C++ · 156 lines
LH_WeatherBrowserOpener.cpp (https://code.google.com/p/lcdhost/) C++ · 85 lines
searchbox.cpp (https://gitlab.com/f3822/qtbase) C++ · 82 lines
web_event_delegate.cpp (https://github.com/linuxdeepin/deepin-appstore.git) C++ · 127 lines
image-context-menu.cpp (https://github.com/Bionus/imgbrd-grabber.git) C++ · 53 lines
WizCommonUI.cpp (https://github.com/altairwei/WizNotePlus.git) C++ · 181 lines
xml_editor.cpp (https://github.com/HawkLane/UniSim.git) C++ · 46 lines
about_dialog.cpp (https://gitlab.com/mattbas/Knotter) C++ · 131 lines
RicHelpFeatures.cpp (https://bitbucket.org/terraai/resinsight.git) C++ · 179 lines
urleditor.cpp (https://github.com/robert7/nixnote2.git) C++ · 131 lines
helpviewer.cpp (git://pkgs.fedoraproject.org/qbrew) C++ · 132 lines
downloadprogresscell.cpp (https://github.com/davy7125/polyphone.git) C++ · 109 lines
xmlerrormanagerdialog.cpp (https://github.com/lbellonda/qxmledit.git) C++ · 166 lines
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 }
50 void About::on_pushButton_2_clicked()
51 {
52 QDesktopServices::openUrl(QUrl("https://github.com/hetelek/Velocity"));
53 }
55 void About::on_pushButton_clicked()
56 {
57 QDesktopServices::openUrl(QUrl("http://free60.org/Main_Page"));
58 }
ActionWidget.cpp (https://github.com/aws/lumberyard.git) C++ · 171 lines
runtimepage.cpp (https://github.com/jondo/paperpile.git) C++ · 65 lines
help.cpp (git://pkgs.fedoraproject.org/muse) C++ · 113 lines
syncnativebrowser.cpp (https://github.com/sieren/QSyncthingTray.git) C++ · 93 lines
ArticleView.cpp (https://github.com/aws/lumberyard.git) C++ · 157 lines
contactcontroller.cpp (https://bitbucket.org/adrianogil/qdominoes.git) C++ · 42 lines
quetzalnotify.cpp (git://pkgs.fedoraproject.org/qutim) C++ · 149 lines
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 }
FilePathLabel.h (https://github.com/aws/lumberyard.git) C Header · 179 lines
SearchFromGitHubDialog.cpp (https://github.com/soramimi/Guitar.git) C++ · 167 lines
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
PasteNotationDialog.cpp (git://pkgs.fedoraproject.org/rosegarden4) C++ · 132 lines
scraper_scroll_label.cpp (https://github.com/YACReader/yacreader.git) C++ · 52 lines
HandleUploadResultOperation.cpp (https://github.com/ksnip/ksnip.git) C++ · 139 lines
helpbutton.cpp (https://github.com/Jmgr/actionaz.git) C++ · 47 lines
CreateResourceDialog.cpp (https://github.com/aws/lumberyard.git) C++ · 180 lines
noteview.cpp (https://github.com/sadhen/marketo.git) C++ · 180 lines
help.cpp (https://gitlab.com/biometricscurious/openbr) C++ · 44 lines
update-dialog.cpp (https://github.com/Bionus/imgbrd-grabber.git) C++ · 104 lines
KeepInTouchView.cpp (https://github.com/aws/lumberyard.git) C++ · 87 lines
bttabhtmldialog.cpp (https://bibletime.svn.sourceforge.net/svnroot/bibletime) C++ · 141 lines
dialogabout.cpp (https://github.com/ErnieAllen/XView.git) C++ · 41 lines
AboutDialog.cpp (https://github.com/aws/lumberyard.git) C++ · 90 lines
projectselectionwidget.cpp (https://github.com/stitchEm/stitchEm.git) C++ · 95 lines
mainwindow.cpp (git://pkgs.fedoraproject.org/qt-mobility) C++ · 73 lines
frmopensubtitlesconfig.cpp (https://github.com/QNapi/qnapi.git) C++ · 55 lines
UpdateChecker.cpp (https://github.com/Qv2ray/Qv2ray.git) C++ · 103 lines
meshlab-2020.12-disable-updates.patch (https://gitlab.com/redcore/portage) Patch · 38 lines
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 }
50 void SettingMenuController::onlineHelp()
51 {
52 QDesktopServices::openUrl(QUrl("https://github.com/dragondjf/QCFramer"));
53 }
55 void SettingMenuController::visitOfficialSite()
56 {
57 QDesktopServices::openUrl(QUrl("https://github.com/dragondjf/QCFramer"));
58 }
TulipFontIconDialog.cpp (https://github.com/Tulip-Dev/tulip.git) C++ · 127 lines
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 }
88 const QFileInfo fileInfo( filePath );
89 QDesktopServices::openUrl( QUrl::fromLocalFile( fileInfo.canonicalFilePath() ) );
90 }
exportconvertdialog.cpp (http://filesearch.googlecode.com/svn/trunk/) C++ · 145 lines
opsindi.cpp (https://github.com/KDE/kstars.git) C++ · 135 lines
TextLabel.cpp (https://github.com/mujx/nheko.git) C++ · 118 lines
CaptureConfigPage.cpp (https://gitlab.com/mba811/QtAV.git) C++ · 147 lines
OverQuotaDialog.cpp (https://github.com/meganz/MEGAsync.git) C++ · 131 lines
guiutility.cpp (https://github.com/nextcloud/client.git) C++ · 106 lines
40 }
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);
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);
54 if (!QDesktopServices::openUrl(url)) {
55 if (errorWidgetParent) {
56 QMessageBox::warning(
WorkflowIcons.cpp (git://pkgs.fedoraproject.org/fwbuilder) C++ · 97 lines
mediaplayerinterface.cpp (https://github.com/jackuess/pirateplayer.git) C++ · 76 lines
biblioteq_documentationwindow.cc (https://github.com/textbrowser/biblioteq.git) C++ · 165 lines
BugReporting.cpp (https://github.com/radareorg/cutter.git) C++ · 45 lines
editortabs.cpp (https://github.com/as0ler/Android-Tools.git) C++ · 310 lines
nag_screen.cpp (https://github.com/c3d/tao-3D.git) C++ · 81 lines
TrayIcon.cpp (https://github.com/ksnip/ksnip.git) C++ · 135 lines
WelcomeScreen.cpp (https://github.com/fronin/lmms.git) C++ · 187 lines
smartproposal.cpp (https://github.com/SmartCash/Core-Smart.git) C++ · 142 lines
bridgeserver.cpp (http://flashdevelop.googlecode.com/svn/trunk/FD4/) C++ · 111 lines
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.
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.
optionswindow.cpp (https://github.com/yznpku/LabCompass.git) C++ · 79 lines
ResourcesDialog.h (https://github.com/TeXworks/texworks.git) C Header · 53 lines
WbDesktopServices.cpp (https://github.com/cyberbotics/webots.git) C++ · 48 lines
proofofimage.cpp (https://github.com/carsenk/denarius.git) C++ · 151 lines
tag-context-menu.cpp (https://github.com/Bionus/imgbrd-grabber.git) C++ · 128 lines
ComboEditor.cpp (https://github.com/xmichelo/Beeftext.git) C++ · 146 lines
log-tab.cpp (https://github.com/Bionus/imgbrd-grabber.git) C++ · 110 lines
successdialog.cpp (https://gitlab.com/lavvy/osmc) C++ · 35 lines
donationdialog.cpp (git://github.com/bjorn/tiled.git) C++ · 87 lines
qiosservices.mm (https://code.google.com/p/phantomjs/) Objective C++ · 89 lines
exporter.cpp (https://github.com/albar965/littlenavmap.git) C++ · 118 lines
ReCaptcha.cpp (https://github.com/mujx/nheko.git) C++ · 64 lines
notify.cpp (https://github.com/kevinlq/LQFramKit.git) C++ · 159 lines
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 */
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()));