removing commented out old implementation.

This commit is contained in:
Brad Davis 2015-05-06 12:03:47 -07:00
parent fbee3c1782
commit a9de502e76

View file

@ -85,68 +85,3 @@ void InfoView::setUrl(const QUrl& url) {
}
}
//#include <QApplication>
//#include <QDesktopWidget>
//#include <QDesktopServices>
//#include <QFileInfo>
//#include <QtWebKitWidgets/QWebFrame>
//#include <QtWebKit/QWebElement>
//
//#include <PathUtils.h>
//#include <SettingHandle.h>
//
//#include "InfoView.h"
//
//static const float MAX_DIALOG_HEIGHT_RATIO = 0.9f;
//
//
//
//InfoView::InfoView(bool forced, QString path) : _forced(forced)
//{
// setWindowFlags(Qt::WindowStaysOnTopHint | Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint);
//
// QString absPath = QFileInfo(PathUtils::resourcesPath() + path).absoluteFilePath();
// QUrl url = QUrl::fromLocalFile(absPath);
//
// page()->setLinkDelegationPolicy(QWebPage::DelegateExternalLinks);
// connect(this, SIGNAL(linkClicked(QUrl)), this, SLOT(linkClickedInfoView(QUrl)));
//
// load(url);
// connect(this, SIGNAL(loadFinished(bool)), this, SLOT(loaded(bool)));
//}
//
//void InfoView::showFirstTime(QString path) {
// new InfoView(false, path);
//}
//
//void InfoView::forcedShow(QString path) {
// new InfoView(true, path);
//}
//
//
//void InfoView::loaded(bool ok) {
// if (!ok || !shouldShow()) {
// deleteLater();
// return;
// }
//
// QDesktopWidget* desktop = qApp->desktop();
// QWebFrame* mainFrame = page()->mainFrame();
//
// int height = mainFrame->contentsSize().height() > desktop->height() ?
// desktop->height() * MAX_DIALOG_HEIGHT_RATIO :
// mainFrame->contentsSize().height();
//
// resize(mainFrame->contentsSize().width(), height);
// move(desktop->screen()->rect().center() - rect().center());
// setWindowTitle(title());
// setAttribute(Qt::WA_DeleteOnClose);
// show();
//}
//
//void InfoView::linkClickedInfoView(QUrl url) {
// close();
// QDesktopServices::openUrl(url);
//}
//#endif