]> git.sven.stormbind.net Git - sven/vym.git/blob - src/aboutdialog.cpp
New upstream version 2.9.22
[sven/vym.git] / src / aboutdialog.cpp
1 #include <QDate>
2 #include <QFrame>
3 #include <QProcess>
4 #include <QVBoxLayout>
5
6 #include "aboutdialog.h"
7 #include "settings.h"
8
9 extern Settings settings;
10 extern QString iconPath; // FIXME-4 embed vym logo as ressource?
11 extern QString vymVersion;
12 extern QString vymBuildDate;
13 extern QString vymCodeName;
14 extern QString vymCodeQuality;
15
16 extern QColor vymBlue;
17
18 AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent)
19 {
20
21     mainLayout = new QVBoxLayout(this);
22
23     tabs = new QTabWidget(this);
24     credits = new AboutTextBrowser(parent);
25
26     QString version = vymVersion;
27     if (!vymCodeName.isEmpty())
28         version += QString(" - \"%1\"").arg(vymCodeName);
29
30     credits->setHtml(
31         QString(
32             "<style>a:link { color: " + vymBlue.name() + "; background-color: transparent;}</style>"
33             "<center><img src=\"" + iconPath + "vym-128x128.png\"></center>"
34             "<h3><center>VYM - View Your Mind </h3>"
35             "<p align=\"center\"> A tool to put the things you have got in your mind into a map.</p>"
36             "<p align=\"center\"> (c) 2004-%1 by Uwe Drechsel (<a "
37             "href=\"mailto:vym@InSilmaril.de\">vym@InSilmaril.de</a>)</p>"
38             "<p align=\"center\"> Version " + version + "</p>"
39             "<p align=\"center\"> Quality: " + vymCodeQuality + "</p>"
40             "<p align=\"center\"> Build date: " + vymBuildDate + "</p>"
41             "<ul>"
42                 "<li> Contact</li>"
43                     "<ul>"
44                         "<li> Code and issue tracker:<br>"
45                             "<a href=\"https://github.com/insilmaril/vym\">"
46                         "https://github.com/insilmaril/vym</a></li>"
47                         "<li> Project homepage on Sourceforge with Apple and Windows downloads:<br>"
48                             "<a href=\"http://sourceforge.net/projects/vym/\">"
49                             "http://sourceforge.net/projects/vym/</a></li>"
50                         "<li> vym homepage with overview and examples:<br> <a href=\"http://www.InSilmaril.de/vym\">"
51                             "http://www.InSilmaril.de/vym</a></li>"
52                         "<li> Mailinglists are also on Sourceforge:"
53                             "<ul>"
54                                 "<li>Please ask general questions about vym  on "
55                                     "<a href=\"mailto:vym-forum@lists.sourceforge.net\">vym-forum</a></li>"
56                                 "<li>Subscribe/Unsubscribe and archives can be found  "
57                                     "<a href=\"https://sourceforge.net/mail/?group_id=127802\">here</a></li>"
58                             "</ul>"
59                     "</ul>"
60                 "<li> Credits "
61             "<ul>"
62             "<li>Documentation"
63             "  <ul>"
64             "    <li>Peter Adams: documentation proofreading and polishing</li>"
65             "  </ul>"
66             "</li>"
67             "<li>Translations"
68             "  <ul>"
69             "    <li>Brasilian: Amadeu Júnior</li>"
70             "    <li>Chinese (simplified): Moligaloo</li>"
71             "    <li>Chinese (traditional): Wei-Lun Chao </li>"
72             "    <li>Croatian: Damir Brašnić </li>"
73             "    <li>Czech: Vít Pelčák, Pavel Fric</li>"
74             "    <li>French: Marc Sert, Philippe Caillaud and Claude </li>"
75             "    <li>Greek: Yannis Kaskamanidis</li>"
76             "    <li>Interlingua: Giovanni Sora</li>"
77             "    <li>Italian: Albano Battistella, Giovanni Sora, Seyed Puria Nafisi Azizi </li>"
78             "    <li>Japanese: Tsuren Tsuchiya</li>"
79             "    <li>Russian: Anton Olenev</li>"
80             "    <li>Spanish: <a "
81             "href=\"http://ieee.udistrital.edu.co/aclibre\">"
82             "                 ACLibre (Academia y Conocimiento Libre)</a> and "
83             "David Amian</li>"
84             "  </ul>"
85             "</li>"
86             "<li> Patches"
87             "  <ul>"
88             "    <li>Edward Wang: adding close tab buttons</li>"
89             "    <li>p0llox (Pierre): various patches for Debian packaging</li>"
90             "  </ul>"
91             "</li>"
92             "<li> Patches in previous vym versions"
93             "  <ul>"
94             "    <li>Łukasz Pietrzak, Scott Dillman and Patrick Spendrin, "
95             "Andrew Ng, "
96             "Juha Ruotsalainen and Thomas Kriener: windows patches</li>"
97             "    <li>Thomas Schraitle for the stylesheet"
98             "        formerly used for XHTML-export and help with XML "
99             "processing in general</li>"
100             "    <li>Matt from <a "
101             "href=\"http://www.satbp.com\">www.satbp.com</a>: "
102             "        <a href=\"http://www.taskjuggler.org\">Taskjuggler</a> "
103             "export</li>"
104             "    <li>Darren Lissimore: Windows compiler patch </li>"
105             "    <li>Konstantin Goudkov: sort branches</li>"
106             "    <li>Jakob Hilmer: image drag and drop in 1.8.1, &quot;About "
107             "vym&quot; window patch </li>"
108             "  </ul>"
109             "</li>"
110             "<li> Icons"
111             "  <p> A number of icons were copied from the KDE project, especially"
112             "      from the Oxygen icon theme. Some of these have been heavily "
113             "      reworked by Uwe Drechsel - Thanks to the KDE team!</p></li>"
114             "<li> Packaging"
115             "</li>"
116             "  <ul>"
117             "    <li>Jon Ciesla: Sourceforge file releases</li>"
118             "    <li>Xavier Oswald, Christoph Thielecke, Pierre, and Steffen "
119             "Joeris: Debian packaging</li>"
120             "  </ul>"
121             "<li> General"
122             "  <ul>"
123             "    <li>Initial CMake setup by Daniel Rossberg, Costantino Giuliodori and Patrick "
124             "Spendrin</li>"
125             "    <li>All the guys at Trolltech (now Qt) for starting Qt </li>"
126             "    <li>All the guys at SUSE Linux for openSUSE Linux and support,"
127             "        e.g. to get Linux running on PowerPC and also "
128             "Macbooks</li>"
129             "  </ul>"
130             "</li>"
131             "</ul>"
132             "</li>")
133             .arg(QDate::currentDate().year()));
134     ;
135     credits->setFrameStyle(QFrame::Panel | QFrame::Plain);
136     tabs->addTab(credits, tr("Credits", "Help->About vym dialog"));
137
138     license = new AboutTextBrowser(parent);
139     license->setText(
140         QString(
141             "<center>"
142             "<h3>VYM - View Your Mind</h3>"
143             "<p>Copyright (C) 2004-%1 Uwe Drechsel</p>"
144             "</center>"
145
146             "<p>This program is free software; you can redistribute it and/or "
147             "modify it under the terms of the GNU General Public License "
148             "version 2 as published by the Free Software Foundation.</p>"
149
150             "<p>This program is distributed in the hope that it will be "
151             "useful, but WITHOUT ANY WARRANTY; without even the implied "
152             "warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  "
153             "See the GNU General Public License below for more details.</p>"
154
155             "<p>In addition, as a special exception, Uwe Drechsel gives "
156             "permission to link the code of this program with the QT libraries "
157             "from trolltech.com (or with modified versions of QT that use the "
158             "same license as QT), and distribute linked combinations including "
159             "the two. You must obey the GNU General Public License in all "
160             "respects for all of the code used other than QT. If you modify "
161             "this file, you may extend this exception to your version of the "
162             "file, but you are not obligated to do so. If you do not wish to "
163             "do so, delete this exception statement from your version.</p> "
164
165             "<p>Uwe Drechsel can be contacted at <a "
166             "href=\"mailto:vym@insilmaril.de\">vym@insilmaril.de</a></p>"
167
168             "<hr>"
169
170             "<p align=\"center\">GNU GENERAL PUBLIC LICENSE<br>"
171             "Version 2, June 1991</p>"
172
173             "<p align=\"center\">Copyright (C) 1989, 1991 Free Software "
174             "Foundation, Inc.  59 Temple Place, Suite 330, Boston, MA  "
175             "02111-1307  USA</p>"
176
177             "<p align=\"center\"> Everyone is permitted to copy and distribute "
178             "verbatim copies of this license document, but changing it is not "
179             "allowed.</p>"
180
181             "<p align=\"center\">Preamble</p>"
182
183             "<p>The licenses for most software are designed to take away your "
184             "freedom to share and change it.  By contrast, the GNU General "
185             "Public License is intended to guarantee your freedom to share and "
186             "change free software--to make sure the software is free for all "
187             "its users.  This General Public License applies to most of the "
188             "Free Software Foundation's software and to any other program "
189             "whose authors commit to using it.  (Some other Free Software "
190             "Foundation software is covered by the GNU Library General Public "
191             "License instead.)  You can apply it to your programs, too.</p>"
192
193             "<p>When we speak of free software, we are referring to freedom, "
194             "not price.  Our General Public Licenses are designed to make sure "
195             "that you have the freedom to distribute copies of free software "
196             "(and charge for this service if you wish), that you receive "
197             "source code or can get it if you want it, that you can change the "
198             "software or use pieces of it in new free programs; and that you "
199             "know you can do these things.</p>"
200
201             "<p>  To protect your rights, we need to make restrictions that "
202             "forbid anyone to deny you these rights or to ask you to surrender "
203             "the rights.  These restrictions translate to certain "
204             "responsibilities for you if you distribute copies of the "
205             "software, or if you modify it.</p>"
206
207             "<p>  For example, if you distribute copies of such a program, "
208             "whether gratis or for a fee, you must give the recipients all the "
209             "rights that you have.  You must make sure that they, too, receive "
210             "or can get the source code.  And you must show them these terms "
211             "so they know their rights.</p>"
212
213             "<p>  We protect your rights with two steps: (1) copyright the "
214             "software, and (2) offer you this license which gives you legal "
215             "permission to copy, distribute and/or modify the software.</p>"
216
217             "<p>  Also, for each author's protection and ours, we want to make "
218             "certain that everyone understands that there is no warranty for "
219             "this free software.  If the software is modified by someone else "
220             "and passed on, we want its recipients to know that what they have "
221             "is not the original, so that any problems introduced by others "
222             "will not reflect on the original authors' reputations.</p>"
223
224             "<p>  Finally, any free program is threatened constantly by "
225             "software patents.  We wish to avoid the danger that "
226             "redistributors of a free program will individually obtain patent "
227             "licenses, in effect making the program proprietary.  To prevent "
228             "this, we have made it clear that any patent must be licensed for "
229             "everyone's free use or not licensed at all.</p>"
230
231             "<p>  The precise terms and conditions for copying, distribution "
232             "and modification follow.</p>"
233
234             "<p align=\"center\">               GNU GENERAL PUBLIC LICENSE</p>"
235             "<p align=\"center\">   TERMS AND CONDITIONS FOR COPYING, "
236             "DISTRIBUTION AND MODIFICATION</p>"
237
238             "<p>  0. This License applies to any program or other work which "
239             "contains a notice placed by the copyright holder saying it may be "
240             "distributed under the terms of this General Public License.  The "
241             "\"Program\", below, refers to any such program or work, and a "
242             "\"work based on the Program\" means either the Program or any "
243             "derivative work under copyright law: that is to say, a work "
244             "containing the Program or a portion of it, either verbatim or "
245             "with modifications and/or translated into another language.  "
246             "(Hereinafter, translation is included without limitation in the "
247             "term \"modification\".)  Each licensee is addressed as "
248             "\"you\".</p>"
249
250             "<p>Activities other than copying, distribution and modification "
251             "are not covered by this License; they are outside its scope.  The "
252             "act of running the Program is not restricted, and the output from "
253             "the Program is covered only if its contents constitute a work "
254             "based on the Program (independent of having been made by running "
255             "the Program).  Whether that is true depends on what the Program "
256             "does.</p>"
257
258             "<p>  1. You may copy and distribute verbatim copies of the "
259             "Program's source code as you receive it, in any medium, provided "
260             "that you conspicuously and appropriately publish on each copy an "
261             "appropriate copyright notice and disclaimer of warranty; keep "
262             "intact all the notices that refer to this License and to the "
263             "absence of any warranty; and give any other recipients of the "
264             "Program a copy of this License along with the Program.</p>"
265
266             "<p>You may charge a fee for the physical act of transferring a "
267             "copy, and you may at your option offer warranty protection in "
268             "exchange for a fee.</p>"
269
270             "<p>  2. You may modify your copy or copies of the Program or any "
271             "portion of it, thus forming a work based on the Program, and copy "
272             "and distribute such modifications or work under the terms of "
273             "Section 1 above, provided that you also meet all of these "
274             "conditions:"
275             "<ol type=\"a\">"
276             "<li> You must cause the modified files to carry prominent notices "
277             "stating that you changed the files and the date of any "
278             "change.</li>"
279
280             "<li> You must cause any work that you distribute or publish, that "
281             "in whole or in part contains or is derived from the Program or "
282             "any part thereof, to be licensed as a whole at no charge to all "
283             "third parties under the terms of this License.</li>"
284
285             "<li> If the modified program normally reads commands "
286             "interactively when run, you must cause it, when started running "
287             "for such interactive use in the most ordinary way, to print or "
288             "display an announcement including an appropriate copyright notice "
289             "and a notice that there is no warranty (or else, saying that you "
290             "provide a warranty) and that users may redistribute the program "
291             "under these conditions, and telling the user how to view a copy "
292             "of this License.  (Exception: if the Program itself is "
293             "interactive but does not normally print such an announcement, "
294             "your work based on the Program is not required to print an "
295             "announcement.)</li>"
296             "</ol>"
297             "</p>"
298
299             "<p>These requirements apply to the modified work as a whole.  If "
300             "identifiable sections of that work are not derived from the "
301             "Program, and can be reasonably considered independent and "
302             "separate works in themselves, then this License, and its terms, "
303             "do not apply to those sections when you distribute them as "
304             "separate works.  But when you distribute the same sections as "
305             "part of a whole which is a work based on the Program, the "
306             "distribution of the whole must be on the terms of this License, "
307             "whose permissions for other licensees extend to the entire whole, "
308             "and thus to each and every part regardless of who wrote it.</p>"
309
310             "<p>Thus, it is not the intent of this section to claim rights or "
311             "contest your rights to work written entirely by you; rather, the "
312             "intent is to exercise the right to control the distribution of "
313             "derivative or collective works based on the Program.</p>"
314
315             "<p>In addition, mere aggregation of another work not based on the "
316             "Program with the Program (or with a work based on the Program) on "
317             "a volume of a storage or distribution medium does not bring the "
318             "other work under the scope of this License.</p>"
319
320             "<p>  3. You may copy and distribute the Program (or a work based "
321             "on it, under Section 2) in object code or executable form under "
322             "the terms of Sections 1 and 2 above provided that you also do one "
323             "of the following:"
324             "<ol type=\"a\">"
325
326             "    <li> Accompany it with the complete corresponding "
327             "machine-readable source code, which must be distributed under the "
328             "terms of Sections 1 and 2 above on a medium customarily used for "
329             "software interchange; or,</li>"
330
331             "    <li> Accompany it with a written offer, valid for at least "
332             "three years, to give any third party, for a charge no more than "
333             "your cost of physically performing source distribution, a "
334             "complete machine-readable copy of the corresponding source code, "
335             "to be distributed under the terms of Sections 1 and 2 above on a "
336             "medium customarily used for software interchange; or,</li>"
337
338             "    <li> Accompany it with the information you received as to the "
339             "offer to distribute corresponding source code.  (This alternative "
340             "is allowed only for noncommercial distribution and only if you "
341             "received the program in object code or executable form with such "
342             "an offer, in accord with Subsection b above.)</li>"
343             "</ol></p>"
344
345             "<p>The source code for a work means the preferred form of the "
346             "work for making modifications to it.  For an executable work, "
347             "complete source code means all the source code for all modules it "
348             "contains, plus any associated interface definition files, plus "
349             "the scripts used to control compilation and installation of the "
350             "executable.  However, as a special exception, the source code "
351             "distributed need not include anything that is normally "
352             "distributed (in either source or binary form) with the major "
353             "components (compiler, kernel, and so on) of the operating system "
354             "on which the executable runs, unless that component itself "
355             "accompanies the executable.</p>"
356
357             "<p>If distribution of executable or object code is made by "
358             "offering access to copy from a designated place, then offering "
359             "equivalent access to copy the source code from the same place "
360             "counts as distribution of the source code, even though third "
361             "parties are not compelled to copy the source along with the "
362             "object code.</p>"
363
364             "<p>  4. You may not copy, modify, sublicense, or distribute the "
365             "Program except as expressly provided under this License.  Any "
366             "attempt otherwise to copy, modify, sublicense or distribute the "
367             "Program is void, and will automatically terminate your rights "
368             "under this License.  However, parties who have received copies, "
369             "or rights, from you under this License will not have their "
370             "licenses terminated so long as such parties remain in full "
371             "compliance.</p>"
372
373             "<p>  5. You are not required to accept this License, since you "
374             "have not signed it.  However, nothing else grants you permission "
375             "to modify or distribute the Program or its derivative works.  "
376             "These actions are prohibited by law if you do not accept this "
377             "License.  Therefore, by modifying or distributing the Program (or "
378             "any work based on the Program), you indicate your acceptance of "
379             "this License to do so, and all its terms and conditions for "
380             "copying, distributing or modifying the Program or works based on "
381             "it.</p>"
382
383             "<p>  6. Each time you redistribute the Program (or any work based "
384             "on the Program), the recipient automatically receives a license "
385             "from the original licensor to copy, distribute or modify the "
386             "Program subject to these terms and conditions.  You may not "
387             "impose any further restrictions on the recipients' exercise of "
388             "the rights granted herein.  You are not responsible for enforcing "
389             "compliance by third parties to this License.</p>"
390
391             "<p>  7. If, as a consequence of a court judgment or allegation of "
392             "patent infringement or for any other reason (not limited to "
393             "patent issues), conditions are imposed on you (whether by court "
394             "order, agreement or otherwise) that contradict the conditions of "
395             "this License, they do not excuse you from the conditions of this "
396             "License.  If you cannot distribute so as to satisfy "
397             "simultaneously your obligations under this License and any other "
398             "pertinent obligations, then as a consequence you may not "
399             "distribute the Program at all.  For example, if a patent license "
400             "would not permit royalty-free redistribution of the Program by "
401             "all those who receive copies directly or indirectly through you, "
402             "then the only way you could satisfy both it and this License "
403             "would be to refrain entirely from distribution of the Program.</p>"
404
405             "<p>If any portion of this section is held invalid or "
406             "unenforceable under any particular circumstance, the balance of "
407             "the section is intended to apply and the section as a whole is "
408             "intended to apply in other circumstances.</p>"
409
410             "<p>It is not the purpose of this section to induce you to "
411             "infringe any patents or other property right claims or to contest "
412             "validity of any such claims; this section has the sole purpose of "
413             "protecting the integrity of the free software distribution "
414             "system, which is implemented by public license practices.  Many "
415             "people have made generous contributions to the wide range of "
416             "software distributed through that system in reliance on "
417             "consistent application of that system; it is up to the "
418             "author/donor to decide if he or she is willing to distribute "
419             "software through any other system and a licensee cannot impose "
420             "that choice.</p>"
421
422             "<p>This section is intended to make thoroughly clear what is "
423             "believed to be a consequence of the rest of this License.</p>"
424
425             "<p>  8. If the distribution and/or use of the Program is "
426             "restricted in certain countries either by patents or by "
427             "copyrighted interfaces, the original copyright holder who places "
428             "the Program under this License may add an explicit geographical "
429             "distribution limitation excluding those countries, so that "
430             "distribution is permitted only in or among countries not thus "
431             "excluded.  In such case, this License incorporates the limitation "
432             "as if written in the body of this License.</p>"
433
434             "<p>  9. The Free Software Foundation may publish revised and/or "
435             "new versions of the General Public License from time to time.  "
436             "Such new versions will be similar in spirit to the present "
437             "version, but may differ in detail to address new problems or "
438             "concerns.</p>"
439
440             "<p>Each version is given a distinguishing version number.  If the "
441             "Program specifies a version number of this License which applies "
442             "to it and \"any later version\", you have the option of following "
443             "the terms and conditions either of that version or of any later "
444             "version published by the Free Software Foundation.  If the "
445             "Program does not specify a version number of this License, you "
446             "may choose any version ever published by the Free Software "
447             "Foundation.</p>"
448
449             "<p>  10. If you wish to incorporate parts of the Program into "
450             "other free programs whose distribution conditions are different, "
451             "write to the author to ask for permission.  For software which is "
452             "copyrighted by the Free Software Foundation, write to the Free "
453             "Software Foundation; we sometimes make exceptions for this.  Our "
454             "decision will be guided by the two goals of preserving the free "
455             "status of all derivatives of our free software and of promoting "
456             "the sharing and reuse of software generally.</p>"
457
458             "<p align=\"center\">NO WARRANTY</p>"
459
460             "<p>  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS "
461             "NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY "
462             "APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE "
463             "COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS "
464             "IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, "
465             "INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF "
466             "MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE "
467             "RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH "
468             "YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF "
469             "ALL NECESSARY SERVICING, REPAIR OR CORRECTION.</p>"
470
471             "<p>  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED "
472             "TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO "
473             "MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE "
474             "LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, "
475             "INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR "
476             "INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS "
477             "OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY "
478             "YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH "
479             "ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN "
480             "ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</p>"
481
482             "<p align=\"center\">END OF TERMS AND CONDITIONS</p>")
483             .arg(QDate::currentDate().year()));
484
485     credits->setFrameStyle(QFrame::Panel | QFrame::Plain);
486     tabs->addTab(license, tr("License", "Help->About vym dialog"));
487
488     mainLayout->addWidget(tabs);
489
490     okbutton = new QPushButton(this);
491     okbutton->setText(tr("Ok", "Ok Button"));
492     okbutton->setMaximumSize(QSize(50, 30));
493     okbutton->setAutoDefault(true);
494     mainLayout->addWidget(okbutton);
495
496     connect(okbutton, SIGNAL(clicked()), this, SLOT(accept()));
497 }
498
499 AboutTextBrowser::AboutTextBrowser(QWidget *parent) : QTextBrowser(parent) {}
500
501 void AboutTextBrowser::setSource(const QUrl &url)
502 {
503     QProcess *proc = new QProcess();
504     proc->start(settings.value("/system/readerURL").toString(),
505                 QStringList() << url.toString());
506     // if (!proc->waitForStarted() &&mainWindow->settingsURL() ) setSource(url);
507     if (!proc->waitForStarted())
508         QMessageBox::warning(
509             0, tr("Warning", "About window"),
510             tr("Couldn't find a viewer to open %1.\n", "About window")
511                     .arg(url.toString()) +
512                 tr("Please use Settings->") +
513                 tr("Set application to open an URL..."));
514 }