123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- /*224:*/
- #line 36 "./abouttypica.w"
-
- #include "abouttypica.h"
-
- /*225:*/
- #line 45 "./abouttypica.w"
-
- AboutTypica::AboutTypica():QMainWindow(NULL)
- {
- QFile aboutFile(":/resources/html/about.html");
- aboutFile.open(QIODevice::ReadOnly);
- QByteArray content= aboutFile.readAll();
- QWebView*banner= new QWebView;
- banner->setHtml(content,QUrl("qrc:/resources/html/about.html"));
- aboutFile.close();
- setCentralWidget(banner);
- QWebPage*page= banner->page();
- page->setLinkDelegationPolicy(QWebPage::DelegateExternalLinks);
- connect(page,SIGNAL(linkClicked(QUrl)),this,SLOT(linkClicked(QUrl)));
- }
-
- /*:225*//*226:*/
- #line 63 "./abouttypica.w"
-
- void AboutTypica::linkClicked(const QUrl&url)
- {
- if(url.scheme()=="typica")
- {
- QString address(url.toEncoded());
- if(address=="typica://aboutqt")
- {
- QMessageBox::aboutQt(this);
- }
- else
- {
- qDebug()<<"Unexpected link. Got: "<<address;
- }
- }
- else
- {
- QDesktopServices::openUrl(url);
- }
- }
- #line 5656 "./typica.w"
-
- /*:226*/
- #line 39 "./abouttypica.w"
-
-
- /*:224*/
|